Search found 91 matches

by gongnl
Yesterday, 06:46
Forum: Ask for Help (v2)
Topic: how to auto-hide a gui when the gui window is inactive? thanks Topic is solved
Replies: 12
Views: 297

Re: how to auto-hide a gui when the gui window is inactive? thanks Topic is solved

After replacing the F3 hotkey of G1.show with space & s, I can't use the space bar to select the listview list item, please help me to solve it, thanks! #Requires AutoHotkey v2.0 Items := ["aaa", "bbb", "ccc", "ddd", "eee"] G1 := Gui( , "Test") G1LV1 := g1.AddListView("-Hdr", ["11", "22222222222"]) ...
by gongnl
26 Mar 2024, 20:25
Forum: Ask for Help (v2)
Topic: how to auto-hide a gui when the gui window is inactive? thanks Topic is solved
Replies: 12
Views: 297

Re: how to auto-hide a gui when the gui window is inactive? thanks Topic is solved

Thanks for all the help! I modified the script above and tried to select the listview item by pressing the spacebar, it failed, I don't know how to do it in LV_ItemFocus. #Requires AutoHotkey v2.0 txt := ['aaa', 'bbb', 'ccc', 'ddd', 'eee'] g := Gui(, 'Test') g.SetFont 's10' LV := g.AddListView('-Hdr...
by gongnl
24 Mar 2024, 23:07
Forum: Ask for Help (v1)
Topic: how to automatically close the gui window and exit app when it loses focus Topic is solved
Replies: 3
Views: 68

Re: how to automatically close the gui window and exit app when it loses focus Topic is solved

Thank you very much! The above script is incomplete. when using Exitapp,msgBox can not work. #Requires AutoHotkey v1.1.33 #SingleInstance force item := ["AAA","BBB","CCC","DDD","EEE"] ; Menu items Gui, -SysMenu AlwaysOnTop Gui Add, ListView,vLV -Hdr, 11|22222222222 Gui Add, Button, xm ym Hidden Defa...
by gongnl
24 Mar 2024, 22:04
Forum: Ask for Help (v1)
Topic: how to automatically close the gui window and exit app when it loses focus Topic is solved
Replies: 3
Views: 68

how to automatically close the gui window and exit app when it loses focus Topic is solved

how to automatically close the gui window and exitapp when it loses focus? thanks The following ahk script only hides the gui window,but the process is still running in the background. #Requires AutoHotkey v1.1.33 #SingleInstance force item := ["AAA","BBB","CCC","DDD","EEE"] ; Menu items Gui, -SysMe...
by gongnl
20 Mar 2024, 21:32
Forum: Ask for Help (v2)
Topic: how to auto-hide a gui when the gui window is inactive? thanks Topic is solved
Replies: 12
Views: 297

Re: how to auto-hide a gui when the gui window is inactive? thanks Topic is solved

in v1 I could press the digital keystrokes(1-9) to select the the corresponding item in the gLabel of the Listview.But i am having trouble translating this to the Listview of V2.how to detect digital keystrokes in a Listview control of v2?thanks #Requires AutoHotkey v1.1.33 #SingleInstance force ite...
by gongnl
19 Mar 2024, 07:40
Forum: Ask for Help (v2)
Topic: how to auto-hide a gui when the gui window is inactive? thanks Topic is solved
Replies: 12
Views: 297

Re: how to auto-hide a gui when the gui window is inactive? thanks Topic is solved

thank for your help,the code very nice! The following script to press F3 twice to re-show gui window,don't know what went wrong? #Requires AutoHotkey v2.0 g := Gui() g.AddText 'w230', 'Test' showgui() return F3::showgui() showgui() { g.show OnMessage(0x86,ListviewGuiLostFocus) return } ListviewGuiLo...
by gongnl
18 Mar 2024, 22:35
Forum: Ask for Help (v2)
Topic: how to auto-hide a gui when the gui window is inactive? thanks Topic is solved
Replies: 12
Views: 297

how to auto-hide a gui when the gui window is inactive? thanks Topic is solved

how to auto-hide a gui when the gui window is inactive? thanks #Requires Autohotkey v2.0 #SingleInstance force item := ["aaa","bbb","ccc"] ; Menu items myGui := Gui() myGui.OnEvent("Escape", GuiEscape) myGui.OnEvent("Close", GuiEscape) myGui.SetFont("s12") ogcListViewLV := myGui.Add("ListView", "vLV...
by gongnl
19 Oct 2023, 18:08
Forum: Ask for Help (v2)
Topic: how to set ctrl+c+c as a hotkey? Thank you Topic is solved
Replies: 10
Views: 928

