stackover Posted January 13, 2007 Share Posted January 13, 2007 Hi. I trying to make asimple script. For example: Start sending "A" al the time and running back this a counter that 10 in 10 seconds stop send "A" and send "B". I tryed too much but my scritp only send "A" or only send "B". Anyone can help.Here my script. Doesn´t know if is that the correct way to do this kind of script. ThanksHotKeySet("{END}", "t2")$autopartyOn = 0$autopartyC = 0;**********************contador do autopartyFunc t2 ()While 1 send("a") Sleep("60") If $autopartyC = 10 Then Call ("Party") $autopartyC = 0 $autopartyOn = 1 EndIfWEndEndFunc Func t1 () $autopartyOn = 1$autopartyC = 0While 1If $autopartyOn = 1 then$autopartyC = $autopartyC + 1Sleep(1000)EndIf;If $autopartyC = 10 then;Call ("Party");$autopartyC = 0; $autopartyOn = 1 ;EndIfWEndEndFuncFunc Party () Send("xx")EndFuncWhile (1) Sleep (1)WEnd Link to comment Share on other sites More sharing options...
stackover Posted January 13, 2007 Author Share Posted January 13, 2007 I Tryed other kind of script but only do Mouse Click dont do Send("aa"). HotKeySet("{END}", "t1") Func t1() $start = TimerInit() Do MouseClick("right") Sleep(500) If TimerDiff($start) > 10000 Then Sleep(1000) Call("Party") $start = TimerInit() EndIf Until TimerDiff($start) > 30000 EndFunc Func Party () Send("aa") EndFunc While (1) Sleep (1) WEnd Link to comment Share on other sites More sharing options...
stackover Posted January 13, 2007 Author Share Posted January 13, 2007 Thanks All Works seconds scritp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now