Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Avoid script pause on window change

$
0
0
Hello everyone,
I have a problem : I've been looking on the net for an easy working autocliker, but I couldn't find it, so i decided to make my own one with autoit.
I made many researches on this forum and then i found some good codes to use.
I finally could make my autoclicker, but still i have a problem : i need to run the script on a window, and when i start the script and click on the window i need, the script pauses..
So I tried to find a solution for this problem, but I couldn't find one yet..
Here's the code of my script until now

[ autoit ]      
$title = WinGetTitle("iPad-di-Stefano - VNC Viewer") WinActivate($title) HotKeySet("{F8}", "Terminate") Func Terminate() Exit 0 EndFunc $i = 0 Do MouseClick("left", 1481, 865, 2) Sleep (1000) MouseClick("left", 1054, 743, 2) Sleep (1000) MouseClick("left", 1051, 616, 2) Sleep (2000) $i = $i + 1 Until $i = 100

so I do activate the window from the script, but after doing it it will pause..and if i click somewhere else on the screen it will go back running..
How could i solve?

Thanks for your help,
Stefano

Edit : I just realized the script works for example on IE and Chrome, so it must be a problem of the software i want to run the autoclicker on..(VNC Viewer)

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>