Search found 6474 matches

by lexikos
16 Nov 2019, 20:18
Forum: AutoHotkey v2 Development
Topic: AutoHotkey v2 alpha (UPDATES)
Replies: 61
Views: 40524

v2.0-a107-03296ce9

Main breaking changes: Removed support for Windows XP. Removed the key names Return and Break . Highlights: Changed WinTitle to allow passing a HWND as an Integer or object with a HWND property. DetectHiddenWindows is ignored in such cases. Misc: Changed GroupDeactivate to be more consistent with O...
by lexikos
05 Nov 2019, 06:49
Forum: General Discussion
Topic: Dead link in CHM-help file
Replies: 2
Views: 218

Re: Dead link in CHM-help file

As it says, the link in the documentation is just "For more details". The link in the documentation is clearly not broken (only the download link on the old forum). This part of the documentation is describing functionality that is built into the AutoHotkey installer . You can find EnableUIAccess() ...
by lexikos
05 Nov 2019, 06:40
Forum: Ask For Help
Topic: Autokey general disoriented text for Vietnamese
Replies: 1
Views: 129

Re: Autokey general disoriented text for Vietnamese

Try Text mode.

Code: Select all

Send, {Text}Cảm ơn bạn đã liên hệ Đội ngũ hỗ trợ quảng cáo. 
Alternatively, you can assign to the Clipboard and then Send ^v.
by lexikos
05 Nov 2019, 06:08
Forum: Announcements
Topic: Test build - InputHook, long paths, switch-case
Replies: 29
Views: 4353

Re: Test build - InputHook, long paths, switch-case

@lexikos could we get OnKeyUp for InputHook as well as OnKeyDown? Probably; see InputHook (Wish List) . As a secondary request, will mouse buttons ever be implemented for InputHook? Not in the near future. Your "works" example does not work for me with v1.1.31.01, because contrary to what you say, ...
by lexikos
05 Nov 2019, 05:45
Forum: Wish List
Topic: InputHook
Replies: 16
Views: 797

Re: InputHook

I was referring to the relative difficulty of achieving the functionality of OnKeyDown without InputHook or a keyboard hook vs. the functionality of OnKeyUp while already having OnKeyDown: I considered it non-essential because it is used less often, and because it is much easier to detect key-up aft...
by lexikos
04 Nov 2019, 04:19
Forum: Wish List
Topic: InputHook
Replies: 16
Views: 797

Re: InputHook

AutoHotkey uses a low-level keyboard hook to detect keyboard events of external applications. The same keyboard hook is used for many hotkeys (including all key-up hotkeys), all hotstrings, Input, InputHook, KeyHistory, the "Always" modes of SetCapsLockState and co., detection of physical key state...
by lexikos
04 Nov 2019, 03:54
Forum: Scripts and Functions
Topic: Upcoming Ahk2Exe Changes (2019)
Replies: 292
Views: 20766

Re: Upcoming Ahk2Exe Changes (2019)

