Help me to Automate the Windows application..

sivakumar.kandasamy

New member
Joined
Mar 13, 2006
Messages
2
Programming Experience
Beginner
i want to automate the windows application called "Data_entry"..

in that application there are 5 text boxes and one submit button...

i have to develop the tool in vb .net ..that tool should automate the data entry in that "Data_entry" application.finally the submit button should be handled automatically..

i heard that we can do this with object properties like window name and class name of that textboxes and command button of "Data_entry" application

for that i had used the spy software to get the class name and window name of all objects in that "Data_entry" application..


After that i have used the FindWindow() to find the window..

there is no problem i have founded the window..

but after that i tried to found the internal objects using

FindWindowEx()

there problem arises..

that shows the following problem..

i had declared the following

Declare Function FindWindowEx Lib "user32.dll" Alias "FindWindowExA" ( _
ByVal hWnd1 As Int32, _
ByVal hWnd2 As Int32, _
ByVal lpsz1 As String, _
ByVal lpsz2 As String) As Int32

eventhough i declared it shows that


"OverFlowException was unhandled".

Arithmetic operation resulted in an overflow.

i don know how to resolve this problem..
can anyone help me complete this automation work..

Or any one give sample project to automate simple application.so it can be useful for me..


Thanks in advance..,,
 
Please do not create duplicate threads. Your other thread on the same topic has been deleted. If you want to bump your question to the top of the list then add another post to the same thread.
 
Back
Top