hari Posted January 20, 2005 Posted January 20, 2005 Hi, Please find the below code, first it activates 1 screen and opens the settings page by sending Alt +t and s , I am facing the problem here.this takes some time to open the settings window but the script is continuing without waiting for the window to appear. winactivate("jabber.com - RhymBox") send ("{ALTDOWN}t") send("{ALTUP}") send ("s") winwait( "RhymBox Settings") ; should pause untill the window appear but its not ;pausing here directly its executing and script is coming out. ControlCommand ( "RhymBox Settings", "", "Store all the messages in the history archive", Send("{NUMPADSUB}"), "") please let me know how to resolve this.
phillip123adams Posted January 20, 2005 Posted January 20, 2005 Hi,...the script is continuing without waiting for the window to appear.winwait( "RhymBox Settings") ; should pause untill the window appear but its not...please let me know how to resolve this.<{POST_SNAPBACK}>I'd say, change WinWait to WinWaitActive, and add a WinActivate statement before it:WinActivate("RhymBox Settings")WinWaitActive("RhymBox Settings") Phillip
hari Posted January 20, 2005 Author Posted January 20, 2005 I'd say, change WinWait to WinWaitActive, and add a WinActivate statement before it:WinActivate("RhymBox Settings")WinWaitActive("RhymBox Settings")<{POST_SNAPBACK}>No , it didn't workMy code is --------------------------------Opt("WinTitleMatchMode", 2)winwait("jabber.agere.com - RhymBox")winactivate("jabber.agere.com - RhymBox") send ("{ALTDOWN}t")send("{ALTUP}")send ("s")Opt("WinTitleMatchMode", 3)WinActivate("RhymBox Settings")WinWaitActive("RhymBox Settings")Opt("MouseCoordMode", 0) MouseClick ( "left" , 55, 178, 1, 0 )Send("{tab} ")ControlCommand ( "RhymBox Settings", "", "Store all the messages in the history archive",Send("{-}"), "")
hari Posted January 20, 2005 Author Posted January 20, 2005 No , it didn't workMy code is --------------------------------Opt("WinTitleMatchMode", 2)winwait("jabber.agere.com - RhymBox")winactivate("jabber.agere.com - RhymBox") send ("{ALTDOWN}t")send("{ALTUP}")send ("s")Opt("WinTitleMatchMode", 3)WinActivate("RhymBox Settings")WinWaitActive("RhymBox Settings")Opt("MouseCoordMode", 0) MouseClick ( "left" , 55, 178, 1, 0 )Send("{tab} ")ControlCommand ( "RhymBox Settings", "", "Store all the messages in the history archive",Send("{-}"), "")<{POST_SNAPBACK}>problem with this code...Opt("MouseCoordMode", 0)MouseClick ( "left" , 55, 178, 1, 0 )this code is exactly working some times , and giving problem some time with same resolution on same machine.any reason?
phillip123adams Posted January 20, 2005 Posted January 20, 2005 problem with this code...Opt("MouseCoordMode", 0)MouseClick ( "left" , 55, 178, 1, 0 )this code is exactly working some times , and giving problem some time with same resolution on same machine.any reason?<{POST_SNAPBACK}>Are the specified coordinates releative to the "settings" window? Is the item to be clicked always in the same place within the settings window?Take a look at the ControlClick function. It gives much greater control over what gets clicked. Use the AutoIt Window Info tool to get the ControlID required by this function. Phillip
hari Posted January 20, 2005 Author Posted January 20, 2005 Are the specified coordinates releative to the "settings" window? Is the item to be clicked always in the same place within the settings window?Take a look at the ControlClick function. It gives much greater control over what gets clicked. Use the AutoIt Window Info tool to get the ControlID required by this function.<{POST_SNAPBACK}>first i tried with controlclick & cotrolcommand, but as nothing is visible in autoit window spy , i am going with x.y cordinates.no controls are getting displayed in autoit window.
phillip123adams Posted January 20, 2005 Posted January 20, 2005 first i tried with controlclick & cotrolcommand, but as nothing is visible in autoit window spy , i am going with x.y cordinates.no controls are getting displayed in autoit window.<{POST_SNAPBACK}>The only other thing I can offer to try is to add Sleep(nnnn) after each statement that is not working properly. If that works, try reducing the duration. Phillip
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