Now I have almost unlimited number of shortcuts without conflicting with Windows global shortcuts, and this approach also solves the conflict with other layouts.
Hey, I'm trying to implement the following approach to launching frequently used apps/web sites in two steps: 1. I press some shortcut that enables jump state, e.g. Win+J 2. Then I press a specific key to run the command I need. This works sort of like a lead key in vim. I know I can do something li...
actually, Win10 has this builtin as well: https://www.windowscentral.com/how-change-your-keyboard-layout-windows-10 Win + Space Thank you, unfortunately it's not what I need, as this shortcut scrolls between the available layouts. What I need, on the other hand, is that layout is only switched from...
Hi, I'm a Colemak user, and as with most Dvorak/Colemak users, I have issues with keyboard shortcuts. I heard MacOS have a built-in feature that, whenever any of the following keys are pressed, the layout is switched to QWERTY: Ctrl/Cmd, Alt, Shift, Meta/Win Then, as soon as all of those keys are re...
Hallo, 1. script is working 2. script: the Auto-execute Section ends with "^q::Var = space" so "Hotkey, %Var%, Action" was not executed. The whole 3. script is a comment because there is no comment end. */ must be at the beginning of a line. Thanks! Really sorry for the lame questions, but those ar...
Hi guys I'm seeing some strange behavior with the Hotkey function. For example, this script is working Var = space Hotkey, %Var%, Action return Action: MsgBox, action test return But if I change the Var using another hotkey, it stops working, even though the Var value is set successfully ^q::Var = s...
Here is a more complicated version that works for multiple selected lines. F12:: CRLF := "`r`n" Clipboard = Output = Send ^c Sleep 50 if !Clipboard { Send {Home}+{End}^c ClipWait } Loop, Parse, Clipboard, `n, `r { RegExMatch(A_LoopField, "^(#?)(.*)$", Match) if Match1 Output .= Match2 CRLF else Out...
Andrew, Is something like that possible? Yes, this can be done easily with AHK, including the "block" support you mention. I have done very similar things (and much more). It is not that challenging, so you should be able to read the AHK docs and come up with something. Will this task be interestin...
Hi guys I want to create a script that can comment/uncomment a line similar to how it's done in advanced notepads (Notepad++, Sublime Text, different IDEs e.t.c). If it's already been done, I can't find it using forum searches because "comment" is a very broad definition. I need this script because ...
Just let me express my appreciation to everyone once again. I'm always happy to learn new ways of solving stuff, and hopefully can become more experineced to help people like me in the future!
Thank you so much for helping, everyone AHK is not a time machine :) If you wish to implement logic like this for a given key, you need to define a timeout period, and take no action until that timeout expires. If the user presses a second time within the timeout, send action #2, else send action #1...
Hi guys, I have a simple task of making a single press of a hotkey to perform one action, while double tapping it to perform another action. Searching the forums I found this bit of code $#vk4e:: If (A_ThisHotKey = A_PriorHotkey and A_TimeSincePriorHotkey < 300) { ; action 1 } else { ; action 2 } re...
After some digging, I found this wonderful thread and made it using tcp socket class: https://autohotkey.com/board/topic/94376-socket-class-%C3%BCberarbeitet/ Now, with combination of AHK+JoyToKey, I can use Xbox360 controller's guide button to pause/play a movie on my 2nd pc while playing a game li...
Hi, I have an extremely simple AHK script which I need to run remotely on another PC. The script itself just sends the Space keystroke and closes itself: Send, {Space} ExitApp I've converted it to .exe and when I start it locally, it works, but I need to start it remotely. For that purpose I use uti...
Hi, I've been searching all over the forums and Google to find a way to switch keyboard layout (which is normally done by Alt+shift in Windows) with AHK, but everywhere I can find only the one metod - using SendMessage/PostMessage to send a message to the active windows. For example: SendMessage, 0x...
Without having this hotkey, what's AHK's key history when you press Shift+< using either keyboard layout? It's the following: A0 02A d 0.45 LShift BC 033 h d 0.30 , BC 033 i d 0.00 , BC 033 i u 0.00 , BC 033 s u 0.08 , A0 02A u 0.30 LShift I've tried using VK and SC, but it doesn't help in this cas...
Hi, I'm trying to create an autocompletion script for parenthesis and quotes, like it is done in many IDEs. For example if I double press "<", it should output "<>" and place the cursor in the middle. $+<:: If (A_ThisHotKey = A_PriorHotkey and A_TimeSincePriorHotkey < 300) { SendInput > Send, {Left}...
kon, GEV, thank you both very much for the help. I've looked through the manuals and at least now understand what the code does :) Actually, I've combined the methods from both solutions to create a tabbed listboxes :) Something like below, looking really good so far, but now I feel I have some exce...
Hi guys, I would really appreciate your help in creating a simple script/program that would do the following: 1. Show a ListBox with predefined items, like: Item1, Item2, Item3 e.t.c 2. When I click on any item, it would copy a predefined text for this item in the clipboard. The text can contain lin...
Thank you very much for the answers guys. I couldn't get ControlSend to work for some reason, but the problem was in the recursion as Exaskryz hinted. After adding $ modifier script started to work, partially, but YouTube still had focusing problems, so instead I used MouseClick to do what I want an...