VS 2005 Find The Right Terminal Window?

Apr 26, 2010

we use a terminal emulator called facetwin to run our main unix based applicationswe want to attach a small document scanner and magnetic strip reader to the system this runs oncurrently we have a magnetic reader that emulates a keyboard so it sends keystrokes back to the unix app. however the new scanner does not.i can get around this by having the unix app send a special command that facetwin understands so it tells the local windows machine to run my vb application that controls the small document scannermy vb app then sendkey's back the relevant info.this is all great and works fine, yet i have a problemthere are 3copies of facetwin running at anyone time all are logged in as the same user but maybe processing diferent things.

View 2 Replies


ADVERTISEMENT

VS 2008 GlobalKeyboardHook - Application That Will Run On A Terminal Similar To A Micros Terminal

Feb 19, 2010

I have an application that will run on a terminal similar to a micros terminal. The terminal is already running another vendors app that captures the users logon ID from a swipecard. I need to capture the same logon ID at the same time. This is no problem, I just hook it.

The problem is I have another app which also captures swipes. In development I am running both apps for testing. It appears that when I unhook one app it unhooks both. Rehook and all is fine. As my two apps will never be on the same terminal this is not a problem. What I am concerned about is the vendors app unhooking mine or the other way around.

I would of thought that each app would have it's own ID and that each hook would be independent. I have considered finding a way to determine if a global hook is present and then use some logic to decide on unhooking or not but can't find anything.

View 1 Replies

Display The Data On Terminal B If Inserted From Terminal A?

Dec 8, 2010

my project work on server if inserted data from terminal A i need display the data on terminal B

View 1 Replies

Find The Handle Of The Child Window For The Yes Button In The User Account Control Window?

Mar 20, 2010

I am trying to find the handle of the child window for the Yes button in the User Account Control window so i can click it. This window has a structure with a few child windows with the same name.

Dim hwnd As IntPtr = FindWindow(Nothing, "User Account Control")
Dim hwnd2 As IntPtr = FindWindowEx(hwnd, 0, "DirectUIHWND", vbNullString)
Dim hwnd3 As IntPtr = FindWindowEx(hwnd2, 0, "CtrlNotifySink", vbNullString)
Dim hwnd4 As IntPtr = FindWindowEx(hwnd3, 0, "Button", "&Yes")

There are multiple CtrNotifySink with its own Button child window or other child windows. How do i search thru the different CtrNotifySink window to find the one that contain the Yes button so i can send a click to it? I do need to find it before i can send a click, right? because i try just sending it to the main window with sendmessage and nothing happen.I even try sending it directly to the handle found by spy++ of the yes button with bm click but nothing happen?

View 2 Replies

VS 2005 Setwindowpos For Top Most Window Making Window Size Zero?

Oct 5, 2011

I have the following function that should make the window always on top of other applications.

