Sign in to follow this  
Followers 0
ddr4lyfe

Okay, I'm having trouble with restoring a minimized window...

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



We might be able to help, if we knew what it was doing that you don't want it to be doing. :whistle:


[center]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.[/center]

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

[center]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.[/center]

Share this post


Link to post
Share on other sites

Nice, thanks a lot. Let me try using that to the other parts of my macro...

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0