Re: how to set ctrl+c+c as a hotkey? Thank you Topic is solved

Thank you very much for your help, your code is modified slightly and works perfectly. LCtrl & v:: KeyWait, v KeyWait, v, d T.25 ; wait 250ms total if ErrorLevel ; if timed out Send ^v ; send keystrokes for paste else ; if v is double tapped Send a ; do this, change me return
by gongnl
19 Oct 2023, 00:10
Forum: Ask for Help (v2)
Topic: how to set ctrl+c+c as a hotkey? Thank you Topic is solved
Replies: 10
Views: 928

Re: how to set ctrl+c+c as a hotkey? Thank you Topic is solved

I'm rusty at v1, haven't had it installed in about a year or so. But I believe this will work: LCtrl & v:: if !(KeyWait, v, T0.125) or !(KeyWait, v, d T0.125) ; wait 250ms total, if v is not pressed again Send ^v ; send keystrokes for paste else ; if v is double tapped Send a ; do this, change me r...
by gongnl
18 Oct 2023, 21:25
Forum: Ask for Help (v2)
Topic: How to use ahk v2 to paste content as plain text? thanks
Replies: 3
Views: 557

How to use ahk v2 to paste content as plain text? thanks

How to use AutoHotkey v2 to implement that pastes the clipboard content as plain text when I press Ctrl +v ? Thanks
by gongnl
18 Oct 2023, 20:38
Forum: Ask for Help (v2)
Topic: how to set ctrl+c+c as a hotkey? Thank you Topic is solved
Replies: 10
Views: 928

Re: how to set ctrl+c+c as a hotkey? Thank you Topic is solved

Thank you very much for providing the script, it's very fine. How to convert this script to version v1?"
by gongnl
18 Oct 2023, 09:11
Forum: Ask for Help (v2)
Topic: how to set ctrl+c+c as a hotkey? Thank you Topic is solved
Replies: 10
Views: 928

Re: how to set ctrl+c+c as a hotkey? Thank you Topic is solved

When I press the Ctrl+V+V hotkey, the paste function is executed twice. How can I implement it so that the paste function is not executed when the hotkey is pressed continuously, and only when Ctrl+V is not continuously pressed,the paste function is executed,thanks
by gongnl
15 Oct 2023, 21:31
Forum: Ask for Help (v2)
Topic: how to set ctrl+c+c as a hotkey? Thank you Topic is solved
Replies: 10
Views: 928

Re: how to set ctrl+c+c as a hotkey? Thank you Topic is solved

Thank you for your help. After running the script above, there is a delay when entering the hotkey characters of the script in the editor. Is there any way to solve this minor problem?
by gongnl
15 Oct 2023, 03:06
Forum: Ask for Help (v2)
Topic: how to set ctrl+c+c as a hotkey? Thank you Topic is solved
Replies: 10
Views: 928

how to set ctrl+c+c as a hotkey? Thank you Topic is solved

how to set ctrl+c+c as a hotkey? Thank you
by gongnl
21 Aug 2023, 09:43
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 337
Views: 46525

Re: UIA v2

I debug UIA_Browser_Example03_Login. ahk, the following error is displayed, what is the reason for the error, thank you
Snipaste_2023-08-21_22-41-25.jpg
Snipaste_2023-08-21_22-41-25.jpg (80.12 KiB) Viewed 2579 times
by gongnl
21 Aug 2023, 09:21
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 337
Views: 46525

Re: UIA v2

Snipaste_2023-08-21_22-19-09.jpg
Snipaste_2023-08-21_22-19-09.jpg (84.07 KiB) Viewed 2598 times
by gongnl
21 Aug 2023, 09:15
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 337
Views: 46525

Re: UIA v2

Thank you, when the edit menu item for notepad has been selected in the UIA tree, the path displayed in the lower left corner of UIAViewer is path: 3.2 instead of ABq
by gongnl
21 Aug 2023, 08:28
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 337
Views: 46525

Re: UIA v2

Example04_TreeWalking.ahk ,Line 31: How is the parameter "ABq" obtained in npEl["ABq"].Highlight()? thank you

Go to advanced search