AutoHotKey

AHK code to locate the residing folder and highlight the active file

╄→尐↘猪︶ㄣ 提交于 2019-12-23 06:00:26
问题 It’s often requires to quick locate the folder location of open active file and highlight or select the active file while working on different software applications. Quick locating the residing folder needed for finding related files in same folder, rename of the opened files or residing folder or move the file to different related folder. Current options require navigating through the loads of folders to find and locate the specific folder where it’s buried with bunch of similar other files

AHK code to locate the residing folder and highlight the active file

跟風遠走 提交于 2019-12-23 06:00:17
问题 It’s often requires to quick locate the folder location of open active file and highlight or select the active file while working on different software applications. Quick locating the residing folder needed for finding related files in same folder, rename of the opened files or residing folder or move the file to different related folder. Current options require navigating through the loads of folders to find and locate the specific folder where it’s buried with bunch of similar other files

How to use hotkey,off in #IfWinActive section

こ雲淡風輕ζ 提交于 2019-12-23 05:36:09
问题 I am using the following code: #IfWinActive ahk_class Notepad 4::Send,4 5:: Hotkey,4,off ;~ do something Hotkey,4,on Return #IfWinActive but it generates this error: Prompt Error: Nonexistent hotkey variant (IfWin). 回答1: I don't understand what you mean by using 4 to send 4 - it seems redundant. I tried it like this. pushing 4 will send 6, and pushing 5 will send 4. #IfWinActive ahk_class Notepad { 4::Send,6 5:: Hotkey,4,off send, 4 Hotkey,4,on Return } The idea here is that the brackets

Sending laptop function key - AutoHotKey

a 夏天 提交于 2019-12-23 05:33:14
问题 I have trouble using my laptop's Fn+ function keys because they're all lined up without any space between them, and its not a shortcut, its time waste... it's HP Probook 4540s, you'd understand if used this... So, I googled and found AHK. Now what I want to do is to send Fn+F8 (volume down) and Fn+F9 (volume up) as another shortcut, i.e Fn+NumpadSub and Fn+NumpadAdd Following is what I tried so far, ; Volume Down 126NumpadSub:: Send {vkFFsc126 down} Send {F8} Send {vkFFsc126 up} return 126 is

Autohotkey and Windows 10: How to get current explorer path

Deadly 提交于 2019-12-23 05:11:45
问题 I use autohotkey version: 1.0.48.05 (because I stick with activeaid). The script to read the current path is as follows (and worked until Win 7). ; Get full path from open Explorer window WinGetText, FullPath, A ; Clean up result StringReplace, FullPath, FullPath, `r, , all FullPath := RegExReplace(FullPath, "^.*`nAddress: ([^`n]+)`n.*$", "$1") How I suspect that while switching to Win10 it seems that I also switched the language. If I MsgBox out the %FullPath% before cleaning with WinGetText

AHK Across Script in Windows Holds Down the Button Even When Instructed to Release

丶灬走出姿态 提交于 2019-12-23 04:59:35
问题 I have a hotkey program in a different script that I am trying to trigger (#u::) and it seems to have a buggy behavior. Script #1: #MenuMaskKey vk07 #u:: msgbox,,test return Script # 2 that is trying to trigger the #u:: hotkey: #SingleInstance #NoEnv SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. #MenuMaskKey vk07 SendLevel, 10 Send, #{u} ; This successfully triggers the hotkey but now it holds down the # button sleep, 1000 Send, {RWin Up} ;Here I am trying to release

Keep window maximized with AutoHotkey?

时光怂恿深爱的人放手 提交于 2019-12-23 02:59:07
问题 I have an AutoHotkey script that launches an application maximized like this: `Run, myprogram.exe,, Max` It then gets rid of the minimize and restore buttons. I can still click on the task bar and drag downwards to restore the window. Is there any good way to keep my window maximized in AHK? How about just locking the window's position? 回答1: Does the F11 key maximize the app? When in F11 mode most apps completely lose their title bar. If so, run the app then send an F11 key (You may need to

Log multiple Keys with AutoHotkey

喜夏-厌秋 提交于 2019-12-22 18:19:41
问题 I´m trying to let a race game play via AutoHotkey. I use this script to paste the keys i pressed into a txt to let them automaticly play back. My problem is now that this script only can log one key, for example {w down} for drive forward. But to drive in the game better you must press w and d to drive to the right. How can I change the code to make it work the way I want? $F1:: start := A_TickCount FileDelete, log.txt Loop { Input, key, L1 V, %endkeyslist% IfInString, ErrorLevel, EndKey: {

How to simultaneously scroll two windows?

蓝咒 提交于 2019-12-22 18:13:00
问题 I want to simultaneously scroll two windows, but the hotkey input method requires me to duplicate it multiple times. My idea is to use Function Hotkeys and A_ThisHotKey variable, but the WheelDown is disable in the program if using this script: WheelDown:: ScrollKey := A_ThisHotKey SetTitleMatchMode, 2 IfWinActive, Writer { CoordMode, Mouse, Screen WinGet, active_id, ID, A IfWinExist, Sumatra { Send {ScrollKey} WinActivate ; Automatically uses the window found above. Send {ScrollKey} Send

How can I change the keys to change desktop in windows 10 with autohotkey?

会有一股神秘感。 提交于 2019-12-22 11:07:34
问题 Windows 10 has finally multi desktops, you can switch desktops with ctrl + win + right (or left ) keys. It's a nice feature, but you have two use two hands to switch desktops. I'm trying to map the keys like this with autohotkey so I can use just one hand and keep the other one in the mouse.. ctrl + mouse wheel up --> ctrl + win + right ctrl + mouse wheel down --> ctrl + win + left the message box comes up so the ctrl + wheel up is working, but it doesn't switches desktops. ~LControl &