AutoHotKey

Autohotkey multiple hotkeys mapping to the same function

落爺英雄遲暮 提交于 2019-12-07 16:34:28
问题 I have several hotkeys that all do the same things, I have multiples so I can call them wherever my hands happen to be at the time and can be used on multiple keyboards eg: #]::Send {Media_Next} XButton2 & RButton::Send {Media_Next} SC15D & ]::Send {Media_Next} Is there any way to combine these things onto one line without having to repeat myself all over the place? 回答1: Multiple hotkey definitions in one line can't be done, at least not without a genuine hack. Still, there are ways to

Create Lotus Notes hotkey/shortcut key for “reply to all with history”

自古美人都是妖i 提交于 2019-12-07 16:21:18
问题 Because I like to make common actions quick to access, I'd like to define a hotkey, e.g. Alt+L to do "reply to all with history", to act on the selected email. I'm using Lotus Notes 8.5 under Windows. Currently I have to either click the Reply button and then click "Reply to All with History Only" or I have to press Alt+3 then cursor down several times and press enter. Actually, Alt+3 doesn't always work because if the email is opened in its own window then you have to use Alt+2. I've pursued

Fetch the current track info from Spotify app after March 2015 update

坚强是说给别人听的谎言 提交于 2019-12-07 16:05:41
问题 I want to pull out the current track information from Spotify windows client using autohotkey. Although this question Hotkey for next song in Spotify solved some of the problems (the media playback issues) in the commonly used ahk script (can be found in this question: Newest Spotify update: Autohotkeys script broke and below), the track info shortcut still does not work. ^Down:: { DetectHiddenWindows, On SetTitleMatchMode 2 WinGetTitle, now_playing, ahk_class SpotifyMainWindow

Determining which screen a window is on (by checking where the most surfacearea is located)

情到浓时终转凉″ 提交于 2019-12-07 13:40:14
问题 I'm currently determining which screen a window is on, by checking on which screen it's very left-top position is. Now I'd like to change that so that I can find out on which scren the most surface area of the window is to be found. Any ideas how that can be accomplished? Here is my old code: (it simply moves the active window between all available screens when pressing F1) F1:: WinGetPos, X, Y,,, A window := {x:X,y:Y} monitors := GetMonitors() Loop % monitors.MaxIndex() { curMonitor :=

how to run java .class file from an autohotkey script?

拟墨画扇 提交于 2019-12-07 13:00:02
问题 How to run java .class file from a script providing some command line parameters? The script is built using autohotkey framework. Can we trigger the execution of .class files from a script? Please let me know if I am wrong. 回答1: I am not familiar with autohotkey, but if your command line is something like java -cp <yourclasspath> <yourclassname> <yourarguments> you are good to go, I guess. ADDITION: It seems to me that the Run directive allows you to do that. Assuming to have your MyClass

How can I remap CTRL-x CTRL-c in Autohotkey?

我只是一个虾纸丫 提交于 2019-12-07 08:10:28
问题 Having recently moved to Emacs (and become a fanboy), I'd like to use Autohotkey to make Ctrl + X Ctrk + C a universal "Close" command. Here's what I have in my .ahk file: ; Universal Close :*:^x^c:: WinClose, A Return which doesn't appear to work. What am I doing wrong? To clarify my keystrokes, here is the sequence: Hold down the CTRL key; Press and release the X key; Press and release the C key; Release the Ctrl key. On either pressing or releasing the C key (I don't mind which), the

Autohotkey script to open command prompt

前提是你 提交于 2019-12-07 05:46:30
问题 I've collected a script from the AutoHotKey forum which lets me open a command prompt at the location I'm open in windows explorer. If the current window is not a explorer window then the prompt opens at the location where the script is present. I would like to change this behavior and make it open from C:\ if the current window is not a explorer window. I've tried to edit the script but its not working as desired. #ifwinactive, ahk_class CabinetWClass ControlGetText, address , edit1, ahk

Keep window maximized with AutoHotkey?

北城余情 提交于 2019-12-07 03:14:28
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? 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 wait a bit for the app to be active or something). Failing that, yes you could have an infinite loop running

Get available screen area in autohotkey

若如初见. 提交于 2019-12-07 00:37:18
问题 I'm trying to write a few simple AutoHotkey scripts for moving windows around, and I'm having trouble getting the correct screen size values. I'm trying to get the size of the usable area on the screen (generally the full screen resolution minus the taskbar, and maybe any other docked windows like the sidebar in Vista). Neither of the methods I've found for getting the screen width seems to work. None of the 3 methods I found to get the screen size are giving me the right values. Here's the

Playback 24bit audio not possible

这一生的挚爱 提交于 2019-12-06 20:01:26
问题 I'm trying to play a 24bit audio file with my AutoHotkey app. It just uses SoundPlay. Windows 7 has no problem, however Windows XP users cannot play the 24bit files. The documentation says: All Windows OSes should be able to play .wav files. However, other files (.mp3, .avi, etc.) might not be playable if the right codecs or features aren't installed on the OS. Possible fixes mentioned in the article How to play 24bit WAV files in Windows Media Player are fixing the problem for Windows Media