Jump to content
Sign in to follow this  
Guest +3|-| /|/00|

Petition

Recommended Posts

Guest +3|-| /|/00|

Hello...

as you can see for my post count and nickname im a total n00b in this kind of stuff...

so ill make a petition to some to make me or tell me the place/guide where i can read how to make it

the script just needs to be fast to activate/unactivate :whistle:

and just needs to "press" left and right arrows rapidly....

well that´s all Thank you in advance :dance:

*goes back to the darkness*

Share this post


Link to post
Share on other sites
Gigglestick

I hope you have your flame-retardant suit on... I can feel the heat comin'!

lol


My UDFs: ExitCodes

Share this post


Link to post
Share on other sites
Guest +3|-| /|/00|

I hope you have your flame-retardant suit on... I can feel the heat comin'!

lol

<{POST_SNAPBACK}>

Really ?

:whistle:

what a shame......

Share this post


Link to post
Share on other sites
Gigglestick

Really ?

:dance:

what a shame......

Nah! I just got done reading some posts from n00b's asking for people to write scripts for them and was annoyed. :whistle:

Use something like this:

HotKeySet("{PAUSE}", "_SendMyKeys")

While 1
    Sleep(100)
WEnd

Func _SendMyKeys()
    For $i = 1 to 10; This will send {LEFT}{RIGHT} quickly ten times and stop
        Send("{LEFT}{RIGHT}")
    Next
EndFunc

You might also want to look put this around the For loop: :dance:

If WinActive("Some Window") Then
    ...for...
EndIf

My UDFs: ExitCodes

Share this post


Link to post
Share on other sites
Guest +3|-| /|/00|

Nah!  I just got done reading some posts from n00b's asking for people to write scripts for them and was annoyed. :whistle:

Use something like this:

HotKeySet("{PAUSE}", "_SendMyKeys")

While 1
    Sleep(100)
WEnd

Func _SendMyKeys()
    For $i = 1 to 10; This will send {LEFT}{RIGHT} quickly ten times and stop
        Send("{LEFT}{RIGHT}")
    Next
EndFunc

You might also want to look put this around the For loop: :dance:

If WinActive("Some Window") Then
    ...for...
EndIf

<{POST_SNAPBACK}>

Thank you very much mate :dance:

Share this post


Link to post
Share on other sites
Gigglestick

Even better...

Opt("SendKeyDelay", "100"); Slows keys down to ten per second, smaller is faster!
HotKeySet("{PAUSE}", "_Toggle"); Pause will start/stop sending keys
HotKeySet("+{PAUSE}", "_Quit"); Shift-Pause will exit the script

$bSendKeys = 0

While 1
    If $bSendKeys = 1 Then
        Send("{LEFT}{RIGHT}")
    Else
        Sleep(10)
    EndIf
WEnd

Func _Toggle()
    $bSendKeys = NOT $bSendKeys
EndFunc

Func _Quit()
    Exit
EndFunc

My UDFs: ExitCodes

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×