shaunex Posted January 19, 2009 Share Posted January 19, 2009 (edited) Hi I have a very small script that is trying to open an exe and then move the mouse to the correct location and then send a script to this location. This is so that I can set a progrma to login and at certain time. Here is the scriptCODEMouseMove (500, 455, 100) run (@ProgramFilesDir & "\****.exe") Sleep ( 5000 ) MouseClick ( "left" ) Send ( "****" ) Send ( "{ENTER}" ) What is happening is that the mouse moves and then the program goes to sleep and then the exe runs and by the time the splash screen has gone the mouse click has activated. I have increased the sleep time but this just has the effect of increaseing the time before the splash screen starts. Can not see why this is not working at all. I have tried a winwaitactive but the login screen has tabs embedded so it is confusing the winwait. Edited January 19, 2009 by shaunex Link to comment Share on other sites More sharing options...
azure Posted January 19, 2009 Share Posted January 19, 2009 Hi I have a very small script that is trying to open an exe and then move the mouse to the correct location and then send a script to this location. This is so that I can set a progrma to login and at certain time. Here is the scriptCODEMouseMove (500, 455, 100)run (@ProgramFilesDir & "\****.exe")Sleep ( 5000 )MouseClick ( "left" )Send ( "****" )Send ( "{ENTER}" )What is happening is that the mouse moves and then the program goes to sleep and then the exe runs and by the time the splash screen has gone the mouse click has activated. I have increased the sleep time but this just has the effect of increaseing the time before the splash screen starts. Can not see why this is not working at all. I have tried a winwaitactive but the login screen has tabs embedded so it is confusing the winwait.Have you tried more advanced window matching with WinWait? Do you have an autoit window info output you can paste here? Link to comment Share on other sites More sharing options...
shaunex Posted January 19, 2009 Author Share Posted January 19, 2009 Have you tried more advanced window matching with WinWait? Do you have an autoit window info output you can paste here?Here it isTitle: LoginClass: TDBLoginPosition: 317,256Size: 389,255Style: 0x96C80000ExStyle: 0x00000101 Handle: 0x00180124I tried playing around with the advanced matching but again did not have much success which is why I switched to mouse move after I found an entry about tabs on the forum Link to comment Share on other sites More sharing options...
azure Posted January 19, 2009 Share Posted January 19, 2009 Here it isTitle: LoginClass: TDBLoginPosition: 317,256Size: 389,255Style: 0x96C80000ExStyle: 0x00000101 Handle: 0x00180124I tried playing around with the advanced matching but again did not have much success which is why I switched to mouse move after I found an entry about tabs on the forumWhat about WinExists and a Loop, or ProcessExists and a Loop? Link to comment Share on other sites More sharing options...
shaunex Posted January 19, 2009 Author Share Posted January 19, 2009 What about WinExists and a Loop, or ProcessExists and a Loop?I will give that a go. I tried a ProcessExists but not having it in a loop. Link to comment Share on other sites More sharing options...
NerdFencer Posted January 19, 2009 Share Posted January 19, 2009 use ProcessWait instead of looping ProcessExists _________[u]UDFs[/u]_________-Mouse UDF-Math UDF-Misc Constants-Uninstaller Shell Link to comment Share on other sites More sharing options...
shaunex Posted January 20, 2009 Author Share Posted January 20, 2009 use ProcessWait instead of looping ProcessExistsFantastic! Works a treat now thanks for all the help guys. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now