ddr4lyfe Posted March 7, 2007 Posted March 7, 2007 Okay, what I want to do is minimize ALL of my windows then restore (or "un-minimize") a window and make 3 mouse clicks on it. This is what I have so far: Func _SetCRC () WinMinimizeAll () Sleep (7500) WinSetState ("Akuma Engine","",@SW_RESTORE) WinActivate ("Akuma Engine") MouseClick ("left",950,250,1,5) MouseClick ("left",670,230,1,5) Sleep (500) MouseClick ("left",670,240,1,5) EndFunc Any help/solutions to my problem is welcome and thanked. Thank you in advance.
Moderators SmOke_N Posted March 7, 2007 Moderators Posted March 7, 2007 We might be able to help, if we knew what it was doing that you don't want it to be doing. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
ddr4lyfe Posted March 7, 2007 Author Posted March 7, 2007 Lmao, oh yeah. o.o Okay, when I execute the script, it minimizes all of my windows perfectly fine, but it never restores Akuma Engine and the mouse proceeds to click the three coordinates on the desktop, not Akuma Engine. So my only problem is restoring Akuma Engine after a complete minimizing of all windows.
Moderators SmOke_N Posted March 7, 2007 Moderators Posted March 7, 2007 Make sure you are using Client Coords instead of screen coords... this will solve your issue. AutoInfo.exe >> Options >> Coord Mode >> Client Then in that function do something like: Func _SetCRC () $OPTMCM = Opt("MouseCoordMode", 2) WinMinimizeAll () Sleep (1500) WinSetState ("Untitled - Notepad","",@SW_RESTORE) WinActivate ("Untitled - Notepad") MouseClick ("left",950,250,1,5) MouseClick ("left",670,230,1,5) Sleep (500) MouseClick ("left",670,240,1,5) Opt("MouseCoordMode", $OPTMCM) Return '' EndFunc Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
ddr4lyfe Posted March 7, 2007 Author Posted March 7, 2007 Nice, thanks a lot. Let me try using that to the other parts of my macro...
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