Search found 671 matches
- 11 Jun 2023, 09:50
- Forum: Scripts and Functions (v1)
- Topic: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick buttons
- Replies: 113
- Views: 48296
Re: TapHoldManager - Long Press / Multi Tap / Multi Tap and Hold / Any number of Taps / Multi-Keyboard / Joystick button
Yeah and make a repository on Github. Thanks for this.
- 07 Jun 2023, 13:57
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 389
- Views: 61176
Re: UIA v2
Today I'm getting the following error and all my scripts that use UIA Browser: Warning: This variable appears to never be assigned a value. Specifically: global UIA_Browser I start all my scripts like this: #SingleInstance Force #Requires Autohotkey v2.0+ #Include <UIA> #Include <UIA_Browser> Run "h...
- 05 Jun 2023, 08:25
- Forum: Ask for Help (v1)
- Topic: AHK to run PowerShell command Topic is solved
- Replies: 8
- Views: 19992
Re: AHK to run PowerShell command Topic is solved
Where can I see a list of options like -NoExit and -Command?
- 01 Jun 2023, 06:29
- Forum: Ask for Help (v1)
- Topic: Can somebody tell me how could i automate anything on this program ( virtual midi keyboard ) ?
- Replies: 10
- Views: 977
Re: Can somebody tell me how could i automate anything on this program ( virtual midi keyboard ) ?
I've got no idea. It works fine for me. Are you sure if you have both complete scripts? If you do then I guess you just have to ask @Descolada.
- 01 Jun 2023, 04:26
- Forum: Ask for Help (v1)
- Topic: Can somebody tell me how could i automate anything on this program ( virtual midi keyboard ) ?
- Replies: 10
- Views: 977
Re: Can somebody tell me how could i automate anything on this program ( virtual midi keyboard ) ?
Installing Autohotkey created a folder in "C:\Documents". In that folder I have two other folders called Lib and Scripts. UIA is in Lib and UIAViewer in Scripts. In a script, I can call the library using #Include <UIA_Interface>.
Does this answer your question?
Does this answer your question?
- 31 May 2023, 06:26
- Forum: Ask for Help (v1)
- Topic: Can somebody tell me how could i automate anything on this program ( virtual midi keyboard ) ?
- Replies: 10
- Views: 977
- 29 May 2023, 15:00
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 389
- Views: 61176
Re: UIA v2
The error showed after reloading and using then using a hotkey. Here it is:
Here's a related one that got later:
Here's a related one that got later:
- 29 May 2023, 14:22
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 389
- Views: 61176
Re: UIA v2
There is a glitch in UIA Browser, at least with ElementFromPath where you can't just make a single-line hotkey with script, or else an error will read that the veritable has not been assigned a value, you must first add braces. You can then run the script and afterwards delete the braces to put the ...
- 28 May 2023, 18:07
- Forum: Ask for Help (v2)
- Topic: Right clicking on mouse position Topic is solved
- Replies: 2
- Views: 303
Right clicking on mouse position Topic is solved
In Edge, using Autohotkey to press the Appskey shows a context menu in the upper left. I'm trying to right-click at the cursor, but it doesn't work:
Code: Select all
z::{
MouseGetPos &xpos, &ypos ; Gets mouse position
Click &xpos, &ypos, "Right" ; clicks right mouse button
}
- 23 May 2023, 20:27
- Forum: Ask for Help (v1)
- Topic: how to get a window of a app and make my pc announce that Topic is solved
- Replies: 23
- Views: 2876
Re: how to get a window of a app and make my pc announce that Topic is solved
#SingleInstance Force Global oVoice := ComObjCreate("SAPI.SpVoice"), voices := oVoice.GetVoices() ; Array of voices For voice in voices { ; Loop through each voice ToolTip, % "Voice #" A_Index ": " voice.GetDescription() speak("Hi turky, how are you today?", VOICENUMBER := 1, RATE := 2) ; Speak in ...
- 23 May 2023, 16:15
- Forum: Ask for Help (v1)
- Topic: how to get a window of a app and make my pc announce that Topic is solved
- Replies: 23
- Views: 2876
Re: how to get a window of a app and make my pc announce that Topic is solved
@mikeyww I replacedA_Index in line 5 with 1 and deleted lines 8 and 9. Why is the phrase repeated and can you make a variable so that I can write the phrase below the script?
- 19 May 2023, 10:43
- Forum: Scripts and Functions (v2)
- Topic: Acc v2
- Replies: 54
- Views: 14851
- 19 May 2023, 10:12
- Forum: Scripts and Functions (v2)
- Topic: Acc v2
- Replies: 54
- Views: 14851
Re: Acc v2
@neogna2, ... I implemented your AccGetPath as Element.GetPath, which also checks that the path is valid and if not then uses FindFirst (the top-down approach) to get the correct path. If no path is found then an empty string is returned. Usage: Acc.ObjectFromWindow("A").GetPath(Acc.ObjectFromPoint...
- 18 May 2023, 13:33
- Forum: Ask for Help (v2)
- Topic: Basic UIA tasks
- Replies: 55
- Views: 5873
Re: Basic UIA tasks
Can you use If and else ? Please give me an example. I found the following lines of code in an example and thought that this would be more useful: if cUIA.ElementFromPath("Y/YYY/YqYYYYVRRRqRyIJ").Click() ; Not part of this demonstration try explorerEl.FindElement({T:0,N:"Minimize the Ribbon"}).Invok...
- 17 May 2023, 10:09
- Forum: Ask for Help (v1)
- Topic: how to get a window of a app and make my pc announce that Topic is solved
- Replies: 23
- Views: 2876
Re: how to get a window of a app and make my pc announce that Topic is solved
I downloaded more voices in Windows 11 @ Settings > Accessibility > Narrator > Add natural voices . Why wouldn't the extra voices be in the index for A-Index and do you know if there's a way to use the voices with autohotkey? #SingleInstance Force Global oVoice := ComObjCreate("SAPI.SpVoice"), voice...
- 16 May 2023, 19:34
- Forum: Ask for Help (v2)
- Topic: How can I toggle if I want my hotkeys to use a modifier?
- Replies: 20
- Views: 1713
Re: How can I toggle if I want my hotkeys to use a modifier?
I never knew what was the purpose of a closing #HotIf, or #tIf, since the result is the same. Can you tell me what they are for?
- 16 May 2023, 17:24
- Forum: Ask for Help (v2)
- Topic: How can I toggle if I want my hotkeys to use a modifier?
- Replies: 20
- Views: 1713
Re: How can I toggle if I want my hotkeys to use a modifier?
Thanks, the only problem is that this will only work if the modifier accompanies a hotkey. Is it possible to use a modifier as a hotkey?
- 16 May 2023, 13:58
- Forum: Ask for Help (v2)
- Topic: How can I toggle if I want my hotkeys to use a modifier?
- Replies: 20
- Views: 1713
Re: How can I toggle if I want my hotkeys to use a modifier?
I tried a script that I converted to v2 and is supposed to do the same thing as the script about: #SingleInstance Force #Requires Autohotkey v2.0+ #NoTrayIcon $^::Toggle := !Toggle #HotIf Toggle PgUp::Home PgDn::End Home::PgUp End::PgDn #HotIf I got this: TEST_2.ahk 16_05_23 02⦂52⦂32⦂987 PM.jpg
- 11 May 2023, 12:54
- Forum: Ask for Help (v2)
- Topic: Basic UIA tasks
- Replies: 55
- Views: 5873
Re: Basic UIA tasks
I can't get the hotkey to work: if not A_IsAdmin Run("*RunAs `"" A_ScriptFullPath "`" /restart") If WinExist("ahk_exe Brother iPrintScan.exe"){ WinActivate() }Else { run("C:\Program Files (x86)\Brother\iPrint&Scan\Brother iPrint&Scan.exe") } Sleep(3000) iPSEl := UIA.ElementFromHandle("ahk_exe Brothe...
- 11 May 2023, 11:33
- Forum: Ask for Help (v2)
- Topic: I want help using autohotkey with Brother iPrint&Scan. Topic is solved
- Replies: 3
- Views: 293
Re: I want help using autohotkey with Brother iPrint&Scan. Topic is solved
Perhaps you know why the UIA won won't accept iP&SEl := UIA.ElementFromHandle("ahk_exe iPrint&Scan.exe").