Search found 4586 matches

by evilC
20 Mar 2019, 12:12
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 218
Views: 24123

Re: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!

NumpadDiv is code 309, not 53 It's an extended keycode, so you have to add 256 to the normal number GetKeySC() gives the correct keycode for that key That is the old monitor - it shows the raw value that comes from Interception, which is 1 for release and 0 for press for normal keys, or 2/3 for exte...
by evilC
20 Mar 2019, 09:38
Forum: Ask For Help
Topic: Just wanna ask if its possible
Replies: 3
Views: 136

Re: Just wanna ask if its possible

For the 50th time, no, Roblox does not support receiving input while inactive
Why is the forum awash with this one request lately?
by evilC
20 Mar 2019, 09:35
Forum: Ask For Help
Topic: Adjust vertical mouse sensitivity?
Replies: 6
Views: 265

Re: Adjust vertical mouse sensitivity?

What do you want this for, windows desktop applications or a mouse-aim game? Windows mouse sensitivity settings typically have zero effect on the latter
by evilC
20 Mar 2019, 05:53
Forum: Ask For Help
Topic: IsObjectEmpty()
Replies: 12
Views: 465

Re: IsObjectEmpty()

Thanks for the heads up, I completely missed that one
by evilC
20 Mar 2019, 05:50
Forum: Ask For Help
Topic: User Selectable Hotkey
Replies: 25
Views: 1018

Re: User Selectable Hotkey

See AppFactory for a complete user selectable hotkey system
by evilC
19 Mar 2019, 19:52
Forum: Ask For Help
Topic: IsObjectEmpty()
Replies: 12
Views: 465

Re: IsObjectEmpty()

Because Count() for a sparse array is inaccurate even when it has elements (AFAIK a sparse array and an associative array are the same thing in AHK)
Enumerate args before args.Delete(4) in my code and it will iterate 3 times, whilst Count is 4
by evilC
19 Mar 2019, 14:52
Forum: Ask For Help
Topic: IsObjectEmpty()
Replies: 12
Views: 465

Re: IsObjectEmpty()

styles is still not an "empty" array. It's an array with an empty string as an element. Arrays in AHK are quite capable of being sparse, but your code does not create a sparse array This does msgbox % a(1, , 3, 4) a(args*) { ; Length of the object is 4, but let's delete 3 items and see if it is emp...
by evilC
19 Mar 2019, 06:33
Forum: Scripts and Functions
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 218
Views: 24123

Re: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!

Unfortunately, AHI does not support subscribing to media keys for USB keyboards. It only supports media keys coming from PS/2 keyboards.
This is a limitation of Interception, so is unlikely to change
by evilC
19 Mar 2019, 06:31
Forum: Gaming
Topic: AHK + ingame voice activation (WoW)
Replies: 2
Views: 168

Re: AHK + ingame voice activation (WoW)

What has sound or voice got to do with this?
by evilC
19 Mar 2019, 06:28
Forum: Ask For Help
Topic: IsObjectEmpty()
Replies: 12
Views: 465

Re: IsObjectEmpty()

Needs to return true for [""] and {1:"", 2:""} because these are also empty objects. No they are not. Empty strings are perfectly valid elements for an array To check for an empty associative array: msgbox % IsEmptyAssoc({}) ; true msgbox % IsEmptyAssoc({1:"", 2:""}) ; false ; Is an associative arr...
by evilC
16 Mar 2019, 13:06
Forum: Ask For Help
Topic: Keypad (half-a-keyboard) to vJoy buttons Topic is solved
Replies: 8
Views: 366

Re: Keypad (half-a-keyboard) to vJoy buttons Topic is solved

Oh, I forgot newState was super-global, I don't tend to use them as they are dangerous. If one of my libraries that you are using has newState as a local variable, you could break my library. Notice even though you don't use it any more, you left it in ;) Regarding the sticks, all modern games shoul...
by evilC
15 Mar 2019, 05:38
Forum: Ask For Help
Topic: Keypad (half-a-keyboard) to vJoy buttons Topic is solved
Replies: 8
Views: 366

Re: Keypad (half-a-keyboard) to vJoy buttons Topic is solved

WheelEvent(state){ if newstate > 32767 newstate = 32768 if newstate < 1 newstate = 0 newstate = % newstate + (state*3276.8) ;+/- 10% allows incremental use of distance zones myStick.SetAxisByIndex(newstate, 7) sleep 100 ;reset to 50% to act more button like newstate := 16384 ;reset to 50% to act mo...
by evilC
14 Mar 2019, 14:44
Forum: Ask For Help
Topic: Keywait prevents other key input
Replies: 11
Views: 365

Re: Keywait prevents other key input

Well the big question is whether you can use any other key - the application which responds to Ctrl+0, can that be configured to use another key? If not, no real easy way around it. If it does, and you are looking for a key that will not interfere with other things, try F13-F24 Yes, you don't have a...
by evilC
14 Mar 2019, 05:27
Forum: Ask For Help
Topic: Keypad (half-a-keyboard) to vJoy buttons Topic is solved
Replies: 8
Views: 366

Re: Keypad (half-a-keyboard) to vJoy buttons Topic is solved

Mouse wheel: AHI.SubscribeMouseButton(MouseId, GetKeySC("1"), true, Func("MouseEvent").Bind(26)) You should not be using GetKeySC(), just pass a number from the list of button numbers (ie 5 for vertical wheel). In the corresponding function, state will be 1 for wheel up or -1 for wheel down. There w...
by evilC
13 Mar 2019, 07:39
Forum: Ask For Help
Topic: Keywait prevents other key input
Replies: 11
Views: 365

Re: Keywait prevents other key input

Right, yeah, if you hold ctrl and hit w, then one would not expect w to appear in notepad If the mouse specifically sends RCtrl, and you never manually use RCtrl yourself, then you probably just want to block RCtrl. Doing some investigation, interestingly RCtrl does not seem to fire a key down event...
by evilC
13 Mar 2019, 05:31
Forum: Ask For Help
Topic: Keywait prevents other key input
Replies: 11
Views: 365

Re: Keywait prevents other key input

I am having real trouble understanding exactly what your problem is. I have read this sentence like ten times and still cannot understand it "When I activate this hotkey I will sometimes have to press other keys that should not be ignored" The word "not" in there completely blows my mind, i have no ...
by evilC
12 Mar 2019, 14:09
Forum: Ask For Help
Topic: Keywait prevents other key input
Replies: 11
Views: 365

Re: Keywait prevents other key input

Not quite sure what you are saying, I think there is a language barrier. Are you maybe saying that *SC52 up:: would respond to a release of SC52 when RCtrl was never pressed? Yes it would. You could just change to >^SC52 up:: or set a variable on press of SC52 - either way would work. In fact, there...
by evilC
12 Mar 2019, 12:48
Forum: Ask For Help
Topic: Keywait prevents other key input
Replies: 11
Views: 365

Re: Keywait prevents other key input

Because you have declared the up hotkey to be for a different key combo than the down hotkey - the up event hotkey does not fire for modified SC52 (ie SC52 released while RCtrl still held) I dunno what SC52 is, but if you hold RCtrl, hold SC52, then release RCtrl, then release SC52, the up event hot...

Go to advanced search