PDA

View Full Version : [ISBoxer] [AutoHotkey] Macros won't run in DxNothing window



RandomName
10-15-2016, 03:49 AM
All hotkeys/scripts set in autohotkey will not fire when the dxnothing window is active, nor will they continue if started in another window.

For eg.


*^u::
KeyWait, NumPad0, D
Cclick(1, 1, 660, 520, 1)
KeyWait, NumPad0, D
Cclick(1, 1, 660, 600, 1)
KeyWait, NumPad0, D
Cclick(1, 1, 660, 680, 1)
KeyWait, NumPad0, D
Cclick(1, 1, 660, 760, 1)
KeyWait, NumPad0, D
Cclick(1, 1, 730, 520, 1)
KeyWait, NumPad0, D
Cclick(1, 1, 730, 600, 1)
KeyWait, NumPad0, D
Cclick(1, 1, 730, 680, 1)
return

If ran in word. Hitting Ctrl+Shift u runs the script. Hitting Numpad 0 progresses through each step.
In Dxnothing well.. nothing.
If Ctrl+Shift u is hit in word, then switch to dxnothing, Numpad 0 will not progress but will when switched back.

Any idea what's going on here or how to fix?

RandomName
10-15-2016, 03:51 AM
Oh Cclick is a custom click function I use, not standard, but the idea is the same.

mbox_bob
10-15-2016, 04:00 AM
Chances are it comes under the same category as: http://isboxer.com/wiki/FAQ#Why_is_my_Ventrilo_push_to_talk_key_not_workin g.3F
When dxnothing runs under Inner Space, it is an admin process. which means AHK would also need to be an admin process.

Admin processes have privileges when it comes to input focus, and they override other applications, but essentially, everything needs to be on a level playing field.

RandomName
10-15-2016, 04:04 AM
Thank you kindly, That was it, such a simple fix.

luxlunae
10-15-2016, 09:01 AM
Yep, AHK should generally be run as admin.