Search found 24 matches

by AndrewKun
11 Aug 2020, 09:25
Forum: Ask For Help
Topic: Implementing sequence of two or more shortcuts Topic is solved
Replies: 2
Views: 1166

Re: Implementing sequence of two or more shortcuts Topic is solved

@Rohwedder

This is perfect, thank you so much!

Now I have almost unlimited number of shortcuts without conflicting with Windows global shortcuts, and this approach also solves the conflict with other layouts. :dance:
by AndrewKun
11 Aug 2020, 03:21
Forum: Ask For Help
Topic: Implementing sequence of two or more shortcuts Topic is solved
Replies: 2
Views: 1166

Implementing sequence of two or more shortcuts Topic is solved

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...
by AndrewKun
06 Aug 2020, 04:21
Forum: Ask For Help
Topic: Switching layout while certain keys are pressed
Replies: 3
Views: 1752

Re: Switching layout while certain keys are pressed

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...
by AndrewKun
05 Aug 2020, 06:51
Forum: Ask For Help
Topic: Switching layout while certain keys are pressed
Replies: 3
Views: 1752

Switching layout while certain keys are pressed

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...
by AndrewKun
03 Jun 2017, 05:20
Forum: Ask For Help
Topic: "Hotkey" command - strange behavior Topic is solved
Replies: 2
Views: 593

Re: "Hotkey" command - strange behavior Topic is solved

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...
by AndrewKun
02 Jun 2017, 11:27
Forum: Ask For Help
Topic: "Hotkey" command - strange behavior Topic is solved
Replies: 2
Views: 593

"Hotkey" command - strange behavior Topic is solved

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...
by AndrewKun
24 May 2017, 03:39
Forum: Ask For Help
Topic: Comment/uncomment a line Topic is solved
Replies: 5
Views: 1552

Re: Comment/uncomment a line Topic is solved

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...
by AndrewKun
23 May 2017, 11:51
Forum: Ask For Help
Topic: Comment/uncomment a line Topic is solved
Replies: 5
Views: 1552

Re: Comment/uncomment a line Topic is solved

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...
by AndrewKun
23 May 2017, 08:54
Forum: Ask For Help
Topic: Comment/uncomment a line Topic is solved
Replies: 5
Views: 1552

Comment/uncomment a line Topic is solved

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 ...
by AndrewKun
03 Apr 2017, 15:09
Forum: Ask For Help
Topic: single/double press for different actions
Replies: 8
Views: 1258

Re: single/double press for different actions

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!
by AndrewKun
03 Apr 2017, 11:13
Forum: Ask For Help
Topic: single/double press for different actions
Replies: 8
Views: 1258

Re: single/double press for different actions

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...
by AndrewKun
03 Apr 2017, 07:35
Forum: Ask For Help
Topic: single/double press for different actions
Replies: 8
Views: 1258

single/double press for different actions

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...
by AndrewKun
17 Feb 2017, 12:37
Forum: Ask For Help
Topic: AHK script doesn't work when launched remotely Topic is solved
Replies: 1
Views: 512

Re: AHK script doesn't work when launched remotely Topic is solved

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...
by AndrewKun
17 Feb 2017, 09:12
Forum: Ask For Help
Topic: AHK script doesn't work when launched remotely Topic is solved
Replies: 1
Views: 512

AHK script doesn't work when launched remotely Topic is solved

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...
by AndrewKun
11 Jan 2017, 05:59
Forum: Ask For Help
Topic: Switching global keyboard layout Topic is solved
Replies: 1
Views: 423

Switching global keyboard layout Topic is solved

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...
by AndrewKun
10 Jan 2017, 01:55
Forum: Ask For Help
Topic: Autocompleting parenthesis and placing cursor inbetween Topic is solved
Replies: 3
Views: 933

Re: Issues with sending the original keypress Topic is solved

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...
by AndrewKun
09 Jan 2017, 09:19
Forum: Ask For Help
Topic: Autocompleting parenthesis and placing cursor inbetween Topic is solved
Replies: 3
Views: 933

Autocompleting parenthesis and placing cursor inbetween Topic is solved

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}...
by AndrewKun
14 Sep 2016, 16:29
Forum: Ask For Help
Topic: A program to paste frequently used text Topic is solved
Replies: 4
Views: 1332

Re: A program to paste frequently used text Topic is solved

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...
by AndrewKun
14 Sep 2016, 12:20
Forum: Ask For Help
Topic: A program to paste frequently used text Topic is solved
Replies: 4
Views: 1332

A program to paste frequently used text Topic is solved

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...
by AndrewKun
24 Feb 2016, 14:29
Forum: Ask For Help
Topic: Pause video in browser doesn't work
Replies: 7
Views: 1707

Re: Pause video in browser doesn't work

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...

Go to advanced search