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 

needs help with random

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





PostPosted: Sat Oct 24, 2009 2:51 pm    Post subject: needs help with random Reply with quote

i want to
press and hold the arrow keys randomly

for a sleep time of 500-1000
alot like this but random
Quote:
Send {UP down}
Sleep 1000
Send {UP up}
Sleep 1000
Send {RIGHT down}
Sleep 1000
Send {RIGHT up}
Sleep 1000
Send {DOWN down}
Sleep 1000
Send {DOWN up}
Sleep 1000
Send {LEFT down}
Sleep 1000
Send {LEFT up}
}
Back to top
Guest






PostPosted: Sat Oct 24, 2009 3:10 pm    Post subject: Reply with quote

i forgot i want the the arrow keys used in a random order
Back to top
my name is bob
Guest





PostPosted: Sat Oct 24, 2009 3:45 pm    Post subject: Reply with quote

please someone
Back to top
sinkfaze



Joined: 18 Mar 2008
Posts: 2430

PostPosted: Sat Oct 24, 2009 3:58 pm    Post subject: Reply with quote

Did you try looking at the Random and Sort commands to accomplish this?
_________________
Try Quick Search for Autohotkey or see the tutorial for newbies.
Back to top
View user's profile Send private message
my name is bob
Guest





PostPosted: Sat Oct 24, 2009 4:03 pm    Post subject: Reply with quote

yes i did

thanks for nothing
Back to top
sinkfaze



Joined: 18 Mar 2008
Posts: 2430

PostPosted: Sat Oct 24, 2009 4:09 pm    Post subject: Reply with quote

my name is bob wrote:
thanks for nothing


Likewise. If you don't plan to show people here what you've tried with the Random and Sort commands, don't expect much help. We're here to help you write code, not to write code for you.
_________________
Try Quick Search for Autohotkey or see the tutorial for newbies.
Back to top
View user's profile Send private message
MasterFocus



Joined: 08 Apr 2009
Posts: 882
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Sat Oct 24, 2009 4:09 pm    Post subject: Reply with quote

+1
_________________
Antonio França
aka MasterFocus aka Tunis
+ My AHK stuff: ~MasterFocus
+ AHK @ irc.freenode.net: #ahk
Contact: PM only !
Back to top
View user's profile Send private message
Guest






PostPosted: Sat Oct 24, 2009 4:15 pm    Post subject: Reply with quote

am glad your having fun on your little crusade to teach me a lesson Razz
Back to top
sinkfaze



Joined: 18 Mar 2008
Posts: 2430

PostPosted: Sat Oct 24, 2009 4:20 pm    Post subject: Reply with quote

Anonymous wrote:
am glad your having fun on your little crusade to teach me a lesson Razz


I'm glad you're having fun on your little troll mission, anon. Rolling Eyes
_________________
Try Quick Search for Autohotkey or see the tutorial for newbies.
Back to top
View user's profile Send private message
tidbit



Joined: 09 Mar 2008
Posts: 650
Location: USA

PostPosted: Sat Oct 24, 2009 5:18 pm    Post subject: Reply with quote

If I was a mod/admin, you would be banned.

We teach, we don't do.

think of us as a school. teachers TEACH you. you don't ask your teacher to do your assignment for you.
_________________
rawr. be very affraid
*poke*
Note: My name is all lowercase for a reason.
Back to top
View user's profile Send private message
Guest






PostPosted: Sat Oct 24, 2009 5:27 pm    Post subject: Reply with quote

check help file with Random and then use sleep %rand%
Back to top
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