Search found 21 matches
- 14 May 2023, 12:28
- Forum: Ask for Help (v1)
- Topic: Avoid Repetitive Code for Keypress with Number Key
- Replies: 4
- Views: 303
Re: Avoid Repetitive Code for Keypress with Number Key
Untested, but something like this should work... #Persistent Loop, 9 { Hotkey, F13 & %A_Index%, MyLabel } Return MyLabel: Key := GetKeyNumber(A_ThisHotKey) MsgBox You pressed F13 and the number %Key%. ; YOUR CODE HERE Return GetKeyNumber(key) { StringReplace, key, key, F13 & Return key } Unfortunat...
- 14 May 2023, 11:46
- Forum: Ask for Help (v1)
- Topic: Avoid Repetitive Code for Keypress with Number Key
- Replies: 4
- Views: 303
Avoid Repetitive Code for Keypress with Number Key
I have been writing a lot of repetitive hotkeys like the following: F13 & 1:: sorted_monitors := GetMonitorIndexesSortedByLeftmost() PerformMove(sorted_monitors[1].ind,-1,-1) return F14 & 1:: sorted_monitors := GetMonitorIndexesSortedByLeftmost() PerformMoveWindow(sorted_monitors[1].ind) return F13 ...
- 08 May 2023, 21:46
- Forum: Ask for Help (v1)
- Topic: WinRestore After WinMove Puts Window on Wrong Monitor
- Replies: 3
- Views: 270
Re: WinRestore After WinMove Puts Window on Wrong Monitor
This works great! I don't really understand what you did though. Can you explain why this solves the problem? Maybe I just don't understand Windows' window management well enough.
- 06 May 2023, 16:36
- Forum: Ask for Help (v1)
- Topic: WinRestore After WinMove Puts Window on Wrong Monitor
- Replies: 3
- Views: 270
WinRestore After WinMove Puts Window on Wrong Monitor
I wrote an autohotkey function to move the active Window from one monitor to another. It does scaling based on the monitor resolutions to determine the position and width/height of the new window: GetCurrentMonitor() { SysGet, numberOfMonitors, MonitorCount WinGetPos, winX, winY, winWidth, winHeight...
- 26 Mar 2023, 18:47
- Forum: Ask for Help (v1)
- Topic: Obtain Monitor Model And Index
- Replies: 4
- Views: 319
Re: Obtain Monitor Model And Index
Hi, There are posts about it. I would search forum for "multi-monitor" and also look up @JoeWinograd. The one I found still refers to them with an index rather than by name. Maybe I'm not looking at the right thing? This is what I found: https://www.experts-exchange.com/articles/33932/Keyboard-shor...
- 26 Mar 2023, 16:09
- Forum: Ask for Help (v1)
- Topic: Obtain Monitor Model And Index
- Replies: 4
- Views: 319
Obtain Monitor Model And Index
I want a hotkey to move windows to a specific monitor, specifically my "LG HDR 4K" monitor, as it is displayed in Windows. The problem is that I have only figured out to do this using monitor indexes, and every time I unplug or re-plug in the monitors, the indexes seem to jump around. I was hoping I...
- 17 Mar 2023, 17:06
- Forum: Ask for Help (v2)
- Topic: Find Microsoft Outlook and Microsoft Teams windows
- Replies: 2
- Views: 462
Find Microsoft Outlook and Microsoft Teams windows
I want to write an autohotkey script to find the Microsoft Teams and the Microsoft Outlook windows and snap them to the right and left half of a specific monitor (say index number 3) regardless of their current location (including being minimized). I think I can do this but I need to know how to ide...
- 17 Sep 2022, 02:12
- Forum: Ask for Help (v1)
- Topic: Toggle Invert of All Monitor Screen Colors even after moving mouse
- Replies: 2
- Views: 310
Toggle Invert of All Monitor Screen Colors even after moving mouse
Currently I'm using this to toggle inverted colors on all my multiple computer monitors (Windows 10). F14:: SendInput #{NumpadAdd} Sleep, 300 SendInput #{NumpadSub} Sleep, 100 SendInput ^!i return I am using the win numpad add and win numpad sub keys to start up magnifier in case it isn't started, a...
- 01 Aug 2022, 11:51
- Forum: Ask for Help (v1)
- Topic: Toggle Word Wrap in Notepad Topic is solved
- Replies: 11
- Views: 2712
Re: Toggle Word Wrap in Notepad Topic is solved
Works great, thank you!
- 01 Aug 2022, 11:02
- Forum: Ask for Help (v1)
- Topic: Toggle Word Wrap in Notepad Topic is solved
- Replies: 11
- Views: 2712
Re: Toggle Word Wrap in Notepad Topic is solved
Works great, but just one question. Does this have to be its own independent .ahk file or can it be included within another file that has several other unrelated hotkeys in it (unrelated to notepad)? Is it possible to limit the scope of the `#IfWinActive` you used? I'm trying to avoid having to do s...
- 31 Jul 2022, 22:16
- Forum: Ask for Help (v1)
- Topic: Toggle Word Wrap in Notepad Topic is solved
- Replies: 11
- Views: 2712
Toggle Word Wrap in Notepad Topic is solved
I want the hotkey "alt + z" to toggle word wrap in Notepad on Windows 10. It should just send "alt + z" outside of Notepad, as if autohotkey wasn't running. I wrote a basic script, but it's not ideal: $!z:: WinGet, activeprocess, ProcessName, A If (activeprocess = "NOTEPAD.EXE") { Sleep, 200 SendInp...
- 03 Sep 2021, 11:16
- Forum: Ask for Help (v1)
- Topic: Update to this script to copy filepaths?
- Replies: 1
- Views: 180
Update to this script to copy filepaths?
I have been using this script here for a while to copy the filepath of selected items in File Explorer and it has been working great. However, it does not work when I am inside of a program using a "Save As" dialog. For example, if I am in Excel and go to "Save As," a file explorer dialog pops up to...
- 01 Aug 2018, 02:49
- Forum: Ask for Help (v1)
- Topic: Get Array of Selected Items on Desktop or in File Explorer Windows 10
- Replies: 1
- Views: 413
Get Array of Selected Items on Desktop or in File Explorer Windows 10
Forgive me, for I am still very new to all of this, but I've been searching for AutoHotkey scripts that will take the current files or folders that are selected on either the desktop or within file explorer and will create an array of all of them, separating files from folders. I found some code tha...
- 14 Jul 2018, 01:41
- Forum: Ask for Help (v1)
- Topic: Shortcut to copy path of selected file in Explorer Topic is solved
- Replies: 7
- Views: 2120
- 10 Jul 2018, 02:16
- Forum: Ask for Help (v1)
- Topic: Shortcut to copy path of selected file in Explorer Topic is solved
- Replies: 7
- Views: 2120
Shortcut to copy path of selected file in Explorer Topic is solved
I'm not sure if this is possible, but I'm wondering if AutoHotKey can be used to create a keyboard shortcut that, when inside File Explorer, copies the path of the highlighted item to the clipboard if a file or folder is selected, and copies the path to the current folder being browsed in if nothing...
- 28 Dec 2015, 19:01
- Forum: Ask for Help (v1)
- Topic: Navigate through Windows File Explorer
- Replies: 3
- Views: 2836
Re: Navigate through Windows File Explorer
Okay, so before I state my request as advanced as it is, I should say this: is there any kind of scrip that will copy the URL (file directory) in the title bar of the active (current) window? http://i.imgur.com/msjxuFe.png When the file explorer window is active, I need the script to be able to auto...
- 27 Dec 2015, 18:49
- Forum: Ask for Help (v1)
- Topic: Navigate through Windows File Explorer
- Replies: 3
- Views: 2836
Navigate through Windows File Explorer
I commonly save many of my files in different places at the same time. For example, whenever I edit a word document, I save it to an external flash drive, the computer's secondary SSD, and also to OneDrive, which is a folder on a separate hard drive. What I'm trying to figure out is how a script cou...
- 24 Dec 2015, 20:45
- Forum: Ask for Help (v1)
- Topic: Script only works sometimes?
- Replies: 2
- Views: 1265
Re: Script only works sometimes?
Thanks, I'll try it and let you know how it goes after a few runs. I'm really new to this program, so I appreciate all the help that has been offered to me.
- 24 Dec 2015, 12:06
- Forum: Ask for Help (v1)
- Topic: Script only works sometimes?
- Replies: 2
- Views: 1265
Script only works sometimes?
So, this is my script: ^F1:: ; M1 Key or Control F1 Clipboard = Send, ^c ClipWait ;waits for the clipboard to have content Run, C:\Program Files\Adobe\Adobe Photoshop CC 2015\Photoshop.exe "%clipboard% return ^F2:: ; M2 Key or Control F2 Clipboard = Send, ^c ClipWait ;waits for the clipboard to have...
- 23 Dec 2015, 17:53
- Forum: Ask for Help (v1)
- Topic: Script to open selected file with specific program.
- Replies: 6
- Views: 11275
Re: Script to open selected file with specific program.
Thank you so much; that was it! I was so confused because I thought that the in the first line of the original script was the shortcut. It works perfectly now. I appreciate this.
Code: Select all
^c