Posted 05 November 2004 - 06:20 PM
So far everything has worked great with one exception. Using ControlClick to click a button on an external application works very well on a Win98se machine but doesn't do anything on a WinXP Pro machine. As an alternative I used MouseClick which works fine on both machines. This is not a good permanent solution for me because the application will be minimised to the tray most of the time which will prevent it fom being clicked by the mouse.
This is the line that only works on the Win98 machine:
iResponse = AIX.ControlClick("Swift Elite", "", "SwiftButton14")
This is the line that works fine on both machines:
iResonse = AIX.MouseClick("left", 873, 600)
I searched the forum and couldn't find anything helpful. Has this come up for anyone else? Any suggestions?
Posted 05 November 2004 - 10:43 PM
You know, that's not a bad idea. Not really sure why setting the focus isn't necessary in Win98 but if it makes it work in XP Pro I really don't care. One thing that stopped me from trying that already was that I didn't think this button was the type that could receive the focus. It just didn't 'seem' like it would and besides, the code worked in Win98.
sometimes you may need to ControlFocus the control first...
Are most buttons capable of accepting the focus?
Posted 05 November 2004 - 11:01 PM
Posted 05 November 2004 - 11:09 PM
Posted 05 November 2004 - 11:37 PM
I use it like this:
aix.ControlClick "handle=" & sWindowHandle, "", "Button10"
With the "Window Titles and Text" mode 4.
Posted 06 November 2004 - 12:33 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users