Bogo Posted April 11, 2016 Share Posted April 11, 2016 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 expandcollapse popup>>>> 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. Link to comment Share on other sites More sharing options...
AutID Posted April 11, 2016 Share Posted April 11, 2016 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. https://iblockify.wordpress.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now