Search found 1208 matches

by Nextron
Yesterday, 06:31
Forum: Ask For Help
Topic: Use Win to type digits on numpad with NumLock On/Off Topic is solved
Replies: 2
Views: 21

Re: Use Win to type digits on numpad with NumLock On/Off Topic is solved

Instead of ::0, use ::Send 0. Otherwise the Win key stays pressed.
by Nextron
16 Sep 2018, 12:13
Forum: Ask For Help
Topic: (solved) If-Or Multi Match Syntax? if (x=1 OR x=2 OR x=3) Topic is solved
Replies: 13
Views: 208

Re: If-Or Syntax? if (such=1 OR such=2 OR such=3) Topic is solved

okvalues := [0x11, 0x22] if (okvalues.haskey(wparam)) If you don't care about performance. The same thought occurred to me, but you're setting the values and then checking for keys, which doesn't function like you want. Instead you'd end up having to do: okvalues := {0x11:"", 0x22:"&...
by Nextron
16 Sep 2018, 07:54
Forum: Ask For Help
Topic: Prevent hotkey from repeating
Replies: 17
Views: 196

Re: Prevent hotkey from repeating

So, it seems that for simple cases, when we need to launch some action immediately, placing KeyWait after this action (instead of before ), is the best solution? Not really. Try the example, by holding F1, holding F2, and then press F1 a couple of times and holding it again. Then release F2. The pr...
by Nextron
16 Sep 2018, 06:54
Forum: Ask For Help
Topic: Prevent hotkey from repeating
Replies: 17
Views: 196

Re: Prevent hotkey from repeating

/* • Press and hold F1 • Press and hold F2 • Release F1: Nothing happens because F1's thread is interrupted by F2's thread. • Release F2: Msgbox F2 displays as expected. Then F1's thread is resumed and F1's msgbox is displayed. */ F1:: KeyWait,F1 MsgBox F1 released Return F2:: KeyWait,F2 MsgBox F2 ...
by Nextron
15 Sep 2018, 22:28
Forum: Ask For Help
Topic: Prevent hotkey from repeating
Replies: 17
Views: 196

Re: Prevent hotkey from repeating

KeyWait polls for a key state, and the polling will be paused when AHK is processing a different hotkey. Up hotkeys trigger on an event, which will usually interrupt anything already running (still, plenty of exceptions). If you're not pressing multiple keys at the same time, you'll probably not not...
by Nextron
15 Sep 2018, 22:13
Forum: Ask For Help
Topic: Making KeyWait act similarly to hotkey
Replies: 1
Views: 42

Re: Making KeyWait act similarly to hotkey

Code: [Select all]GeSHi © Codebox Plus

SomeLabel:
RButtonDisabled:=1
MsgBox RButotn disabled
KeyWait,RButton,D
RButtonDisabled:=0
MsgBox RButton enabled
Return

#If RButtonDisabled
RButton::Return
#If
by Nextron
15 Sep 2018, 21:56
Forum: Ask For Help
Topic: Prevent hotkey from repeating
Replies: 17
Views: 196

Re: Prevent hotkey from repeating

What about keywait? Is it instantly responding and also not repeating? If so maybe its better for speed than %key% UP:: The biggest problem with keywait you'll encounter is due to threading, when you're implementing it on multiple keys and press and hold them. The keywait of the first key will be i...
by Nextron
14 Sep 2018, 12:14
Forum: Ask For Help
Topic: Long press C to send Ç Topic is solved
Replies: 10
Views: 167

Re: Long press C to send Ç Topic is solved

It could, but using a keyboard hook is system wide, so it's like taking a cannon to kill a mosquito. Even then, you could get around it by pasting content or ControlSetText . I think you're better of by using the edit's g-label to set some content validation on each change of the edit box and restor...
by Nextron
14 Sep 2018, 11:32
Forum: Ask For Help
Topic: Long press C to send Ç Topic is solved
Replies: 10
Views: 167

Re: Long press C to send Ç Topic is solved

I'm sorry if I'm pushing it Nextron but would it be possible to add something to the script you gave me so It can send yet another key, depending on how long I press it? Dor instance at the moment if I press c it sends c if I press c for 0.5 sends ç, I wanted to press c for like 0.7 to send A for e...
by Nextron
14 Sep 2018, 08:59
Forum: Bug Reports
Topic: Self-remapping with #Inputlevel
Replies: 1
Views: 58

Self-remapping with #Inputlevel

Remappings translate into two hotkeys and the default #Inputlevel is 0. So a remapping a::b works the same as #InputLevel 0 *a:: SetKeyDelay -1 ; If the destination key is a mouse button, SetMouseDelay is used instead. Send {Blind}{b DownR} ; DownR is like Down except that other Send commands in the...
by Nextron
13 Sep 2018, 15:10
Forum: Ask For Help
Topic: Key assignments fail after a while
Replies: 5
Views: 115

Re: Key assignments fail after a while

Although it does install the hook, it doesn't automatically use it for hotkeys. Prepend your hotkey with a $ to use the hook. Also try to restart AHK once and to start it as admin.
by Nextron
11 Sep 2018, 18:00
Forum: Ask For Help
Topic: Hotstring ending character
Replies: 8
Views: 77

Re: Hotstring ending character

this one doesn't in the sense that this one does swallow the ending character. You need to see the difference between auto-replacing hotstrings and non-auto-replacing hotstrings. The first do keep the end character and look like the single line hotstrings with just replacement text. The latter are ...
by Nextron
11 Sep 2018, 16:22
Forum: Ask For Help
Topic: Long press C to send Ç Topic is solved
Replies: 10
Views: 167

Re: Long press C to send Ç Topic is solved

Normally a character is sent when to press down on a key. Using your code, it is sent when you release the key. This makes sense because AHK doesn't know in advance how long you'll be keeping the key pressed. However during quick typing you'll be pressing the next key before releasing this key, resu...
by Nextron
10 Sep 2018, 13:10
Forum: Ask For Help
Topic: Keyboard filter for Toddlers
Replies: 7
Views: 65

Re: Keyboard filter for Toddlers

You could set up your own keyboard hook (search for WH_KEYBOARD_LL). Then you can have it trigger on each (down) event. Using Input in a loop just won't cover it, because it's just not monitoring 100% of the loop execution.
by Nextron
10 Sep 2018, 11:39
Forum: Gaming
Topic: How to make SendInput work the same way as x::y? Topic is solved
Replies: 4
Views: 53

Re: How to make SendInput work the same way as x::y? Topic is solved

The docs say: When a script is launched, each remapping is translated into a pair of hotkeys. For example, a script containing a::b actually contains the following two hotkeys instead: *a:: SetKeyDelay -1 ; If the destination key is a mouse button, SetMouseDelay is used instead. Send {Blind}{b DownR...
by Nextron
10 Sep 2018, 10:03
Forum: Gaming
Topic: How to make SendInput work the same way as x::y? Topic is solved
Replies: 4
Views: 53

Re: How to make SendInput work the same way as x::y? Topic is solved

Remappings are a shorthand for two hotkeys. You can find the example on the remappings help page: https://autohotkey.com/docs/misc/Remap.htm
SO use those to set up six hotkeys for your three keys.
by Nextron
10 Sep 2018, 09:04
Forum: About This Community
Topic: Donation offered
Replies: 4
Views: 116

Re: Donation offered

Paypal link is at the lower part of the about page: https://autohotkey.com/foundation/
by Nextron
09 Sep 2018, 04:18
Forum: Ask For Help
Topic: Cycle through windows on a per monitor bases
Replies: 6
Views: 133

Re: Cycle through windows on a per monitor bases

Those processes likely run as administrator, preventing interaction by processes not elevated to do so. You can run the script as admin automatically using task scheduler: https://autohotkey.com/boards/viewtopic.php?t=4334 Or you can alter the autohotkey.exe to enable interaction with higher privile...
by Nextron
03 Sep 2018, 12:45
Forum: Ask For Help
Topic: Cycle through windows on a per monitor bases
Replies: 6
Views: 133

Re: Cycle through windows on a per monitor bases

I've put something together as a start, for one direction. If you need both you should introduce a direction parameter which switches the first/last window stuff in the last three lines. Right now minimized windows aren't taken into consideration because of how Windows reports their position, but th...
by Nextron
01 Sep 2018, 18:06
Forum: Ask For Help
Topic: $ Seems to generate loop... how is that possible?
Replies: 6
Views: 123

Re: $ Seems to generate loop... how is that possible?

Do you have any other scripts running that could be triggering the message? SendInput would cause its own hook to be temporarily disabled, so it shouldn't be detecting its own input. As mouse events only use the hook, so the $ only applies to the modifier keys and those aren't released between those...

Go to advanced search