Help

Ask gaming related questions (AHK v1.1 and older)
Sh3llShock3d
Posts: 10
Joined: 15 May 2017, 17:01

Help

16 May 2017, 17:00

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 :D

Notepad++/Windows 10/Ryzen 1600X/1070 8gb
neomulemi6
Posts: 216
Joined: 30 Jun 2016, 06:01

Re: Help

16 May 2017, 20:05

Code: Select all

$w::
Toggle := !Toggle
If (Toggle)
	Send {CTRL Down}{w down}
Else
	Send {CTRL Up}{w up}
Return
Sh3llShock3d
Posts: 10
Joined: 15 May 2017, 17:01

Re: Help

16 May 2017, 20:34

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 :D

Notepad++/Windows 10/Ryzen 1600X/1070 8gb
neomulemi6
Posts: 216
Joined: 30 Jun 2016, 06:01

Re: Help

16 May 2017, 20:43

Yep, you need the IfWinActive function.

Putting this at the very top of your script should do it.

Code: Select all

SetTitleMatchMode, 2
#IfWinActive, Minecraft
Sh3llShock3d
Posts: 10
Joined: 15 May 2017, 17:01

Re: Help

17 May 2017, 13:00

Thx for your help.
Thx and sorry for the bother :D

Notepad++/Windows 10/Ryzen 1600X/1070 8gb
Sh3llShock3d
Posts: 10
Joined: 15 May 2017, 17:01

Re: Help

17 May 2017, 13:15

I'm trying to learn AHK so I'm wondering what the $ sign mean
Thx and sorry for the bother :D

Notepad++/Windows 10/Ryzen 1600X/1070 8gb
Sh3llShock3d
Posts: 10
Joined: 15 May 2017, 17:01

Re: Help

17 May 2017, 13:18

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 :D

Notepad++/Windows 10/Ryzen 1600X/1070 8gb
neomulemi6
Posts: 216
Joined: 30 Jun 2016, 06:01

Re: Help

17 May 2017, 19:19

$ 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.
Sh3llShock3d
Posts: 10
Joined: 15 May 2017, 17:01

Re: Help

20 May 2017, 18:18

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 :D

Notepad++/Windows 10/Ryzen 1600X/1070 8gb

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 38 guests