New Sony ------- piece of ----
#23
Re: New Sony ------- piece of ----
Code:
#NoEnv SendMode Input ~Space:: ;Use the space key to quickly toggle the script on & off Hotkey, ~LButton, toggle If toggle != 1 { toggle := 1 ; Will beep if it is set to on SoundPlay *64 ;Good because it plays over primary speakers. Others tend to play on motherboard speakers. It's 2008 many computers no longer have motherboard speakers! } else { toggle := 0 ; Will beep if it is set to off SoundPlay *64 ;Good because it plays over primary speakers. Others tend to play on motherboard speakers. It's 2008 many computers no longer have motherboard speakers! } _auto := true ~LButton::autofire() ~^LButton::autofire() Code: \::suspend ;P key completely suspends the script autofire() { global _auto if _auto { { Loop { if GetKeyState("LButton", "P") { Test1 := A_Index ;Test1 = A variable that carries outside of the loop, A_Index = how many times this specific loop has run. random,var1,33,65 ;Generate a random number called varriable (var1) between (#,#) random,var2,30,32 ;Generate a random number called varriable (var1) between (#,#) SendInput {LButton DownTemp} Sleep, %var1% ;Sleep for the amount of time randomly generated as var1 SendInput {LButton Up} Sleep, %var2% ;Sleep for the amount of time randomly generated as var2 mouseXY(0,4) ;Positive X = Right, Y = Down If A_Index = 18 ; The pause at loop 14 helps Sleep, 500 ;Sleep time is in ms } else break } mouseXY(0,(-10*(Test1))/1.61803399) ;Positive X = Right, Y = Lower. Golden Ratio FTW! } ;; loop } ;; if } ;; autofire() mouseXY(x,y) { DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0) } return ;;;;;; ;;; End script
Toys R Own COD:W@W age
Thread
Thread Starter
Forum
Replies
Last Post
crxmatt2
General Discussion
10
05-26-2008 04:16 PM
MAJORAHOLE
Hybrid/Tech
13
11-20-2006 05:04 PM