Jump to content

Want to know how to click in a minimized window


Splitz
 Share

Recommended Posts

im putting this code in but it keeps giving me an error

i rarely use autoit

$wait = 100

Global $Paused
HotKeySet("{Home}", "TogglePause")
HotKeySet("{Del}", "Terminate")


;;;; Body of program would go here;;;;
While 1
    Sleep(100)
WEnd
;;;;;;;;

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        ToolTip('Script is "Running"',0,0)
        sleep($wait)
        ControlClick ( "smash-", "", [, Right [, 1 [, 200 [, 200 ]]]] )
    WEnd
    ToolTip("")
EndFunc

Func Terminate()
    Exit 0
EndFunc
Link to comment
Share on other sites

ControlClick ( "smash-", "",( [, Right [, 1 [, 200 [, 200 ]]]] )

This is wrong. Use the AutoIt window info tool to get the controlID or Classname so you can use it like this:

ControlClick ( "smash-", "", controlID)
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...