I have read everything on here and can’t seem to find out exactly how to stop this macro. Once I fire it off, it doesn’t stop no matter what I do. Is there a way to assign a single button to stop or pause this macro?
I added this line of code to the very top, to change the system tray icon.
; ---- SET ICON ----
Menu, Tray, Icon, windwalker.ico
and downloaded the icon (and renamed it) from https://www.pvpleaderboard.com/ (right click save) and converted it using this website https://convertico.com/.
NOW, whenever I use this beautiful script you shared, I have a baby windwalker icon in my system tray near the clock.
p.s. - the icon has to be relative to the script, so in my example, i have a folder on my desktop called “shadowlands” and inside that folder i have the .ico and .ahk
Just using the exact copy / paste our buddy shared, it toggles off when pressing #1 or #2 key. The script toggles on when you press #1 AND NOT #2 though. It works great for me.
how to use xbutton to active 1 or 2 key?
I had a very simple button spam macro that just stopped working today
F1::
If State=100
State=Off
else
State=100
SetTimer SendKey, %State%
Return
SendKey:
Send 1
Return
anyone have any clue why?
For some reason the macros work fine when activated in every app (e.g. just testing it in notepad) but not in WoW.
For example, using this test script, pressing ctrl+j writes “My First Script” in notepad, etc… but it doesn’t do it in the chat box in wow.
^j::
Send, My First Script
return
I’m using this test script because I couldnt get any of the looping scripts in the thread above to run in wow, so thought I’d try to debug AHK with a test script.
Any help is deeply appreciated!
UPDATE: Fixed it. Need to run the script as admin for them to work with wow as the focus app. Leaving this post as help in case anyone else comes across this issue!
UPDATE 2: huh, maybe not… sent keys work fine in wow’s chat box, so the script is definitely running and sending the keypress, but outside of the chat box the sent keypress doesn’t activate the number on the hotbar. So, I still need help please! <3
This is the script i use for mouse button 4 and 5.
$XButton1::
keywait XButton1
Onetoggle := !OneToggle
While (OneToggle)
{ Send, 2
sleep, 100
}
Return
^!s::
Suspend, Permit
Suspend, Toggle
Return
$XButton2::
keywait XButton2
Onetoggle := !OneToggle
While (OneToggle)
{ Send, 3
sleep, 100
}
Return
Hey guys! Can I use AHK for two windows to press 1 buttons? There are 2 windows with characters, 2 different scripts on AHK, can I simultaneously start 2 different scripts to click on 2 windows without blocking an account or is it prohibited? If this is against the rules, then I can run a script to one character, and to play yourself independently (the first window with the character will be inactive because on the second monitor)
This got me Banned for 189 days
If you really want to use AutoHotkey you should at least look at the files located here to learn about alt keys and getting them to work. The example files are good to go for toggle and hold key macros. Life savers if you need something to toggle on or off a macro.
whats the difference between synapse and auto hot key and what is it for when playing wow and how does it work? IM new to this and wanna know.
Both are programs that help you creating combinations or macro keystrokes from keyboard and / or mouse
Hold or toggle to press , and so on.
Cheers.
PS: that famous msec numbers you will find around here, that pertain to the interval or delays from a keystroke ( keyup / keydown )
So for gse should it be set to 250ms?or 40 to 60 ms?
Is there a way to make the script work with modifiers?
My GSE Marco has a block that has a mod:shift that casts a spell, but doesn’t appear to work if the ahk is running. Just curious.
NVM, it works with one of my characters so it must be something in my gse macro screwing up.
so you saying it works fine on 1 toon, but not on another? if that is so, do you have a different addon for that toon that isnt used on the toon that is working correctly.
dont jump on GSE if something is working on 1 toon but not another. Because GSE is working like it should if you are getting working results on other toons.
I didnt mean to jump on GSE, I love GSE and have been using it forever!
Hey all… Here is my simple code for AHK for use in WoW. I switched from G600 to Red Dragon 913. I just like the feel better but it is almost the exact same layout.
The issue is, when I set the hotkey in WoW for 11 and 12 on my mouse, it registers as Numpad+ and Numpad-
and i have tried everything I can think of in my Macro to edit to recognize that numpad and I can’t figure it out. So trying here. I have tried
Num Pad +
num+
numpad+
#IfWinActive World of Warcraft
$+::
GetKeyState, state, +, P
if state = D
Loop
{
Send {+}
Sleep, 150
return
'''
The above code does not work with my 11 button on my mouse.. the macro needs to know it is numpad and +
Use this and it should work;
NumpadAdd
and numpad-
NumpadSub
Brand new to this. Looking to set up AHK to my Side Mouse Button Two. I have a working script now. I’ll post it below. What I want to toggle it on with Side Mouse Button Two. Then toggle it off with Shift Side Mouse Button 2. Anyone know how to get that to work? Here is the script:
$XButton1::
keywait XButton1
Onetoggle := !OneToggle
While (OneToggle)
{ Send, 2
sleep, 100
}
Return
^!s::
Suspend, Permit
Suspend, Toggle
Return
$XButton2::
keywait XButton2
Onetoggle := !OneToggle
While (OneToggle)
{ Send, 3
sleep, 100
}
Return