Private Declare Function SetWindowPos Lib "user32" _
(ByVal handle As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, _
ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long

[Code]....

The problem is that it reduces the window size so that you can only see the title bar and min/max/close buttons. Also, even that does not stay on top of other windows.

I have used this function before on a windows 7 machine (instead of xp which this one is on) and it worked fine.

View 4 Replies

Store PDF File Into Sql Server 2005 And Display In A Picture Box On VB 2005 Window Form?

Mar 13, 2009

I am using memorystream to get and store images into sqlserver 2005 table image field. This process is working and I am able to display image in picture box. I need to be able to store PDF files into the same field and be able to display in a picture box.

View 2 Replies

Find All Text From A Window?

Feb 11, 2011

I am trying to find all text from a slightly older application. The thing is, the old scripit from windows NT finds the text I need no problem, but I cant seem to get it myself.

I find the main window, and cycle through its children, but must be looking at something wrong. I am missing 2 things: The title of the app has the name, and then some status information, the status information does not show up on the window title info. The text in the application itself does not reveal itself to me either

Here is a code snippet of how I try to get the info out:

Private Sub gettext(ByVal hd As IntPtr)
Dim Hwnd As IntPtr = hd
'Alloc memory for the buffer that recieves the text

[Code]....

View 2 Replies

Find Window In Another Application?

Dec 21, 2011

I use VB with Visual Studio 2010.I have use the example code from the Microsoft Homepage: [URL]Its work fine!Now I have an application on my computer, there I want to send keys via SendKeys to another application.In the sample code is listed:

Dim calculatorHandle As IntPtr = FindWindow("SciCalc", "Calculator")

View 1 Replies

Forms :: Find Window In .net?

Aug 21, 2009

I am opening a PDF file in Acrobat then am sending the Menu keys using sendkeys.AcroHandle gets the value but the send keys always working with my .Net IDE. It is opening the .Net IDE file open menu. It supposed to open Acrobat File open.

AcroXAVDoc.Open(FileName, "Acrobat")
AcroHandle = FindWindow(vbNullString, "Acrobat - Adobe Acrobat Professional")
If (AcroHandle <> 0) Then
SetForegroundWindow(AcroHandle)
System.Windows.Forms.SendKeys.SendWait("%(FO)")
End If

View 1 Replies

Process And Find A Window?

Jun 17, 2010

what I am trying to do its to automate a user interraction by code.First I have a button named "start" once pushed I navigate with webbrowser to download a file. What I try to do it is to find the window "File download" by his title name, I allready made a seperate thread to loop into to list of process until it found the window "File download"

Where I need help, it is with the process list. I try that code below but I don't see the process "File download" in the list.and once I found it I would like to use sendMessage() api to simulate the click of save.I would like to find another window after to catch the window "save as" and click save and if the window that ask for overwriting appear I would like to find it too and click yes.

Why I use webbrowser instead of httpwebrequest it is because the web site required to login, i try using cookie, etc. No success so I decided to use webbrowser, I navigate first into the login page, I login manually and once it is done I can click the button to start downloading. I want to make an automatic download loop, I have lot of files to download on that site, sometimes .doc and other times it is .pdf

I didn't found a way yet how to force webbrowser to ask for downloading .pdf instead of opening it in acrobat, if someone can help me for that point too

[Code]...

View 4 Replies

Find / Replace - How To Undock Window

May 19, 2011

Find & replace by error is docked such that I cant see the code while I am using "Find".
I could not undock the window despite various attempts.

View 3 Replies

Find The Caption Of The Active Window?

Jan 23, 2011

I'm trying to be able to get the caption of the currently active window. I've figured out that I should be using GetForegroundWindow, but when I use it I'm just getting a long string of numbers, which I think is the handle. How do I go from that to the actual caption?

View 4 Replies

Find The Edges Of An Application Window?

Jun 26, 2010

I'm trying to make a program that runs programs using image analysis. It will Recognize images on screen so that they can be clicked. Well when i was working on it i had an ideal. I could get the edges of the screen/window i'm using. Make a calculation to grid off areas of parts of the screen. Making the program not have to process the entire screen every time. So that it only has to call to process a grided off zone.

How every i dont know how to get the edges of the screen/window. Could some one link info on how to do it or give some code snippits. Thx for an info that you give.

View 1 Replies

Find The Result Of A Function In The Immediate Window?

Oct 7, 2011

When I was coding a program, I was able to find the result of a function in the Immediate Window by using:

View 3 Replies

Find Window By Title Name VB 2008?

Sep 16, 2011

Having an issue with a certain application ever since and update, and now errors out with a unique window title. How can I find if the window title exist in VB.Net 2008?Found this code, but looks like its for 6:

vb.net
Sub Tester()
MsgBox Window_Exists("PowerBuilder Application Execution Error (R0039)")
End Sub

[code]....

Also is there anyway to use a variable in the name title... say just the first 3 words of the title followed by somestring that is the equivalent of *?

View 3 Replies

VS 2008 Find Window Using First Word Only?

May 5, 2009

I need to find an external application's handle using findwindow api by inputing the first word only.

Example instead of FindWindow(vbNullString, "Untitled - Notepad") typing FindWindow(vbNullString, "Untitled")

View 7 Replies

VS 2010 Find A Part Of Window?

Jan 6, 2011

Dim MainHwnd As IntPtr = FindWindow(Nothing, "NameOFtheSoftware - Trial Version (0 days)")
'MenuClick(MainHwnd, CType(2, IntPtr), CType(0, IntPtr))

I am using the name of the window to do the clickingaction, But the software is a trialversion and changes the days amount. So how to make it that it doesnt need to find the whole windowname, but just a part of it.For Example: NameOFtheSoftware

View 15 Replies

Find Last Window Lock / Unlock Time In C#?

Feb 25, 2011

I want to find the wheather my machine(XP installed) is locked or unlocked today.

View 1 Replies

Find The Parent Window With This Block Of Code?

Oct 15, 2008

i am using vb2008: now i can find the parent window with this block of code

Private Sub Button11_Click_2(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click
Dim theHandle As IntPtr
theHandle = FindWindow(Nothing, TextBox9.Text)

[code]....

i do know how to use sendkeys, but if i use that and click on something else while i send the keys it picks up that window and trys to send the keys there thats what i dont wantnow using the top block of code along with this module how can i get the childwindow with focus on the "Richcntl" box to send text to itin a diffent click button:in this block:

Private Sub Button13_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button13.Click
End Sub

View 2 Replies

VS 2008 Find Window Handle By Its Position?

Sep 6, 2009

How to find window handle by its position?

View 13 Replies

Find The Browser Window Height And Width In .Net Without Having Using Javascript?

Jun 9, 2010

I am needing to get the browser height and width of the browser window with vb. I can get these values by setting an ASP.Net hidden input control using javascript, after the page has loaded and a post back is done. I need to be able to get these values when the page initially loads so I can create an image based on those values.

View 1 Replies

VS 2008 Find External Window, Object Text?

Aug 5, 2011

i have an external form, and it has a label, which his name is: Static62 how do i read the label into my vb.net program?

View 10 Replies

VS 2005 Debugging In Immediate Window

Mar 8, 2011

Trying to debug a Windows application, in the Immediate Window, if I type the following:?UBound( I see a tooltip showing the syntax of UBound, but when I complete the statement as ?UBound(CBa) where CBa is the name of an array, I get the response: Name 'UBound' is not declared. Strangely enough, the UBound function is referenced in the code prior to the breakpoint, and works correctly. Why can't I use it in the Immediate Window? I have the same problem with the Len function, it says it's not declared.

View 6 Replies

VS 2005 How To Take Picture Of Window

Mar 25, 2009

I have a Window Form app that I would like to take a picture of the complete main window. After that, I want to be able to somehow hide the actual window, and replace it with this snapshot, at which point I want to be able to move the picture around the screen, like rotating, etc.

View 1 Replies

VS 2005 Screenshot Of Everything But Window?

Jan 9, 2010

I'm making some Aero-style transparent forms (signature), and they work just fine. However, to get a screenshot of the area behind the form using Graphics. CopyFromScreen(), the form has to be less than 100% Opacity, so CopyFromScreen doesn't include the window in the picture. This also means that when you have more than one open, they see through each other.

View 11 Replies

VS 2005 Enable Only Active Window?

Apr 22, 2010

Say I have a mdi child form open. The user should either click the buttons 'ok' or 'cancel' to access any other forms in the application.

View 2 Replies

VS 2005 How To Draw On Another Process Window

Sep 3, 2009

i am trying to write a code who find a window and draw line or string on it but nothing found yet,the process can aslo be a game so did it required to use 'Direct3dx' i try something like this but not woking...

[Code]...

View 2 Replies

VS 2005 Window Bring To Front

Oct 24, 2009

So I have this code to make a "windows taskbar". When you click on an item, it's supposed to bring that window to the front. The only problem is that's not happening. When I use Debug.WriteLine, it has the right window title, except it doesn't come to the front. What's wrong? There is no EntryPointNotFoundException or anything, it just doesn't bring the window to the front.

[Code].....

View 8 Replies

VS 2005 Zoom Magnifier Window?

Oct 25, 2009

How would i go about making a zoom magnifier window, similar to the one in Snag it?The main form would have a picturebox with a image loaded, a second smaller form would act a as magnifying window, magnifying the image from form1 and refreshing to reflect the new location of the cursor when it is moved across form 1.

Would i need to take a screen shot of a area around the cursor then load it into the second form and refresh the screen shot every time the cursor moves or is there a procedure already to do this?

View 20 Replies

.net - Run Cygwin Terminal Using Vb?

Apr 21, 2012

i need a code to type and perform commands in cygwin terminal in hidden mode(background) using visual basic, i was using cmd but now i want to use a Linux source code so i must use linux. i ran cmd in hidden mode successfully but it isn't working with cygwin, here is the cmd code:Shell("cmd.exe /k tracert -h " & _h & " " & domain.Text & " > temp" & i + 1 & ".txt & exit", AppWinStyle.Hide, True)

[Code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved