Search found 598 matches

by neogna2
Today, 02:22
Forum: Bug Reports
Topic: Access Is Denied for WinGetProcessName in V2 EXE
Replies: 17
Views: 1324

Re: Access Is Denied for WinGetProcessName in V2 EXE

Thank you Yincognito for this topic, which generated good discussion and useful v2 code :)

I suggest a mod moves it to Wish List or Ask for Help and marks just me's WTS_GetProcessNames post as solution.
by neogna2
14 May 2024, 03:45
Forum: Bug Reports
Topic: Access Is Denied for WinGetProcessName in V2 EXE
Replies: 17
Views: 1324

Re: Access Is Denied for WinGetProcessName in V2 EXE

Thanks for the solutions just me The WTSEnumProcesses function got stuck at the WTSFreeMemory step for me. This seems to fix the issue WPI_original := WPI Loop Cnt { ProcMap[NumGet(WPI, 4, "UInt")] := StrGet(NumGet(WPI + 8, "UPtr")) WPI += SizeOfWPI } DllCall("Wtsapi32.dll\WTSFreeMemory", "Ptr", WPI...
by neogna2
09 May 2024, 10:28
Forum: Bug Reports
Topic: Access Is Denied for WinGetProcessName in V2 EXE
Replies: 17
Views: 1324

Re: Access Is Denied for WinGetProcessName in V2 EXE

Yeah ok, so maybe move to Wish List (wish to use whatever method AutoIt uses to get those process names) or Ask For Help.
by neogna2
09 May 2024, 02:59
Forum: Bug Reports
Topic: Access Is Denied for WinGetProcessName in V2 EXE
Replies: 17
Views: 1324

Re: Access Is Denied for WinGetProcessName in V2 EXE

Ok, then this trimmed down code can reproduce the issue DetectHiddenWindows(1) sError := "" for wHan in WinGetList() { WTit := WinGetTitle(wHan) WCla := WinGetClass(wHan) WSty := WinGetStyle(wHan) wSta := !!WinExist(wHan) . "`t" . !!(wSty & 0x10000000) . "`t" . !(wSty & 0x8000000) . "`t" . !!WinActi...
by neogna2
08 May 2024, 15:07
Forum: Bug Reports
Topic: Access Is Denied for WinGetProcessName in V2 EXE
Replies: 17
Views: 1324

Re: Access Is Denied for WinGetProcessName in V2 EXE

Does the error only happen when you run the script as a compiled .exe or does it also happen when you run the .ahk directly? If you run only the inner loop part of the script starting at wLis := WinGetList() do you still get the error? You can use Try and Catch to get some other information about th...
by neogna2
06 May 2024, 06:20
Forum: Wish List
Topic: Notify if not UTF-8? -- [Update: Not possible, me thinks]
Replies: 15
Views: 1110

Re: Notify if not UTF-8? -- [Update: Not possible, me thinks]

It seems like lots of folks have run into the problem of not having their ahk files encoded as UTF-8. Recently? In this forum or elsewhere? Asking since I haven't noticed such folks here recently. Here's a related 2023 discussion on if UTF-8 BOM should be adviced in the v2 doc FAQ https://www.autoh...
by neogna2
20 Apr 2024, 05:39
Forum: General Discussion
Topic: pre-install question
Replies: 3
Views: 232

Re: pre-install question

Can anyone suggest an existing script that does some of these actions that I can look at ? Easiest case would be if the footswitch sends a keyboard key and the amp software either has configurable hotkeys for the volume knob or the knob is a control that ControlSend recognizes. It could then be as ...
by neogna2
17 Apr 2024, 16:03
Forum: Ask for Help (v2)
Topic: Matching data on the clipboard with RegExMatch Topic is solved
Replies: 2
Views: 127

Re: Matching data on the clipboard with RegExMatch Topic is solved

I may be missing something but it sounds like you could just do this?

Code: Select all

if RegExMatch(A_Clipboard, 's)<d:Case_x0020__x0023_>(.+?)</d:Case_x0020__x0023_>', &CaseNum)
    return CaseNum
else
    ; do somethings else
by neogna2
07 Apr 2024, 05:27
Forum: Bug Reports
Topic: SetTitleMatchMode Regex + i) option failing Topic is solved
Replies: 13
Views: 706

Re: SetTitleMatchMode Regex + i) option failing Topic is solved

I think just me is right, see https://www.autohotkey.com/docs/v2/lib/SetTitleMatchMode.htm#Parameters and even this one: Msgbox WinExist("i) ahk_class AutoHotkey.*") ; notice the space after the option There i) is ignored but the function finds and returns a Hwnd anyway because the case in AutoHotke...
by neogna2
06 Apr 2024, 17:22
Forum: Ask for Help (v2)
Topic: Can I use both v1 and v2 without installing either?
Replies: 14
Views: 527

Re: Can I use both v1 and v2 without installing either?

