Jump to content

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


Recommended Posts

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.

Link to comment
Share on other sites

  • Moderators

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

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.

Link to comment
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.

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...