Search found 5237 matches

by lexikos
02 Sep 2017, 17:29
Forum: AutoHotkey v2 Development
Topic: [ERROR] SetTimer("LABEL", ...)
Replies: 6
Views: 234

Re: [ERROR] SetTimer("LABEL", ...)

The function is not called, so no (other) local variables or labels are accessible dynamically. HotKeyIt's "fix" adds an inconsistency to the language, making A_ThisLabel accessible but not any other local labels or variables. My preference is to leave it as is. If you want encapsulation, ...
by lexikos
27 Jul 2017, 04:44
Forum: Bug Reports
Topic: Hotkey Control Partially Works
Replies: 7
Views: 296

Re: Hotkey Control Partially Works

Again, the control does not show "None" when you enter a multimedia key. A blank return value would be inconsistent with what the control displays. The control is not necessarily blank either; it shows, for example, "G" when I press Play/Pause and "D" when I press Mute....
by lexikos
26 Jul 2017, 22:27
Forum: Bug Reports
Topic: Hotkey Control Partially Works
Replies: 7
Views: 296

Re: Hotkey Control Partially Works

The hotkey control returns sc135 but displays Num / the only way to get numpaddiv is to use GetKeyNameText on sc135. You are talking about GetKeyName. GetKeyName is an AutoHotkey function, which knows about AutoHotkey syntax (like "sc135") and AutoHotkey key names (like "Browser_Back...
by lexikos
26 Jul 2017, 04:15
Forum: Bug Reports
Topic: Hotkey Control Partially Works
Replies: 7
Views: 296

Re: Hotkey Control Partially Works

The Hokey control will receive and process media keys but doesn't display them. The hotkey control is a standard Windows component, and its limitations are shared by all applications which use it. This is not an AutoHotkey bug. The Hotkey control has limited capabilities. For example, it does not s...
by lexikos
25 Jul 2017, 03:54
Forum: Ask For Help
Topic: Input needed from Korean/Thai/other keyboard users
Replies: 5
Views: 448

Re: Input needed from Korean/Thai/other keyboard users

And yes, the vk19 is works when use Korean input, but others languages not.

It sounds like you are not answering the question I asked.

vk19 should not work with the other languages, because the key produces vke9, not vk19.

Does vke9:: work with the other languages?
by lexikos
25 Jul 2017, 03:48
Forum: Ask For Help
Topic: set a program to always run as an administrator
Replies: 3
Views: 163

Re: set a program to always run as an administrator

Write to the registry key shown in the article, using the path of the executable file as a value name (as shown in the article), with the "RUNASADMIN" value as shown in the article.
by lexikos
22 Jul 2017, 21:31
Forum: AutoHotkey v2 Development
Topic: App Crash for digit function
Replies: 6
Views: 389

Re: App Crash for digit function

It has nothing at all to do with having a digit. An invalid pointer is dereferenced within the error-text generating code because the line has neither a pre-resolved function nor a parameter (i.e. because pre-resolution of the function failed; i.e. the function doesn't exist ). As with any invalid d...
by lexikos
22 Jul 2017, 20:15
Forum: Ask For Help
Topic: Input needed from Korean/Thai/other keyboard users
Replies: 5
Views: 448

Re: Input needed from Korean/Thai/other keyboard users

Thanks. Are you saying that: ⋅ the hanja key has a different scan code depending on the input language? ⋅ neither vk19:: nor vke9:: work for the hanji key when the input language is not Korean, even though ListHotkeys shows e9 ? I did not think it was possible for input language ...
by lexikos
21 Jul 2017, 22:46
Forum: Ask For Help
Topic: AutoHotkey GUI Tab controls: Adding GUIs to tab pages
Replies: 1
Views: 92

Re: AutoHotkey GUI Tab controls: Adding GUIs to tab pages

Tab pages don't have handles. Tab pages aren't windows, controls or any other kind of object; they are make-believe.

AutoHotkey merely manages the visibility of controls when the tab index is changed.
by lexikos
21 Jul 2017, 22:19
Forum: Ask For Help
Topic: My script is actioned with #l, but Win-7 also reacts
Replies: 2
Views: 86

Re: My script is actioned with #l, but Win-7 also reacts

You are misreading (and misquoting) the documentation. By cutting off the second half of the sentence, you have changed its meaning. You can disable all built-in Windows hotkeys except Win+L and Win+U by making the following change to the registry Meaning: Making the following change to the registry...
by lexikos
21 Jul 2017, 22:03
Forum: Ask For Help
Topic: StringReplace sets Errorlevel - why? Topic is solved
Replies: 3
Views: 113

Re: StringReplace sets Errorlevel - why? Topic is solved

In answer to the original question: StringReplace sets ErrorLevel to indicate whether the operation was successful. The documentation is quite clear: StringReplace: When the last parameter is UseErrorLevel, ErrorLevel is given the number occurrences replaced (0 if none). Otherwise, ErrorLevel is set...
by lexikos
21 Jul 2017, 21:56
Forum: Ask For Help
Topic: remap windows task switcher windows 10?
Replies: 3
Views: 119

Re: remap windows task switcher windows 10?

Naturally, if you swap the keys, you will have to push Ctrl + Tab to activate the task switcher. This appears to work well: LCtrl::Alt LAlt::Ctrl ; Restore Alt-Tab #if GetKeyState("LAlt", "P") *Tab:: if GetKeyState("LCtrl", "P") ; Restore Ctrl+Alt+Tab { Send {...
by lexikos
21 Jul 2017, 20:16
Forum: Ask For Help
Topic: Windows installer built in AHK
Replies: 2
Views: 106

Re: Windows installer built in AHK

You've installed AutoHotkey, right... ? ;)
by lexikos
21 Jul 2017, 18:33
Forum: Ask For Help
Topic: Loop Parse, - What happens?
Replies: 5
Views: 160

Re: Loop Parse, - What happens?

Loop, Parse wrote:In addition, if InputVar's contents change during the execution of the loop, the loop will not "see" the changes because it is operating on a temporary copy of the original contents.

Does that answer your question?
by lexikos
21 Jul 2017, 18:26
Forum: Ask For Help
Topic: Sleep Function [HELP]
Replies: 20
Views: 416

Re: Sleep Function [HELP]

FYI, send {sleep 10000} does not sleep for 10 seconds. It sends the "Sleep" key 10,000 times. Also, send {A} does not send "the A key". It sends the capital letter "A", by sending Shift (if necessary) and the A key. By contrast, send {a} or send a sends just the A key, ...
by lexikos
21 Jul 2017, 18:01
Forum: AutoHotkey v2 Development
Topic: GuiControl Type inconsistent Topic is solved
Replies: 1
Views: 148

Re: GuiControl Type inconsistent Topic is solved

What's " the string to Gui.Add a control"? "Checkbox", "CheckBox", "CHECKBOX", "checkbox", "cHeCkBoX", etc. are all valid strings for Gui.Add. Gui.Add isn't case sensitive. Neither is = / < / > /etc. or InStr (by default). I fail to see how...
by lexikos
20 Jul 2017, 20:27
Forum: Ask For Help
Topic: SingleInstance Force issue Topic is solved
Replies: 14
Views: 496

Re: SingleInstance Force issue Topic is solved

WinExist must find the window.

SendMessage must find the window and be able to send a specific message to it.

It should be clear which one would be more reliable.

In general, a process cannot automate windows belonging to a process of a higher integrity level. See "UIPI".
by lexikos
19 Jul 2017, 04:09
Forum: Bug Reports
Topic: Beginner Tutorials examples bug
Replies: 1
Views: 143

Re: Beginner Tutorials examples bug

No. Wrapping + in {} is only appropriate if you are passing it to Send. That part of the tutorial does not use Send.
by lexikos
19 Jul 2017, 04:04
Forum: Ask For Help
Topic: SingleInstance Force issue Topic is solved
Replies: 14
Views: 496

Re: SingleInstance Force issue Topic is solved

I was going to go the easy route and just ExitApp if there was already another instance running, but I think it would result in a race condition [...] I think what you're saying is that the new (admin) instance may exit because it sees the old instance still running. That's easily solved by telling...

Go to advanced search