Search found 63 matches
- 16 Dec 2023, 17:58
- Forum: Ask for Help (v2)
- Topic: "Mic is on/off!" overlay warning
- Replies: 1
- Views: 173
"Mic is on/off!" overlay warning
Is there a way to do three things with AHK v2: 1. Mute and unmute the microphone, either on Windows 11 or just on OBS streaming software, and ... 2. Detect the state of the mic, muted or unmuted, again on Windows 11 or just on OBS. 3. Show a big, semi-intrusive, and always-on-top message like "Mic i...
- 15 Dec 2023, 10:49
- Forum: Gaming
- Topic: Smoother/slower mouse movement in a game
- Replies: 4
- Views: 759
Smoother/slower mouse movement in a game
I'm trying to make a simple hotkey for a smooth 180-turn in a first-person shooter, but the results I'm getting are either an instant movement/turn with: F1:: { MouseMove 400, 20, 1 } Or weird circular movement at the character's feet with: F1:: { SendMode "Event" MouseMove 1, 1, 99 } Notice the dif...
- 06 Dec 2023, 19:09
- Forum: Ask for Help (v2)
- Topic: Muting a specific window possible with a simple script? Topic is solved
- Replies: 2
- Views: 261
Re: Muting a specific window possible with a simple script? Topic is solved
Thank you, ntepa.
This works like a charm!
This works like a charm!
- 06 Dec 2023, 16:47
- Forum: Ask for Help (v2)
- Topic: Muting a specific window possible with a simple script? Topic is solved
- Replies: 2
- Views: 261
Muting a specific window possible with a simple script? Topic is solved
Is it possible to use a key combination like Ctrl+Alt+F12 to mute a specific window with its ahk_exe chrome.exe process name/reference, for example?
- 06 Dec 2023, 12:12
- Forum: Ask for Help (v2)
- Topic: Efficiently handling auto-closed braces & quotes without pressing right arrow
- Replies: 12
- Views: 947
Re: Efficiently handling auto-closed braces & quotes without pressing right arrow
Now that I'm thinking about it, these are good points. After the first Space is pressed, the script should wait for a maximum of 375 ms for what comes next: a. If Space is pressed again within 375 ms, then Send "{Right}" immediately. b. Otherwise, if another key is pressed within the time, then Send...
- 06 Dec 2023, 09:49
- Forum: Ask for Help (v2)
- Topic: Efficiently handling auto-closed braces & quotes without pressing right arrow
- Replies: 12
- Views: 947
Re: Efficiently handling auto-closed braces & quotes without pressing right arrow
The tilde unblocks the key's native function, which is why you see spaces. Thank you for clarifying that, Mikey. I'd need Space to function normally, instead of sending the right arrow key, if it's not double-pressed quickly. I tried with the following script, but that doesn't work at all either: $...
- 06 Dec 2023, 09:01
- Forum: Ask for Help (v2)
- Topic: Efficiently handling auto-closed braces & quotes without pressing right arrow
- Replies: 12
- Views: 947
Efficiently handling auto-closed braces & quotes without pressing right arrow
I want to remap two quick taps of the Space key in my IDE (ahk_exe Code.exe) into one press of Right (the right arrow key). This is to easily and quickly exit the auto-closed braces and/or quotes, for example, while writing AHK scripts on Visual Studio Code (or any other IDE) and when I want to cont...
- 30 Nov 2023, 10:29
- Forum: Ask for Help (v2)
- Topic: Sending em and en dashes easily and quickly Topic is solved
- Replies: 2
- Views: 450
Re: Sending em and en dashes via multiple minus signs Topic is solved
:C:md::— :C:nd::– Not what I had in mind — serendipitous in my case this time, but concise and elegant — creatively genius — as usual, mikeyww. :salute: Thank you! :D For any AHK beginners who stumble upon this, here's the code with potentially helpful comments: :C:md::— ; The ":C:" prefix before t...
- 30 Nov 2023, 09:46
- Forum: Ask for Help (v2)
- Topic: Sending em and en dashes easily and quickly Topic is solved
- Replies: 2
- Views: 450
Sending em and en dashes easily and quickly Topic is solved
::--::— was working just fine for me by itself to send an em dash — in any application by typing two consecutive hyphens or minus signs, just like this works in Microsoft Word and Telegram without the intervention of an AHK script, which is also why I have the code looking like this: #HotIf !WinAct...
- 30 Nov 2023, 09:36
- Forum: Ask for Help (v2)
- Topic: Why isn't +Numpad0:: Send ":" working? Topic is solved
- Replies: 2
- Views: 294
Re: Why isn't +Numpad0:: Send ":" working? Topic is solved
Thank you very much for clarifying that, gregster!
- 30 Nov 2023, 05:06
- Forum: Ask for Help (v2)
- Topic: Why isn't +Numpad0:: Send ":" working? Topic is solved
- Replies: 2
- Views: 294
Why isn't +Numpad0:: Send ":" working? Topic is solved
As the subject title says, why isn't the following code working to use Shift+Numpad0 to send a colon?
Code: Select all
+Numpad0:: Send ":"
- 29 Nov 2023, 11:53
- Forum: Ask for Help (v2)
- Topic: Held key remapped to two held keys else normal key behavior Topic is solved
- Replies: 14
- Views: 1042
Re: Held key remapped to two held keys else normal key behavior Topic is solved
Hah! I thought it worked because of the asterisk, not despite it!Noitalommi_2 wrote: ↑29 Nov 2023, 11:35I just noticed that I have a typo in the script. I actually wanted to use $-prefix instead of * glad it still seems to work.
- 29 Nov 2023, 03:48
- Forum: Ask for Help (v2)
- Topic: Held key remapped to two held keys else normal key behavior Topic is solved
- Replies: 14
- Views: 1042
Re: Held key remapped to two held keys else normal key behavior Topic is solved
This works pretty much perfectly: *Space:: { If KeyWait("Space", "T.2") Send("{Space}") else { SendEvent("{LCtrl down}{LButton down}") KeyWait("Space") SendEvent("{LButton up}{LCtrl up}") } } I feel so silly and scatterbrained for repeating the "asterisk mistake" — * forgetting to add it — yet again...
- 28 Nov 2023, 12:45
- Forum: Ask for Help (v2)
- Topic: Held key remapped to two held keys else normal key behavior Topic is solved
- Replies: 14
- Views: 1042
Re: Held key remapped to two held keys else normal key behavior Topic is solved
Thank you for trying to help me with that idea, Noitalommi. The reason I'm trying to send Shift+A held down is not to send an uppercase A exactly; it's just a simple way of testing any suggested method in Notepad. What I ultimately want is to send Ctrl+LMB held down in another application. So, if I ...
- 28 Nov 2023, 05:48
- Forum: Ask for Help (v2)
- Topic: Held key remapped to two held keys else normal key behavior Topic is solved
- Replies: 14
- Views: 1042
Re: Held key remapped to two held keys else normal key behavior Topic is solved
Thank you for clarifying those issues, niCode. Unfortunately, the script is still far from doing what I want it to do. When I press & release Space , it sends an uppercase "A" to Notepad. When I press & hold Space , it sends one "A" and then starts spamming spaces. What I actually want the script to...
- 23 Nov 2023, 15:02
- Forum: Ask for Help (v2)
- Topic: Held key remapped to two held keys else normal key behavior Topic is solved
- Replies: 14
- Views: 1042
Re: Held key remapped to two held keys else normal key behavior Topic is solved
That makes sense. No problem; thank you for trying to help!vmech wrote: ↑23 Nov 2023, 14:31It is my fault. Sorry. Only UP is a permitted suffix.
Hotkey Modifier Symbols
- 23 Nov 2023, 11:55
- Forum: Ask for Help (v2)
- Topic: Held key remapped to two held keys else normal key behavior Topic is solved
- Replies: 14
- Views: 1042
Re: Held key remapped to two held keys else normal key behavior Topic is solved
And why is the following script spamming Space in Notepad too?! #Requires AutoHotkey >=2.0-a #HotIf WinActive("ahk_exe Notepad.exe") Space:: { if (A_TimeSinceThisHotkey > 100) { SetKeyDelay 15, 25 Send "{Shift down}" Send "{a down}" KeyWait "Space", "L" Send "{Shift up}" Send "{a up}" } else if (Key...
- 23 Nov 2023, 11:20
- Forum: Ask for Help (v2)
- Topic: Held key remapped to two held keys else normal key behavior Topic is solved
- Replies: 14
- Views: 1042
Re: Held key remapped to two held keys else normal key behavior Topic is solved
@Rok Try Space down:: instead of Space:: Earlier, I did! For some reason, Visual Studio Code, which is the IDE I use to write AHK scripts with AHK extensions, keeps insisting on rewriting it as Space down: : (notice the space between the colons) when I try to save the file! Then, it treats Space an...
- 23 Nov 2023, 10:16
- Forum: Ask for Help (v2)
- Topic: Toggle Ctrl down & clicking with a different key Topic is solved
- Replies: 2
- Views: 374
Re: Toggle Ctrl down & clicking with a different key Topic is solved
Thank you so much for helping me with those options, niCode, and for explaining why the up state of the Ctrl key wasn't being sent and the necessity of the * prefix to achieve this. Also, thank you for confirming my feeling that that else statement is useless; the reason I never removed it is that I...
- 23 Nov 2023, 10:11
- Forum: Ask for Help (v2)
- Topic: Held key remapped to two held keys else normal key behavior Topic is solved
- Replies: 14
- Views: 1042
Held key remapped to two held keys else normal key behavior Topic is solved
As the subject title says, I'm trying to remap a held-down key, Space , to two held-down keys, Ctrl and LButton , and otherwise make Space behave normally if it's not held down. I've tried to do this with the following script but it's not working: Space:: { if (A_TimeSinceThisHotkey > 100) { SetKeyD...