Sign in to follow this  
Followers 0
diepfeile

key-hold-down becomes key-hammering

2 posts in this topic

i want to make a script that hammers a key while i hold down a specific key. preferably these keys should be the same. i had the script but lost it due to hdd-crash.

that's how far i got. unfortunaly it's a toggle for the key-hammering and the keys can't be the same.

HotKeySet("{^}","toggle");

$toggle = 0;

Func toggle()
    $toggle = NOT $toggle
EndFunc

while 1
    sleep (Random(100,125))
    if $toggle = 1 Then
        cast()
    endif
wend

func cast()
    Send("2")
EndFunc

Share this post


Link to post
Share on other sites



i want to make a script that hammers a key while i hold down a specific key. preferably these keys should be the same. i had the script but lost it due to hdd-crash.

that's how far i got. unfortunaly it's a toggle for the key-hammering and the keys can't be the same.

HotKeySet("{^}","toggle");

$toggle = 0;

Func toggle()
    $toggle = NOT $toggle
EndFunc

while 1
    sleep (Random(100,125))
    if $toggle = 1 Then
        cast()
    endif
wend

func cast()
    Send("2")
EndFunc
lookup _ispressed

put _ispressed in a if statement in a loop

if the eky is pressed then

send(key)


[size="10"]Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[/size][Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N

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  
Followers 0