It might pay to add /cp 65001 to your parameters to ensure the script is processed as UTF-8. That would make the compilation behaviour inconsistent with the default behaviour of AutoHotkey.exe. Anyone should be able to run the Ahk2Exe source files with a default AutoHotkey installation (or at least...
by lexikos
04 Nov 2019, 03:37
Forum: Ask For Help
Topic: Bug! Array key variable not working when is string with number
Replies: 7
Views: 341

Re: Bug! Array key variable not working when is string with number

The behaviour should be consistent with every part of the language that converts strings to numbers or checks if strings are numeric. (But for quoted literal strings used directly, v1 does not check if the string is numeric because it already "knows" that numbers should not be enclosed in quote mark...
by lexikos
04 Nov 2019, 03:02
Forum: Bug Reports
Topic: SendInput does not always buffer keystrokes
Replies: 7
Views: 439

Re: SendInput does not always buffer keystrokes

If SendInput detects another AutoHotkey script with a hook, it automatically falls back to SendEvent mode. However, there are actually two hooks: a mouse hook and a keyboard hook. SendInput only checks for the type of hook that would detect the events it is about to send. Your script is sending both...
by lexikos
03 Nov 2019, 02:23
Forum: Scripts and Functions
Topic: Upcoming Ahk2Exe Changes (2019)
Replies: 292
Views: 20766

Re: Upcoming Ahk2Exe Changes (2019)

Regarding pull requests for the docs (and only the docs), I'm not very concerned about separating different logical changes into branches. Separate commits is sufficient. I'm not even concerned about the pull request description. Ragnar usually makes a bunch of unrelated changes and submits one pull...
by lexikos
03 Nov 2019, 02:05
Forum: Wish List
Topic: InputHook
Replies: 16
Views: 797

Re: InputHook

That's obvious. My point is that OnKeyUp is lower value than OnKeyDown due to the difference in difficulty of the two tasks.
by lexikos
02 Nov 2019, 18:44
Forum: Wish List
Topic: InputHook
Replies: 16
Views: 797

Re: InputHook

I may add OnKeyUp. I considered it non-essential because it is used less often, and because it is much easier to detect key-up after being notified of key-down. You can just register one hotkey temporarily or use KeyWait or SetTimer. By contrast, detecting key-down without knowing which key is going...
by lexikos
02 Nov 2019, 18:09
Forum: Ask For Help
Topic: Switch keyboard layout Works but NOT Always Topic is solved
Replies: 4
Views: 340

Re: Switch keyboard layout Works but NOT Always Topic is solved

You can try replacing ahk_id %CtrlID% with A, or add a ToolTip % "ID: " InputLocaleID to check that it is identifying the keyboard layout correctly.

But it works for me either way, in any program (I just have to replace 0x4090409 with 0x4090C09).
by lexikos
02 Nov 2019, 17:24
Forum: Ask For Help
Topic: Modifier AltGr for {Delete} action only works one by one Topic is solved
Replies: 3
Views: 260

Re: Modifier AltGr for {Delete} action only works one by one Topic is solved

I've worked out that this relates to the handling of Ctrl+Alt+Del by the keyboard hook, so specifically applies to sending Delete while AltGr is physically down. If Ctrl and Alt are physically down and Delete is sent, normally the system security hotkey kicks in even if Ctrl and Alt were suppressed ...
by lexikos
02 Nov 2019, 04:49
Forum: Ask For Help
Topic: Modifier AltGr for {Delete} action only works one by one Topic is solved
Replies: 3
Views: 260

Re: Modifier AltGr for {Delete} action only works one by one Topic is solved

Send "releases" AltGr in order to send Delete unmodified. It should "press" AltGr again afterward, but does not. This appears to be a bug. Sleep, {<^>! down} is wrong in multiple ways. ;) To put AltGr back into effect on a keyboard layout that has AltGr, you should just send {RAlt DownR} , as the sy...
by lexikos
02 Nov 2019, 04:29
Forum: Ask For Help
Topic: Switch keyboard layout Works but NOT Always Topic is solved
Replies: 4
Views: 340

Re: Switch keyboard layout Works but NOT Always Topic is solved

This should work: #Space:: ; SetFormat, Integer, H ; Not necessary and may reduce performance. ; For values to be used as numbers, it is better to use a numeric format ; (do not quote). Lang := { "EN": 0x4090409, "RU": 0x4190419 } ; For compatibility with UWP apps, get the thread of the focused ; co...
by lexikos
02 Nov 2019, 03:26
Forum: Ask For Help
Topic: Wrote some lines to block "Enter" from being pressed, but still need it for menus
Replies: 8
Views: 409

Re: Wrote some lines to block "Enter" from being pressed, but still need it for menus

The original script uses a remapping, not a hotkey. Pressing Shift+Enter would produce Shift+q. Generally when a standard Windows popup menu is shown, the owner window is activated rather than the menu itself. For this reason, you cannot use #IfWinActive to detect the menu, but you can use #IfWinExi...
by lexikos
02 Nov 2019, 03:15
Forum: Ask For Help
Topic: How to stop trigger hotkeys from modifying SendInput text
Replies: 2
Views: 143

Re: How to stop trigger hotkeys from modifying SendInput text

{Raw} will not help in this context because the hyphen is already interpreted literally. "The characters ^+!#{} are interpreted literally rather than translating {Enter} to Enter, ^c to Control+C, etc." Also note that SirSock's example changes the behaviour of the script by adding a space between {t...
by lexikos
01 Nov 2019, 07:05
Forum: AutoHotkey v2 Help
Topic: Get Date from MonthCal Topic is solved
Replies: 21
Views: 1413

Re: Get Date from MonthCal Topic is solved

What normally happens when you submit a form? The form closes, the browser navigates you away from the form, or for a paper form, you don't have possession of it anymore. This is where the Submit method/sub-command gets its name. It is intuitive for the GUI to hide. The error message (when putting y...
by lexikos
01 Nov 2019, 05:47
Forum: Wish List
Topic: I want to use {vk1Csc079} or {vk1Dsc07B} for Hotstring EndChars
Replies: 1
Views: 279

Re: I want to use {vk1Csc079} or {vk1Dsc07B} for Hotstring EndChars

Keys are not characters. Perhaps it would suffice to trigger a hotstring-end programmatically. For example, typing btw and pressing RWin works for me in the following case. I don't think I have the keys you specified. ::btw::by the way RWin:: SendLevel 1 ; Raise SendLevel so that we can... SendEvent...

Go to advanced search