Hi i'm just requesting some help if anyone could kindly help me i would gladly appreciate it..
I'm just wondering if anyone knows how to create a small script that will spam the F1 key.
Or this, i found this key spamming script on the forums here and i'm wondering-
If it can be modified to spam the F1 key instead of the e key. Here's the script i already have below.
I would appreciate any help thank you all .
F3::
If State=100
State=Off
else
State=100
SetTimer SendKey, %State%
Return
SendKey:
Send e
Return
I just would like a simple spam F1 key script Topic is solved
-
- Posts: 2
- Joined: 26 Jan 2019, 09:07
Re: I just would like a simple spam F1 key script
F3::
If State=100
State=Off
else
State=100
SetTimer SendKey, %State%
Return
SendKey:
Send F1
Return
If State=100
State=Off
else
State=100
SetTimer SendKey, %State%
Return
SendKey:
Send F1
Return
Re: I just would like a simple spam F1 key script
Yes, change e by {F1}.
I didn't test it, but if you say it works,
then this one should work too.
Cheers!
I didn't test it, but if you say it works,
then this one should work too.
Cheers!
Please use [code][/code] when posting code!
Keyboard: Logitech G PRO - Mouse: Logitech G502 LS - OS: Windows 10 Pro 64 Bit - AHK version: 1.1.33.09
Keyboard: Logitech G PRO - Mouse: Logitech G502 LS - OS: Windows 10 Pro 64 Bit - AHK version: 1.1.33.09
Re: I just would like a simple spam F1 key script Topic is solved
Your script:
each special key name must be enclosed in braces.
I'm personally using this loop for any repeatable actions:
Code: Select all
F3::
If State=100
State=Off
else
State=100
SetTimer SendKey, %State%
Return
SendKey:
Send {F1}
Return
I'm personally using this loop for any repeatable actions:
Code: Select all
YourHotkeyHere::
Toggle := !Toggle
Loop
{
Send, {F1} ; or any code you want to repeat put in here
Sleep, 100
} Until Toggle = "0"
return
-
- Posts: 2
- Joined: 26 Jan 2019, 09:07
Re: I just would like a simple spam F1 key script
Thank you guys for your help it works perfectly now.
I tried to think logically and just replace the e with just F1 only.
But i didn't know about the braces, that,s what made the difference and now it works perfect.
Again thank you all for all your help it was greatly appreciated
I tried to think logically and just replace the e with just F1 only.
But i didn't know about the braces, that,s what made the difference and now it works perfect.
Again thank you all for all your help it was greatly appreciated
Who is online
Users browsing this forum: Chunjee and 131 guests