AutoHotKey

Toggle a key with hotkey in autohotkey

纵然是瞬间 提交于 2019-12-06 06:38:03
问题 So I tried to automate running in a game, where the map is huge, and I have to run miles. I wanted to toggle on the hotkey ( Ctrl + Shift + A or something else) press the running (in the game, I can run with w ). I tried code, like: Pause On Loop Send w +^a::Pause (it can press the w, but it can't release) and like this: +^a:: toggle := !toggle while toggle Send {w down} (same problem). It's just my problem, or these codes are wrong? 回答1: This is my stock function. I usualy map it to ^W or Q.

Send hotkey to minimized chrome window

ⅰ亾dé卋堺 提交于 2019-12-06 05:51:36
问题 I need an autohotkey script that can send alt+backspace to a minimized chrome window (without maximizing it). Basically, I have a web player app I've made and on the player window which opens in a smaller window, you can press alt+backspace and it will mute and unmute while the window has focus. (javascript events) Active Window Info says this: >>>>( TitleMatchMode=slow Visible Text )<<<< player.highstrike.org/play/ I would like script to work only for that url. I have tried to send cmds to

Alternative to UrlDownloadToFile

这一生的挚爱 提交于 2019-12-06 04:58:24
问题 UrlDownloadToFile is a nice command in AutoHotkey and works just fine, most of the time, but sometimes a download mechanism is too complex for it. For example if the download requires a specific user-agent to be set or if the download requires a cookie or maybe even a password. So the question is: Is there a more advanced download function, which could handle all of the above said? 回答1: I wrote this quite some time ago and thought it would be a nice idea to wrap it up in a function and post

Can Inno Setup send key and mouse presses, if not, how can this be done using an Installer?

孤者浪人 提交于 2019-12-06 04:53:27
I'm a newbie to both [Microsoft Windows] installers and Inno Setup but I need to know if Inno Setup (or an equivalent) can be used automate the input to a GUI-based windows program, during install, e.g. by clicking on a menu and selecting a sub-item, for instance? I'm aware of AutoIt and AutoHotkey , as well as NSIS , however Inno Setup comes highly recommended as a software packager/installer, and I also like the idea of learning a little Pascal programming, into the bargain ;) Any ideas or thoughts are most welcome :-) TLama I agree with @Deanna, the SendInput function is the best for

AutoHotkey causing control key to get stuck

我的未来我决定 提交于 2019-12-06 04:46:21
问题 I have several situations when my control key gets stuck, and it happens only when I have AutoHotkey running. This happens with multiple different modifier keys (# (windows) key, ! (alt) key especially). Similar problems have been posted several times before: 1, 2, 3. Some solutions exists, and the one suggested here partially helped me (decreased the frequency of the problem), but the control key still gets stuck occasionally. Things I have tried include #InstallKeybdHook. I have two

How to remap capslock key to EMACS super using Autohotkey?

让人想犯罪 __ 提交于 2019-12-06 04:40:10
This site shows how using the registry. http://www.emacswiki.org/emacs/JonasOster Another page on emacswiki suggests this in AutoHotKey: #IfWinActive emacs ; if in emacs +Capslock::Capslock ; make shift+Caps-Lock the Caps Lock toggle Capslock::Control ; make Caps Lock the control button #IfWinActive ; end if in emacs I don't know what Super does, but I mapped CapsLock to Emacs using this script: CapsLock:: ifwinactive ahk_class Emacs send {f16} return This sends f16 to emacs when emacs is active and capslock is pressed. My keyboard does not have an f16 key, that's why I chose that and in emacs

Jacob.jar cannot find jacob-1.18-x86.dll

一笑奈何 提交于 2019-12-06 04:25:55
I am trying to write Java code that uses autohotkey, specifically the autoitx4java implementation. I have the imports import java.text.SimpleDateFormat; import java.util.Date; import autoitx4java.AutoItX; As well as have added Jacob.jar, AutoItX4Java.jar and sqljdbc4.jar in the build path (sql jdbc is for other parts of the code). It doesn't compile because of an unsatisfied link error: Exception in thread "main" java.lang.UnsatisfiedLinkError: no jacob-1.18-x86 in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java

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

╄→гoц情女王★ 提交于 2019-12-06 04:08:13
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. 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.class file (with MyClass in the default package) in C:\mypath , I expect you have to issue something like Run

Autohotkey multiple hotkeys mapping to the same function

亡梦爱人 提交于 2019-12-06 03:39:04
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? Multiple hotkey definitions in one line can't be done, at least not without a genuine hack. Still, there are ways to simplify your script: Method 1: "Trickling hotkeys" This is the simplest and most straight-forward way to assign

How to convert a string to a numeric in autohotkey?

醉酒当歌 提交于 2019-12-06 03:16:23
FormatTime, CurrentMinute , , m assigns the current minute to variable %CurrentMinute% , and its value is a string, not a numeric. I wanna do some calculations on the value of %CurrentMinute% , so how could I convert it to numeric? Thanks for any help in advance! AutoHotkey automatically converts numbers and strings as needed. FormatTime, CurrentMinute,, m NextMinute := CurrentMinute + 1 来源: https://stackoverflow.com/questions/13106275/how-to-convert-a-string-to-a-numeric-in-autohotkey