Search found 590 matches

by neogna2
Yesterday, 16:03
Forum: Ask for Help (v2)
Topic: Matching data on the clipboard with RegExMatch Topic is solved
Replies: 2
Views: 49

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
Replies: 11
Views: 207

Re: SetTitleMatchMode Regex + i) option failing

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: 13
Views: 312

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: 13
Views: 312

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

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

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

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

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

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

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

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

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...
by neogna2
22 Feb 2024, 03:28
Forum: Ask for Help (v2)
Topic: run non-elevated script from elevated script
Replies: 5
Views: 199

Re: run non-elevated script from elevated script

Maybe, but does make you non-noob. There are three levels:
< 100 posts = noob
> 100 posts = non-noob
lexikos = lexikos
by neogna2
20 Feb 2024, 05:04
Forum: Ask for Help (v2)
Topic: run non-elevated script from elevated script
Replies: 5
Views: 199

Re: run non-elevated script from elevated script

robinson wrote:
19 Feb 2024, 13:00
Hi, noob here.
You've made 180 posts to the forum. Hardly a noob so maybe time to drop that sentence? :)

One option is to use RunAs
https://www.autohotkey.com/docs/v2/lib/RunAs.htm
by neogna2
15 Feb 2024, 17:41
Forum: Suggestions on Documentation Improvements
Topic: issue AutoHotkey.chm from v2.0.11 Topic is solved
Replies: 2
Views: 100

issue AutoHotkey.chm from v2.0.11 Topic is solved

(The following is tested with the portable .zip releases, but I guess it applies equally to the AutoHotkey.chm from the .exe releases.) With the AutoHotkey.chm from release v2.0.10 and earlier we could directly open a help topic with syntax like this Run hh.exe "ms-its:C:\Program Files\AutoHotkey\Au...
by neogna2
11 Feb 2024, 05:54
Forum: Ask for Help (v2)
Topic: Combining the Run command with parameters and variables Topic is solved
Replies: 7
Views: 305

Re: Combining the Run command with parameters and variables Topic is solved

Sometimes it can help the eye to use a variable for the doublequote character. Compare RunWait 'winrar x "' OriginalFolder '\*.rar' '" "' DestinationFolder '"' to _ := '"' RunWait 'winrar x ' _ OriginalFolder '\*.rar' _ ' ' _ DestinationFolder _ You can also add meaningless spaces to make the pairs ...
by neogna2
07 Feb 2024, 16:28
Forum: Scripts and Functions (v2)
Topic: WebView2
Replies: 139
Views: 34120

Re: WebView2

thqby, at WebView2.ahk#L7 you have a comment that targets a WebView2 package version, currently it says "@webview2version 1.0.2151.40". Should that be interpreted as "use this or more recent version" or "use exactly this version"? In other words, could there be some incompatibility or other issue wi...
by neogna2
24 Jan 2024, 07:48
Forum: Ask for Help (v2)
Topic: Shortest way to define a 2D Map
Replies: 8
Views: 512

Re: Shortest way to define a 2D Map

You can use a shorter alias for the Map class class _ extends Map { } mGrid := _(1,_(1,1, 2,2, 3,3), 2,_(1,4, 2,5, 3,6), 3,_(1,7, 2,8, 3,9)) MsgBox mGrid[2][3] ;6 I don't know any built in way shorter than that. One reason lexikos hasn't added one may be that the characters [ and { and ( and < alrea...
by neogna2
15 Jan 2024, 19:35
Forum: Tutorials (v2)
Topic: Communicating between scripts (IPC, inter-process communication)
Replies: 9
Views: 1945

Re: Communicating between scripts (IPC, inter-process communication)

Great tutorial! One script can create a hidden GUI with a title that is unique and known to the other script. Both scripts can read and change the contents of one or more Text controls. A variant of that is to read/write text from/to the title of a script's auto-created hidden window - no extra GUI ...
by neogna2
09 Jan 2024, 17:12
Forum: Scripts and Functions (v2)
Topic: Snipper - Window Snipping Tool
Replies: 125
Views: 26558

Re: Snipper - Window Snipping Tool

Kind of sad there is not a rock solid Gdip v2 out there. I have searched and every one I have found has numerous conversion bugs. It is one reason I created the class of select Gdip functions used in Snipper. Maybe the most recently updated version of v2 gdip_all.ahk is this one (updated 5 months a...

Go to advanced search