AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Randomized Mouse Click

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Sat Apr 30, 2005 11:34 am    Post subject: Randomized Mouse Click Reply with quote

I am needing to click on a specific plane on the screen but want it to be done at random times ( around every 15 mins but sometime 14 sometimes 17 etc )

How could this be accomlished?
Back to top
sosaited



Joined: 24 Feb 2005
Posts: 233

PostPosted: Sat Apr 30, 2005 11:50 am    Post subject: Reply with quote

you could use RANDOM command to generate a random number (from 15 to 20 ) or whatever you want something like this:

Code:
Loop
{
Random, v_minutes, 15, 20 ; set this to minimum value and max value
v_msec := (v_minutes*60*1000)
Sleep, %v_msec%
MouseClick,...... ; MouseClick
}
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group