AutoHotKey

SQLite/AutoHotkey, I have problem with Encoding of sqlite3_result_text return function

不羁的心 提交于 2019-12-24 06:37:17
问题 I am writing a User Define Function with SQLite in AutoHotkey. It works well as I intended when I use (return) English only. But, If I use (return) any character with NonEnglish, it makes broken result. The broken result has, for me, some rules - its length is exctly realted with NonEnglish character. Does any body heard about it ? I guess it is problem with " sqlite3_result_text " function of SQLite. If so, I'd like to use it properly. Thanks [EDIT] I have tested with " sqlite3_result_text64

Autohotkey: Remap Win key - when pressed alone

﹥>﹥吖頭↗ 提交于 2019-12-24 04:19:11
问题 Because of an insane laptop keyboard layout and the inability to map Fn-combinations I want to do a few remappings. I would like to use the LWin key as modifier (such as LWin+Right ==> End, etc.). It works just fine. However, I want to stop LWin, when pressed and released alone, to bring up the Windows menu (b/c I sometimes press the modifier but then decide not to complete the action) and I still want to be able to access the Windows menu fairly easily, say via LAlt+LWin. (Obviously LWin

How to have Autohotkey 'listen' for a change to a file?

本秂侑毒 提交于 2019-12-24 03:48:10
问题 I have a text file, lets call it C:\to_run.txt . I'd like my Autohotkey script to 'listen' to this file in such a way that when it detects a change, it performs an action immediately based on the contents of the file, and then make the file blank again. I can handle the last parts, so really I'm asking for an efficient way to detect file changes? I say efficient because my Autohotkey script is getting rather long and I don't want this listening function to hang up the rest of the script in

WM_Copy, wm_gettext and wm_keydown fail?

孤街醉人 提交于 2019-12-24 02:07:13
问题 The problem: I need to obtain the selected text from a window in a Windows application (not my program). I am doing my work in Delphi XE and the software I am attempting to access is a kluge built over the past 15 years with C, C++, VB and who knows what else. I do not have the source code. The edit box (an RTF memo) I am attempting to read is of the class "Ter32Class". When I use wm_copy , nothing goes to the clipboard. when I use wm_gettext , nothing. When I use wm_keydown commands (to

Autohotkey - Different commands when different programs are active

大城市里の小女人 提交于 2019-12-23 23:08:56
问题 I am trying to write a script that when clicking "SHIFT+ALT+I" it sends a particular command when Microsft Word is active and another command if Microsoft PowerPoint is Active (both programs are running at the same time). The code should be something like: "if Microsoft Word is open" +!i:: MouseMove, 300,50,0 MouseClick, left "if Microsoft Powerpoint is open" +!i:: MouseMove, 600,100,0 MouseClick, left Is there any (easy) way of doing that? 回答1: Yes, this is quite straightforward. First off:

Autohotkey script running program with command line arguments

ぃ、小莉子 提交于 2019-12-23 20:29:19
问题 I am using autohotkey to automate some manual process. I have to run a java command line program(.java) that accepts couple of command line arguments. I want to run this java program from autohotkey after executing some pre-defined tasks in the automation. How would I do this? 回答1: I think that this is what you are looking for. In this example, I over-ride the company default search engine inside IE. #i::Run "C:\Program Files\Internet Explorer\iexplore.exe" http://www.google.com Basically,

What is AU3_Spy.exe? Where can I find it?

我只是一个虾纸丫 提交于 2019-12-23 13:14:15
问题 Whenever I try to launch the Windows Spy utility in AutoHotkey, it fails with an error " Could not launch file: U:\Software\AutoHotkey_1.1.26.00\AU3_Spy.exe " Initially I thought that I may have had a corrupted download. However, after redownloading AHK from the official website, I could not find any file named AU3_Spy.exe in ahk.zip. After some research, I've discovered that the portable version of AHK is missing AU3_Spy.exe, which seems to be required for Window Spy to run. What is AU3_Spy

Newest Spotify update: Autohotkeys script broke

我只是一个虾纸丫 提交于 2019-12-23 10:39:34
问题 I used to use the AutoHotKey script for Spotify shortcuts (the built in shortcuts are limited and only work if the app is in focus, I usually keep it in the background at work). Anyway, it's updated a million times before with no problem.. but I downloaded the latest spotify update and it no longer works. Any idea why? Here's the script. #z::Run www.autohotkey.com SetTitleMatchMode 2 ; "CTRL + LEFT" for previous ^Left:: { DetectHiddenWindows, On ControlSend, ahk_parent, ^{Left}, ahk_class

Counting with AHK, Letters

本秂侑毒 提交于 2019-12-23 07:09:05
问题 I have been doing some recent experimentation with AHK, an interpreted automation scripting language, that can do tasks such as window move, mouse move, save and log info for files and I have found it very useful. I wanted to make a script that could sort of count, but with characters and symbols, a password list generator. As I need one for my attempts as a white hat. ;list of characters here send, aaaaa ;then send, aaaab using a method like this I would very much appreciate help on the

Trigger hotstring ONLY when preceded by alphanumberic characters

末鹿安然 提交于 2019-12-23 06:14:24
问题 I know about using ? in a hotstring (e.g. :?:btw::by the way ) to allow the hotstring to fire after an alphanumberic character. However, is there a way to make it fire only when preceded by an alphanumberic character? For example, so it doesn't trigger on #btw or @btw or :btw or similar. 回答1: The only thing i can think of is to make a hotstring for every alphanumeric character. :?:abtw::by the way :?:bbtw::by the way :?:cbtw::by the way . . . :?:Ybtw::by the way :?:Zbtw::by the way :?:1btw: