Search found 335 matches

by lmstearn
29 Oct 2020, 08:51
Forum: Wish List
Topic: Extra functionality for Timeouts and Threads
Replies: 1
Views: 149

Re: Extra functionality for Timeouts and Threads

I've been having some issues with my script not responding to hotkeys anymore. It seems like the system stops calling the script's keyboard hook. Having some Callbacks that are often fired and dynamic hotkey assignments that could prevent execution of #If Execution it is not evident where I need to...
by lmstearn
16 Oct 2020, 09:43
Forum: Editors
Topic: Setup Notepad++ for AutoHotkey
Replies: 135
Views: 319594

Re: Setup Notepad++ for AutoHotkey

There's something about the N++ file handling that can go off- particularly if it is active or launched when the internet is out or you change device or after it updates, the styles are not honoured in the gui. Been happening for yonks. Tonight, I opened it after some hiatus, and all the styles and ...
by lmstearn
24 Sep 2020, 09:47
Forum: Ask For Help
Topic: How to filter out special charecters in a string
Replies: 2
Views: 179

Re: How to filter out special charecters in a string

Regexreplace explains that- just use the backslash to escape. :)
by lmstearn
02 Aug 2020, 08:37
Forum: Offtopic
Topic: Thank you for the music
Replies: 198
Views: 110690

Re: Thank you for the music

by lmstearn
27 Jun 2020, 02:03
Forum: Offtopic
Topic: Thank you for the music
Replies: 198
Views: 110690

Re: Thank you for the music

Just ... RELAX

by lmstearn
01 Jun 2020, 00:55
Forum: Ask For Help
Topic: Help me understand ComObject()
Replies: 16
Views: 2281

Re: Help me understand ComObject()

Missed the remarks section, sorry. Given that, all the possible alternatives should be explicitly listed in (the header area of, if not, at least in bold or code ) the docs for ComObjActive , or else there would be no reason to suppose why any random functions Foo like ComObjFoo won't work. Googling...
by lmstearn
31 May 2020, 10:29
Forum: Ask For Help
Topic: Help me understand ComObject()
Replies: 16
Views: 2281

Re: Help me understand ComObject()

Just for the record, it can be inferred from @JustMe's code snippet that ComObj() appears to be a functional, but (to-date) undocumented equivalent to ComObject().
by lmstearn
28 May 2020, 06:09
Forum: General Discussion
Topic: ComObjType: Are the Fields Blank for your Object?
Replies: 3
Views: 733

Re: ComObjType: Are the Fields Blank for your Object?

Cripes- What happened there? :wtf: :facepalm: Here's the output from the above list with the fields from the corrected code: Edit: Another error with CLSID corrected- see post below: "Shell.Application" Variant type: 9 Interface name: IShellDispatch6 Interface ID: {286E6F1B-7113-4355-9562-96B7E9D64C...
by lmstearn
28 May 2020, 01:29
Forum: Ask For Help
Topic: Custom Window Frame Using DWM/Aero
Replies: 6
Views: 570

Re: Custom Window Frame Using DWM/Aero

