Sign in to follow this  
Followers 0
Splitz

Want to know how to click in a minimized window

4 posts in this topic

i need to know the command that will make autoit preform clicks in a window that i have minimized while im doing something else, is this possible ?

Share this post


Link to post
Share on other sites

Look for ControlClik() in the help file.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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)

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