| Author |
Message |
Topic: A switch to ignore typematic for a hotkey. |
orbik
Replies: 0
Views: 354
|
Forum: Wish List Posted: Sat Feb 12, 2011 2:45 pm Subject: A switch to ignore typematic for a hotkey. |
I asked earlier how to make AHK ignore automatically repeated key presses: http://www.autohotkey.com/forum/topic63771.html
Clearly the best solution is to make the hotkey have an additional flag, w ... |
Topic: Ignoring key repeat in hotkeys |
orbik
Replies: 5
Views: 272
|
Forum: Ask for Help Posted: Wed Feb 09, 2011 12:13 am Subject: Ignoring key repeat in hotkeys |
Sorry, I guess my post was slightly misleading. Basically I want to disable typematic for hotkeys with arbitrary functionality, not just simple key down/up ones. I.e.
*key1::
If (keypr ... |
Topic: Ignoring key repeat in hotkeys |
orbik
Replies: 5
Views: 272
|
Forum: Ask for Help Posted: Tue Feb 08, 2011 8:42 pm Subject: Ignoring key repeat in hotkeys |
Actually, the keywait method is seriously flawed, since AHK is essentially single threaded.
Consider for instance the following:
$*a::
Send, {blind}{a down}
KeyWait ... |
Topic: Different #IfWin behavior for mouse hotkeys |
orbik
Replies: 1
Views: 378
|
Forum: Wish List Posted: Sun Nov 21, 2010 9:55 pm Subject: Different #IfWin behavior for mouse hotkeys |
| Making mouse buttons context sensitive (depending on application) with AHK should be quite a normal operation, but currently to make it work properly I need some explicit extra checks in the subroutin ... |
Topic: How to activate the window currently under mouse cursor? |
orbik
Replies: 2
Views: 301
|
Forum: Ask for Help Posted: Sun Nov 21, 2010 9:09 pm Subject: How to activate the window currently under mouse cursor? |
Oh, right. GetMousePos does exactly what I asked, thank you.
...but what's the point with that timer? :p Here's how I did it:
EDIT:
MButton::
MouseGetPos,,, hwnd
WinActivate, ahk_id ... |
Topic: How to activate the window currently under mouse cursor? |
orbik
Replies: 2
Views: 301
|
Forum: Ask for Help Posted: Sun Nov 21, 2010 8:38 pm Subject: How to activate the window currently under mouse cursor? |
| I want to make a mouse button trigger different hotkeys based on where it's clicked. Naturally I first thought the #IfWin directives should do it, but they only check which window has the keyboard foc ... |
Topic: Ignoring key repeat in hotkeys |
orbik
Replies: 5
Views: 272
|
Forum: Ask for Help Posted: Sun Oct 17, 2010 11:28 pm Subject: Ignoring key repeat in hotkeys |
| Ah, true, the KeyWait function is likely sufficient for my needs, :) but that's still a workaround; i.e. based on suspending threads and still discarding the keyrepeat status bits. Your example would ... |
Topic: Ignoring key repeat in hotkeys |
orbik
Replies: 5
Views: 272
|
Forum: Ask for Help Posted: Sun Oct 17, 2010 11:08 pm Subject: Ignoring key repeat in hotkeys |
I can't believe such simple functionality would be missing from ahk, but I couldn't find this in the help file or forum search:
How to make a hotkey subroutine run only on a real keypress, not on o ... |
Topic: Hot key keys getting stuck in down state |
orbik
Replies: 5
Views: 471
|
Forum: Ask for Help Posted: Fri Jul 23, 2010 4:32 am Subject: Hot key keys getting stuck in down state |
I've had AHK scripts getting LWin and RWin keys "stuck" plenty of times, but only after I changed to a USB keyboard! (The same script worked fine for years on a ps/2 one)
Haven't had the ... |
Topic: Run command fails launching .lnk with parameters |
orbik
Replies: 10
Views: 1865
|
Forum: Ask for Help Posted: Mon Oct 26, 2009 8:42 pm Subject: Run command fails launching .lnk with parameters |
I have a shortcut "c:\bin\HDGraph.lnk". c:\bin is in %path%, and .LNK in %pathext%.
So I should be able to run the program anywhere with "hdgraph", and indeed it works. But...
... |
Topic: weird hotkey help |
orbik
Replies: 11
Views: 601
|
Forum: Ask for Help Posted: Tue Apr 22, 2008 4:20 am Subject: Re: weird hotkey help |
But i want the left mouse button NOT TO trigger if the hotkey was pressed and TO trigger if it was pressed.
Is it just me, or does this sentence look like an oxymoron? |
Topic: Runing a simple code disables my main 3 key |
orbik
Replies: 1
Views: 521
|
Forum: Ask for Help Posted: Tue Apr 22, 2008 4:11 am Subject: Runing a simple code disables my main 3 key |
# & F4::Shutdown, 9
Did you mean:
LWin & F4::Shutdown, 9
Or perhaps:
~LWin & F4::Shutdown, 9 |
Topic: Diablo 2 Movement with WASD instead of mouse |
orbik
Replies: 14
Views: 5557
|
Forum: Ask for Help Posted: Tue Apr 22, 2008 2:46 am Subject: Diablo 2 Movement with WASD instead of mouse |
@VxE
While your code works, it's terribly inefficient by being based on a loop running at short intervals, and by repeating redundant arithmetic operations. The only advantage to my version is mainta ... |
Topic: totally Invisible Gui |
orbik
Replies: 5
Views: 552
|
Forum: Ask for Help Posted: Tue Apr 22, 2008 1:32 am Subject: totally Invisible Gui |
| What Guest is trying to say here (though lacking in comprehension) is that AutoHotkey doesn't have that function built in but you need to directly call Win32 API functions GetWindowLong and SetWindowL ... |
Topic: Reducing system volume / muting when screensaver comes on |
orbik
Replies: 5
Views: 666
|
Forum: Ask for Help Posted: Tue Apr 22, 2008 12:29 am Subject: Reducing system volume / muting when screensaver comes on |
This sounds like a job for the shell hook method explained here http://www.autohotkey.com/forum/viewtopic.php?p=123323#123323
You'll get notified immediately when the screensaver starts instead of wa ... |
| |