|
-
Apr 14th, 2006, 11:59 AM
#1
Thread Starter
Hyperactive Member
Wow.. this is wierd
Alright.. my program clicks on buttons on another application, and when this other application generates a msgbox.. my program stops til I click yes or no.. like.. as if it was its own msgbox.. i dont know its wierd.. the msgbox in the application im working with makes the same sound a normal msgbox in VB does too.. not sure if that has anything to do with it. Basically my program clicks a button.. and then this msgbox comes up.. I want my program to click Yes.. but it cant because it stops lol
if I manually click the first button, my program can click yes.. but if my program clicks the first button, it stops when the msgbox comesup.. so wierd
-
Apr 14th, 2006, 12:08 PM
#2
Thread Starter
Hyperactive Member
Re: Wow.. this is wierd
hmm, if i use
Call SendMessageLong(tempButton, WM_LBUTTONDOWN, 0&, 0&)
Call SendMessageLong(tempButton, WM_LBUTTONUP, 0&, 0&)
it locks up when the msgbox comes up.. but if I just get my program to click on the coordinates of the button it works.. any reason why this is happening?
-
Apr 14th, 2006, 12:09 PM
#3
Thread Starter
Hyperactive Member
Re: Wow.. this is wierd
oops.. this probably should be in API.. sorry
-
Apr 14th, 2006, 01:25 PM
#4
Re: Wow.. this is wierd
I suggest you can create two projects one should click the first button. the second one should wait for the msgbox and then it should click the button in msgbox.
I hope this will solve your problem.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|