Search found 5244 matches

by lexikos
15 Nov 2017, 02:01
Forum: Bug Reports
Topic: The hotkey #q will not be active because it does not exist in the current keyboard layout.
Replies: 9
Views: 1000

Re: The hotkey #q will not be active because it does not exist in the current keyboard layout.

Hotkeys are registered at program startup, using the keyboard layout which is active at the time. This is by design.
by lexikos
15 Nov 2017, 01:56
Forum: Scripts and Functions
Topic: LoadFile - Load script file as a separate process
Replies: 7
Views: 1688

Re: LoadFile - Load script file as a separate process

A_User wrote:What's the proper way to close them automatically?
Always close processes gracefully.
by lexikos
07 Nov 2017, 03:52
Forum: Scripts and Functions
Topic: LoadFile - Load script file as a separate process
Replies: 7
Views: 1688

Re: LoadFile - Load script file as a separate process

A workaround I found is to inject code that calls another ObjRegisterActive() but I'm not sure if there is a better way. You could put the parameters in client instead and pull them out in Serve(). There's really no need to register two objects. You could inject normal variable assignments, even em...
by lexikos
27 Oct 2017, 20:38
Forum: Scripts and Functions
Topic: ActiveScript - Host VBScript and JScript in-process
Replies: 29
Views: 7795

Re: ActiveScript - Host VBScript and JScript in-process

are you saying [...] this.m_Js.AddObject("HKS", ComDispatch0(HKS)) can be changed to [...] this.m_Js.AddObject(HKS) No. I am saying you can replace ComDispatch0(HKS) with HKS. You still need to tell AddObject which name to bind in the JavaScript context. I would like to call this function...
by lexikos
27 Oct 2017, 20:22
Forum: Scripts and Functions
Topic: ObjRegisterActive
Replies: 40
Views: 7254

Re: ObjRegisterActive

Your object would need to implement the IConnectionPointContainer and IConnectionPoint interfaces. In order to do that, you would need to construct the object yourself, including an IUnknown interface implementation which can be queried for those interfaces. You could not simply pass an AutoHotkey o...
by lexikos
17 Oct 2017, 01:19
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 275
Views: 51427

Re: Suggestions on documentation improvements

i'm using xp, i cant seem to make the search function of help does not find parts of words when i type a_tick , it cant find a_tickcount, it acts like it the search param has a space at the end and finds nothing. It has nothing to do with XP. That's just how HTML Help search works. Merging #185 wil...
by lexikos
17 Oct 2017, 00:53
Forum: Scripts and Functions
Topic: ActiveScript - Host VBScript and JScript in-process
Replies: 29
Views: 7795

Re: ActiveScript - Host VBScript and JScript in-process

While typing this I had an idea of trying Comdispatch0, there has to be a reason for it's existance right? Yes. It removes the need to define the object's interface. But they are both obsolete. Just pass the object directly to AddObject. ComObject := ComDispatch0(Object) - not needed in AutoHotkey ...
by lexikos
02 Sep 2017, 17:29
Forum: AutoHotkey v2 Development
Topic: [ERROR] SetTimer("LABEL", ...)
Replies: 6
Views: 368

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: 378

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: 378

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: 378

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: 505

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: 197

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: 477

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: 505

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: 120

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: 118

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: 156

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: 155

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 {...

Go to advanced search