Just a couple of general things, (sorry, don't use V2): The only way out of the tangle is to check and report the returns of all the DLLCalls, and employ a debugger . Have you defined GET_X_LPARAM and GET_Y_LPARAM ? The wndproc looks a little odd- e.g. is there ever a case when fCallDWP is not true?...
by lmstearn
27 May 2020, 09:25
Forum: Ask For Help
Topic: Custom Window Frame Using DWM/Aero
Replies: 6
Views: 570

Re: Custom Window Frame Using DWM/Aero

Hi F4Jonatas , not much I can add here- @Helgef's code has the three rectangles as described in MSDN : When the window procedure receives the WM_NCCALCSIZE message, the first rectangle contains the new coordinates of a window that has been moved or resized, that is, it is the proposed new window coo...
by lmstearn
26 May 2020, 05:20
Forum: General Discussion
Topic: ComObjType: Are the Fields Blank for your Object?
Replies: 3
Views: 733

ComObjType: Are the Fields Blank for your Object?

Running this code from the docs for ComObjType : X := ComObjCreate("Test_COM_Object") VarType := ComObjType(obj) IName := ComObjType(obj, "Name") IID := ComObjType(obj, "IID") CName := ComObjType(obj, "Class") ; Requires [v1.1.26+] CLSID := ComObjType(obj, "CLSID") ; Requires [v1.1.26+] MsgBox % "Va...
by lmstearn
26 May 2020, 04:08
Forum: Ask For Help
Topic: Open Context Menu (Function) Topic is solved
Replies: 21
Views: 3171

Re: Open Context Menu (Function) Topic is solved

Yep, that worked! :thumbup:
Didn't twig the menu was thread dependent, regardless of how the script was launched. :facepalm:
by lmstearn
25 May 2020, 23:49
Forum: Ask For Help
Topic: Open Context Menu (Function) Topic is solved
Replies: 21
Views: 3171

Re: Open Context Menu (Function) Topic is solved

Hi @F4Jonatas glad you found me. :)
Properties works for you then? Could you post the code with the calling function? e.g. with A_ScriptFullPath? Thanks.
by lmstearn
25 May 2020, 10:22
Forum: Suggestions on documentation improvements
Topic: Internet Explorer for Script
Replies: 1
Views: 495

Internet Explorer for Script

Code in ComObjCreate : ie := ComObjCreate("InternetExplorer.Application") ie.Visible := true ; This is known to work incorrectly on IE7. ie.Navigate("https://www.autohotkey.com/") --------------------------- test.ahk --------------------------- Error: 0x800401F3 - Invalid class string Line# ---> 001...
by lmstearn
25 May 2020, 00:18
Forum: Ask For Help
Topic: Open Context Menu (Function) Topic is solved
Replies: 21
Views: 3171

Re: Open Context Menu (Function) Topic is solved

As a matter of interest, all the menu functions in @F4Jonatas's modification work on this machine except for the dialog of the properties item at the bottom of the list. (User_as_Admin related?) Hi @Teadrinker- have you tried @F4Jonatas's modification? All the items on the menu generated by the scr...
by lmstearn
24 May 2020, 06:52
Forum: Ask For Help
Topic: Open Context Menu (Function) Topic is solved
Replies: 21
Views: 3171

Re: Open Context Menu (Function) Topic is solved

Thanks for the info, hwnd has a value, will test the other functions later.
by lmstearn
24 May 2020, 01:48
Forum: Ask For Help
Topic: Open Context Menu (Function) Topic is solved
Replies: 21
Views: 3171

Re: Open Context Menu (Function) Topic is solved

Sorry, about the delay getting back, thanks for the responses. @Malcev: Very interesting approach, however, nothing here. The last two functions produce a blank for FoundElement on Win10. msgbox % " NumGet(IUIAutomation+0) " NumGet(IUIAutomation+0) " NumGet(element+0) " NumGet(element+0) " NumGet(Fo...
by lmstearn
14 May 2020, 11:52
Forum: Ask For Help
Topic: Open Context Menu (Function) Topic is solved
Replies: 21
Views: 3171

Re: Open Context Menu (Function) Topic is solved

As a matter of interest, all the menu functions in @F4Jonatas's modification work on this machine except for the dialog of the properties item at the bottom of the list. (User_as_Admin related?)
by lmstearn
14 May 2020, 08:10
Forum: Forum Issues
Topic: error message when accepting answer on forum
Replies: 4
Views: 1887

Re: error message when accepting answer on forum

This also comes up when using the search box in the archived forums. Was working last year at least.
by lmstearn
09 May 2020, 09:19
Forum: Ask For Help
Topic: How to get error line code to exit code process
Replies: 15
Views: 993

Re: How to get error line code to exit code process

Hi @ankord, welcome to AHK! :)
The output of the AHK script could be processed through #ErrorStdOut to file- an elegant way of handling the output might be in sharing a named pipe, there's an old thread that can get you started, while for C#, there's this SO thread.

Go to advanced search