Search found 591 matches
- 20 Apr 2024, 05:39
- Forum: General Discussion
- Topic: pre-install question
- Replies: 3
- Views: 99
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 ...
- 17 Apr 2024, 16:03
- Forum: Ask for Help (v2)
- Topic: Matching data on the clipboard with RegExMatch Topic is solved
- Replies: 2
- Views: 79
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
- 07 Apr 2024, 05:27
- Forum: Bug Reports
- Topic: SetTitleMatchMode Regex + i) option failing
- Replies: 11
- Views: 233
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...
- 06 Apr 2024, 17:22
- Forum: Ask for Help (v2)
- Topic: Can I use both v1 and v2 without installing either?
- Replies: 14
- Views: 374
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, ...
- 06 Apr 2024, 11:20
- Forum: Ask for Help (v2)
- Topic: Can I use both v1 and v2 without installing either?
- Replies: 14
- Views: 374
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...
- 17 Mar 2024, 05:51
- Forum: Bug Reports
- Topic: Gui Edit text flickering issue
- Replies: 10
- Views: 427
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...
- 17 Mar 2024, 03:54
- Forum: Bug Reports
- Topic: Gui Edit text flickering issue
- Replies: 10
- Views: 427
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 ...
- 15 Mar 2024, 07:17
- Forum: Bug Reports
- Topic: Gui Edit text flickering issue
- Replies: 10
- Views: 427
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...
- 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: 128
Re: Does the interpreter named 'AutoHotkey.exe' now have unicode support? Topic is solved
https://www.autohotkey.com/docs/v2/Program.htm#Installer_uiAccessGary-Atlan82 wrote: ↑14 Mar 2024, 12:24But then I am wondering what are the other executables for? Isnt the "U" in "AutoHotkey64_UIA.exe" for "Unicode"?
- 14 Mar 2024, 15:40
- Forum: Bug Reports
- Topic: Gui Edit text flickering issue
- Replies: 10
- Views: 427
Re: Gui Edit text flickering issue
I see it too. But it goes away if we also set MyGui.Opt("+E0x02000000") ; WS_EX_COMPOSITED
- 13 Mar 2024, 03:19
- Forum: Ask for Help (v2)
- Topic: Unreliable GetKeyState physical state detection (false positives) Topic is solved
- Replies: 14
- Views: 570
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...
- 11 Mar 2024, 17:43
- Forum: Ask for Help (v2)
- Topic: how to use class RemoteBuffer? Topic is solved
- Replies: 6
- Views: 252
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:...
- 11 Mar 2024, 14:09
- Forum: Ask for Help (v2)
- Topic: how to use class RemoteBuffer? Topic is solved
- Replies: 6
- Views: 252
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...
- 22 Feb 2024, 03:28
- Forum: Ask for Help (v2)
- Topic: run non-elevated script from elevated script
- Replies: 5
- Views: 203
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
< 100 posts = noob
> 100 posts = non-noob
lexikos = lexikos
- 20 Feb 2024, 05:04
- Forum: Ask for Help (v2)
- Topic: run non-elevated script from elevated script
- Replies: 5
- Views: 203
Re: run non-elevated script from elevated script
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
- 15 Feb 2024, 17:41
- Forum: Suggestions on Documentation Improvements
- Topic: issue AutoHotkey.chm from v2.0.11 Topic is solved
- Replies: 2
- Views: 165
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...
- 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: 317
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 ...
- 07 Feb 2024, 16:28
- Forum: Scripts and Functions (v2)
- Topic: WebView2
- Replies: 139
- Views: 34359
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...
- 24 Jan 2024, 07:48
- Forum: Ask for Help (v2)
- Topic: Shortest way to define a 2D Map
- Replies: 8
- Views: 523
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...
- 15 Jan 2024, 19:35
- Forum: Tutorials (v2)
- Topic: Communicating between scripts (IPC, inter-process communication)
- Replies: 9
- Views: 2027
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 ...