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

Need Example Of Delay

$
0
0
Hi there i'm trying to get a simple example of...

if mouse click is longer than 200ms, then do this xxx

So far this is what i have, but when 1 is pressed is basically does an extra click.
so i'm thinking is..
if its only a mouse click ignore Send("1")
and if mouse is held >=200ms then Send("1")

i'm not looking for hand outs, just an example of something similar will be fine. so far i'm unsure exactly what function is needed, and have been unable to find something similar in help/google.

thanx in advance

[ autoit ]      
#include <Misc.au3> While 1 If _IsPressed(01) Then Sleep(200) Send("1") EndIf Sleep(5) WEnd

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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