Gadoz Posted December 30, 2017 Share Posted December 30, 2017 (edited) Hello, I'm trying to send clicks to the background. First it doesn't send click into the background (tried with paint) Next, If I activate paint windows and make some points myself to test the accuracy of controllclick. (array indexer and manual coordinations - both aren't working.) How I've tested this? Made 4 Dots with black (took the coordination with a array and manual coords with the autoit window info tool), now I choose a other color and I have started the script... you can see the result (image as attachment). Script with manual coordinations: expandcollapse popup#RequireAdmin AutoItSetOption("MouseCoordMode", 2) HotKeySet("{F10}", "Window") HotKeySet("{F11}", "End") Global $handle1 = 0 Global $i = 0 Global $j = 0 Func Window() $handle1 = WinGetHandle("[ACTIVE]") $handle2 = WinGetTitle("[ACTIVE]") Do ;MsgBox(0,$handle2,$handle1) ControlClick($handle1,"","","left",2, 302, 320) sleep (1000) ControlClick($handle1,"","","left",2, 548, 321) sleep (1000) ControlClick($handle1,"","","left",2, 311, 467) sleep (1000) ControlClick($handle1,"","","left",2, 556, 468) sleep (1000) $j = $j +1 Until $j = 4 EndFunc while 1 Sleep(50) WEnd Func End () Exit EndFunc Script with array indexer + 1 (to pick the coordinations with F9) expandcollapse popup#RequireAdmin AutoItSetOption("MouseCoordMode", 0) HotKeySet("{F9}", "Position") HotKeySet("{F10}", "Window") HotKeySet("{F11}", "End") Global $handle1 = 0 Global $vPosX[4] Global $vPosY[4] Global $i = 0 Global $j = 0 Func Position() $vPosX[$i] = MouseGetPos(0) $vPosY[$i] = MouseGetPos(1) $i = $i + 1 EndFunc Func Window() $handle1 = WinGetHandle("[ACTIVE]") $handle2 = WinGetTitle("[ACTIVE]") Do ;MsgBox(0,$handle2,$handle1) ControlClick($handle1,"","","left",1,$vPosX[$j], $vPosY[$j]) sleep (1000) $j = $j +1 Until $j = 4 EndFunc while 1 Sleep(50) WEnd Func End () Exit EndFunc Is thit normal, that controllclick hasn't a good accuracy Edited December 30, 2017 by Gadoz Link to comment Share on other sites More sharing options...
Developers Jos Posted December 30, 2017 Developers Share Posted December 30, 2017 ControlClick() is to click on controls ( no surprise there I guess). The x/y option is relative to the control clicked. Now having said all of this: What in the hell are you trying to do here that makes any sense using this complex mouse clicking other than automating a Game? Seriously.... don't come back with Notepad or Paint because that won't be good enough. Jos Earthshine 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Gadoz Posted December 30, 2017 Author Share Posted December 30, 2017 (edited) Well, this is now private. My first problem (thread) I've solved with $handle1 = WinGetHandle("[ACTIVE]") This problem is based, I want to inform many people on steam client, that I'm afk now - I'll come back later. So, now I don't want click people one by one to send them this message. "ControlClick is to click on controls" (my window is a control, which I get through WinGetHandle?) I also made a screenshot from my friendlist and tried to solve my problem with "- coordinates". Perfect, this marks 1:1 the position, where my mouse should click on the script. But If I started the script... my mouse clicks everywhere, not on my friends. ControlClick($handle1,"","","left",1,$vPosX[$j] -8 , $vPosY[$j] -148) ("-coordinates". Edited December 30, 2017 by Gadoz Link to comment Share on other sites More sharing options...
Developers Jos Posted December 30, 2017 Developers Share Posted December 30, 2017 3 minutes ago, Gadoz said: steam client ? 3 minutes ago, Gadoz said: Well, this is now private. ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Gadoz Posted December 30, 2017 Author Share Posted December 30, 2017 (edited) 5 minutes ago, Jos said: ? http://store.steampowered.com/?l=german A client/portal, where you can buy Games, Chat with friends, discuss in community forum. This is not a game. My first request, how to send keys on multiple window in background was professional/occupational question. This thread is a request for my private freetime activty (nothing to do with my job) You have asked, why I will need this script. Edited December 30, 2017 by Gadoz Link to comment Share on other sites More sharing options...
Gadoz Posted December 31, 2017 Author Share Posted December 31, 2017 I understand controllclick right now.... I need controll id through autoit window tool, then I can use controllclick, is this correct? There is no other way to send clicks to the background window? Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted December 31, 2017 Moderators Share Posted December 31, 2017 This still falls afoul of both this point: Quote Launching, automation or script interaction with games or game servers, regardless of the game. And this one: Quote Automation of software/sites contrary to their EULA As the Steam website clearly prohibits Quote automation software (bots), mods, hacks, or any other unauthorized third-party software, to modify or automate any Subscription Marketplace process Thread locked Earthshine and Jos 2 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Recommended Posts