Jump to content

Recommended Posts

Posted
HotKeySet("{ESC}", "_Quit")
Opt("MouseCoordMode", 2)


while 1
   $handle = WinGetHandle("Title", "")
   ControlClick($handle, "", "","left",1,1200,75)
   sleep(1000)
    ControlSend($handle, "", "", "{F1}")
   sleep(1000)
   ControlSend($handle, "", "", "{F1}")
   sleep(11500)
WEnd

Func _Quit()
    Exit
EndFunc

 

>>>> Window <<<<
Title:  Title
Class:  triuiScreen
Position:   0, 0
Size:   3200, 1080
Style:  0x940A0000
ExStyle:    0x00000000
Handle: 0x00000000003301BC

>>>> Control <<<<
Class:  
Instance:   
ClassnameNN:    
Name:   
Advanced (Class):   
ID: 
Text:   
Position:   
Size:   
ControlClick Coords:    
Style:  
ExStyle:    
Handle: 

>>>> Mouse <<<<
Position:   2610, 727
Cursor ID:  0
Color:  0x070706

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<


>>>> Hidden Text <<<<

 

I tried to do script that click button in background then double tap F1 every 11 seconds. Keystrokes works fine but mouse clicks only if i hover location of button, even if i have other window on top of it. It dont use coords i set for clicks but my real mouse coords.

Posted

Try elevating you program. Add #RequireAdmin on the top of your script and run scite as admin. If the click is actually performed but it is not interacting with the window then know that you script has to have the same privileges as the window you are interacting, or higher.

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
  • Recently Browsing   0 members

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