I was going to suggest a launcher that can detect whether the script code is v1 or v2, and run the appropriate version automatically. I wrote the suggestion below, but then decided to test to see if there is a more direct method. I launched some scripts by double clicking on them, and sure enough, ...
by neogna2
06 Apr 2024, 11:20
Forum: Ask for Help (v2)
Topic: Can I use both v1 and v2 without installing either?
Replies: 14
Views: 527

Re: Can I use both v1 and v2 without installing either?

Yes you can use both without installing. Get the v1.1 and v2 zip versions . Unpack and then drag and drop a script file on the v1.1 or v2 .exe (or a shortcut to the .exe) to run the script. if I don't install it and just let it run "on top of" existing apps & websites without changing my PC (registr...
by neogna2
17 Mar 2024, 05:51
Forum: Bug Reports
Topic: Gui Edit text flickering issue
Replies: 10
Views: 526

Re: Gui Edit text flickering issue

One more observation. With this code MyGui := Gui("+E0x02000000") ; WS_EX_COMPOSITED Edit1 := MyGui.AddEdit("w200 h100", "Sample Text 1`nSample Text 1") MyGui.AddEdit("wp hp", "Sample Text 2`nSample Text 2") MyGui.AddText(, "Press F1 to FileSelect") MyGui.OnEvent("Close", (*) => ExitApp()) MyGui.Add...
by neogna2
17 Mar 2024, 03:54
Forum: Bug Reports
Topic: Gui Edit text flickering issue
Replies: 10
Views: 526

Re: Gui Edit text flickering issue

I meant that the first edit control text becomes unintentionally selected when the FileSelect window is opened and closed. It seems like that you have seen the same thing. Yeah I see now, apologies I misread earlier. I wonder what explains that with WS_EX_COMPOSITED the text selection happens when ...
by neogna2
15 Mar 2024, 07:17
Forum: Bug Reports
Topic: Gui Edit text flickering issue
Replies: 10
Views: 526

Re: Gui Edit text flickering issue

If I open the FileSelect by pressing the "F1" key and then close it, while the 1st edit control is focused and its text is not selected, the text in the 1st edit control is automatically selected. no such problem happens in the 2nd edit control. I think this is a minor issue but it's weird. Puzzlin...
by neogna2
14 Mar 2024, 15:46
Forum: Ask for Help (v2)
Topic: Does the interpreter named 'AutoHotkey.exe' now have unicode support? Topic is solved
Replies: 4
Views: 175

Re: Does the interpreter named 'AutoHotkey.exe' now have unicode support? Topic is solved

Gary-Atlan82 wrote:
14 Mar 2024, 12:24
But then I am wondering what are the other executables for? Isnt the "U" in "AutoHotkey64_UIA.exe" for "Unicode"?
https://www.autohotkey.com/docs/v2/Program.htm#Installer_uiAccess
by neogna2
14 Mar 2024, 15:40
Forum: Bug Reports
Topic: Gui Edit text flickering issue
Replies: 10
Views: 526

Re: Gui Edit text flickering issue

I see it too. But it goes away if we also set MyGui.Opt("+E0x02000000") ; WS_EX_COMPOSITED
by neogna2
13 Mar 2024, 03:19
Forum: Ask for Help (v2)
Topic: Unreliable GetKeyState physical state detection (false positives) Topic is solved
Replies: 14
Views: 686

Re: Unreliable GetKeyState physical state detection (false positives) Topic is solved

The OS provides no way to retrieve "physical" state, so AutoHotkey tracks it with the keyboard hook. (Note: brainstorm that veers from the thread's narrow topic. A context for this brainstorm is eugenesv's work on AutoHotkey home row modifiers ) I wonder about what other ways AutoHotkey is constrai...
by neogna2
11 Mar 2024, 17:43
Forum: Ask for Help (v2)
Topic: how to use class RemoteBuffer? Topic is solved
Replies: 6
Views: 288

Re: how to use class RemoteBuffer? Topic is solved

Try this MyText := "hello world" ;SciTE4AutoHotkey v3.1.0 uses Scintilla version <= 5.2.2 with control name 'Scintilla1' hSci := ControlGetHwnd('Scintilla1', 'ahk_class SciTEWindow') Sci_ReplaceSel(hSci, MyText) ;https://www.scintilla.org/ScintillaDoc.html#SCI_REPLACESEL ;Scintilla v5.2.2 doc https:...
by neogna2
11 Mar 2024, 14:09
Forum: Ask for Help (v2)
Topic: how to use class RemoteBuffer? Topic is solved
Replies: 6
Views: 288

Re: how to use class RemoteBuffer? Topic is solved

I guess cgx5871 means that in the OP code box (edit: some of) the lines above class RemoteBuffer are v1 code and the goal is to get them working with the v2 class, which I think he copied from the earlier September 2023 thread https://www.autohotkey.com/boards/viewtopic.php?f=82&t=121044 @cgx5871 yo...

Go to advanced search