Help
-
- Posts: 10
- Joined: 15 May 2017, 17:01
Help
How would I make it so that whenever I hit W it hits W and LControl and when I hit W again it stops. THX
Thx and sorry for the bother
Notepad++/Windows 10/Ryzen 1600X/1070 8gb
Notepad++/Windows 10/Ryzen 1600X/1070 8gb
-
- Posts: 216
- Joined: 30 Jun 2016, 06:01
Re: Help
Code: Select all
$w::
Toggle := !Toggle
If (Toggle)
Send {CTRL Down}{w down}
Else
Send {CTRL Up}{w up}
Return
-
- Posts: 10
- Joined: 15 May 2017, 17:01
Re: Help
Not to be a nag but can AHK make it so that that scripts only runs during Minecraft or a game?
Thx and sorry for the bother
Notepad++/Windows 10/Ryzen 1600X/1070 8gb
Notepad++/Windows 10/Ryzen 1600X/1070 8gb
-
- Posts: 216
- Joined: 30 Jun 2016, 06:01
Re: Help
Yep, you need the IfWinActive function.
Putting this at the very top of your script should do it.
Putting this at the very top of your script should do it.
Code: Select all
SetTitleMatchMode, 2
#IfWinActive, Minecraft
-
- Posts: 10
- Joined: 15 May 2017, 17:01
-
- Posts: 10
- Joined: 15 May 2017, 17:01
Re: Help
I'm trying to learn AHK so I'm wondering what the $ sign mean
Thx and sorry for the bother
Notepad++/Windows 10/Ryzen 1600X/1070 8gb
Notepad++/Windows 10/Ryzen 1600X/1070 8gb
-
- Posts: 10
- Joined: 15 May 2017, 17:01
Re: Help
Also could I make it so the tab title only has to include Minecraft because MC has different versions
Thx and sorry for the bother
Notepad++/Windows 10/Ryzen 1600X/1070 8gb
Notepad++/Windows 10/Ryzen 1600X/1070 8gb
-
- Posts: 216
- Joined: 30 Jun 2016, 06:01
Re: Help
$ keeps the hotkey from activating itself. If you have w as a hotkey, and then you have send w, it will reactivate itself, and end up in an endless loop. And yes, SetTitleMatchMode, 2 means it will search every window for the word "Minecraft". Doesn't matter which version.
-
- Posts: 10
- Joined: 15 May 2017, 17:01
Re: Help
One last thing, how do I make a script that once you double tap, toggles? For example, I hit LButton and then LButton again in rapid succession and then hold LButton and then LButton get pressed in rapid succession, though it doesn't have to be at a certain speed. (more or less 120 clicks per minute) If this isn't possible just tell me. Thx and sorry for the bother.
Thx and sorry for the bother
Notepad++/Windows 10/Ryzen 1600X/1070 8gb
Notepad++/Windows 10/Ryzen 1600X/1070 8gb
Who is online
Users browsing this forum: No registered users and 107 guests