AutoHotKey

Communicating between Autohotkey and python

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Is there a way to send some parameter from autohotkey to python. Using Autohot key I read some number from the notepad and store in a variable and now I want to send this number to the python code in order to do some calculations. My Autohotkey code is; controlGetText , telphoneNumber , Edit1 , Untitled - Notepad And I want to send this telphoneNumber to python file Is there a way I can do that? Do I need to create an exe file of a python and then call from autohotkey? for example, RunWait , C : \Button\button . exe telphoneNumber

Relief from backslash irritation in R for Windows

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Early in my R life I discovered the pain of R and windows being on different pages when it came to the separator between directories and subdirectories. Eventhough I know about the problem, I am still pained by manually having to put a backslash in front of all my backslashes or replacing all of them with forward slashes. I love copying a path name or an entire filename with any one of several applications that I have running on my computer (eg. XYPlorer, Everything by voidtools) and then pasting it into Tinn-R. Is there anyway that I could

Syntax Highlighting in Notepad++: How to treat a user-defined language as built-in?

删除回忆录丶 提交于 2019-12-03 03:00:26
This is a very minor issue that has nonetheless annoyed me for months. I've spent hours Googling it to no avail. To enable syntax highlighting of .ahk files in Notepad++, I've downloaded & imported an .xml file for AutoHotkey. The issue is that- to enable this highlighting- I have to manually select it from the "Language" drop-down. I'd like to it to be enabled whenever an .ahk file is opened, as it is for various other languages. I've tried adding the .ahk extension to the AutoIt language in the Style Configurator, which does nothing for me. Any ideas? I can't be the first person to have been

Python for Autohotkey style key-combination sniffing, automation?

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to automate several tasks (eg. simulate eclipse style ctrl - shift - R open dialog for other editors). The general pattern is: the user will press some key combination, my program will detect it and potentially pop up a dialog to get user input, and then run a corresponding command, typically by running an executable. My target environment is windows, although cross-platform would be nice. My program would be started once, read a configuration file, and sit in the background till triggered by a key combination or other event.

How can I mimic Visual Studio's “Ctrl-K, C” two-step macro behaviour using Autoit / Autohotkey?

我与影子孤独终老i 提交于 2019-12-03 02:01:28
I'm trying to set up AutoHotkey macros for some common tasks, and I want the hotkeys to mimic Visual Studio's "two-step shortcut" behaviour - i.e. pressing Ctrl - K will enable "macro mode"; within macro mode, pressing certain keys will run a macro and then disable 'macro mode', and any other key will just disable macro mode. Example - when typing a filename, I want to be able to insert today's date by tapping Ctrl - K , then pressing D . Does anyone have a good example of a stateful AutoHotkey script that behaves like this? Andres This Autohotkey script, when you press ctrl + k , will wait

How to globally map AltGr key to Alt key?

匿名 (未验证) 提交于 2019-12-03 01:14:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want my AltGr key to behave exactly like left Alt . Usually, I do this kind of stuff with Autohotkey , but I'm open to different solutions. I tried this: LControl & RAlt::Alt And Autohotkey displayed error about Alt not being recognized action. Then I tried the following code: LControl & RAlt:: Send {Alt down} KeyWait LCtrl KeyWait Ralt Send {Alt up} return which sort of works - I'm able to use the AltGr key for accessing hotkeys, but it still behaves differently: When I press and release the left Alt , the first menu item in the current

AutoHotkey choking on same-line curly brace for compound if statements

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a problem where AutoHotkey tells me there is a missing { in front of an 'else' where I think my Code is perfectly fine. (It worked up until I changed the window-related if's from Pidgin to qutIM) ^!p:: IfWinExist ahk_class QWidget, ,qutIM { ;if there is a qutIM-window other than the buddy-list... IfWinNotActive ahk_class QWidget, , qutIM { ;ans it is not active... WinActivate } else { ;the closing bracket in front of the else here puts AHK off... WinMinimize } } else { ;do some stuff with the buddy-list ; [...] } return I fear I'm

使用autohotkey映射按键

匿名 (未验证) 提交于 2019-12-03 00:36:02
如果你特别烦躁vim、emacs、bash、IDE、编辑器、浏览器按键不统一带来的麻烦,可以试试autohotkey。目前唯一缺点不支持linux 脚本功能: alt+j -> left alt+shift+j -> shift+left alt+ctrl+shift+j -> ctrl+shift+left alt+e -> pgup alt+shift+e -> shift+pgup alt+ctrl+e -> ctrl+pgup ctrl+h -> backspace 诸如此类 !i::SendPlay {Up down} !+i::SendPlay {shift down}{Up down} !k::SendPlay {down down} !+k::SendPlay {shift down}{down down} !j::SendPlay {left down} !+j::SendPlay {shift down}{left down} !^+j::sendplay {shift down}{ctrl down}{left down} !l::SendPlay {right down} !+l::SendPlay {shift down}{right down} !^+l::sendplay {shift down}{ctrl down}{right down} !h:

How can I maximize a window across multiple monitors?

允我心安 提交于 2019-12-02 23:08:22
Using AutoHotkey, How can I bind a hotkey to stretch/maximize/span a window across multiple monitors so that it covers both displays? Right now, I have to do this by manually stretching the windows with the mouse. I know there are dedicated tools that do this, but I'm already running an AutoHotkey script and would rather limit the number of tools I keep running. Here's how I did it, mapping the Shift + Windows + Up combination to maximize a window across all displays. This compliments Windows 7's Windows + Up hotkey, which maximizes the selected window. +#Up:: WinGetActiveTitle, Title

Autohotkey alternative for Mac OS X? [closed]

旧时模样 提交于 2019-12-02 19:08:52
This question has been asked before but with no answer. I'm running into brick walls with google too. Program can either be free or paid. Keymando - $19, 30-day free trial. Uses Ruby as its scripting language. IronAHK will run AHK scripts, but for its GUI it requires X11.app. I don't believe it can automate regular Mac apps. What is is you're trying to do? IronAHK should work on a Mac - I'm not a Mac user so I've not tried it, but that would be my first choice for trying to get AutoHotkey scripts working. alternativeTo.net lists a few Mac OS alternatives to AutoHotkey. The top result there is