Search found 52 matches

by Joeyy
24 May 2024, 22:05
Forum: Ask for Help (v2)
Topic: How to make Rubberband selection to select multiple items in Autohotkey v2 listview?
Replies: 8
Views: 773

Re: How to make Rubberband selection to select multiple items in Autohotkey v2 listview?

Try: #Requires AutoHotkey v2 wnd := Gui() wnd.OnEvent('Close', (*) => ExitApp()) wnd.SetFont('s12', 'Calibri') lv := wnd.Add('ListView', 'r10 w400', ['Name','Size (KB)']) Loop Files, A_MyDocuments . '\*.*' { lv.Add(, A_LoopFileName, A_LoopFileSizeKB) } lv.ModifyCol(1, 'AutoHdr') lv.ModifyCol(2, 'Au...
by Joeyy
24 May 2024, 08:31
Forum: Ask for Help (v2)
Topic: How to make Rubberband selection to select multiple items in Autohotkey v2 listview?
Replies: 8
Views: 773

How to make Rubberband selection to select multiple items in Autohotkey v2 listview?

like the pic below I make a Autohotkey Gui, I want to make Rubberband selection to select multiple items as the 2nd pic. Can any one help me?

Image
Image
by Joeyy
22 May 2024, 03:53
Forum: Ask for Help (v2)
Topic: in Autohotkey listview gui, when edit item, how to display all item content not in one line?
Replies: 0
Views: 129

in Autohotkey listview gui, when edit item, how to display all item content not in one line?

I'm learning Autohotkey GUI, but encounter some problems. Like the pic below, Mark 3 is the listview item or row, pressing F2, then entering edit mode, but if the content is too much, it can't display all at once, I have to move the cursor in the item line to find what I want. Is there a way to disp...
by Joeyy
15 May 2024, 20:47
Forum: Ask for Help (v2)
Topic: how to list the keys, methods and properties of object in Autohotkey v2?
Replies: 4
Views: 477

Re: how to list the keys, methods and properties of object in Autohotkey v2?

#Requires AutoHotkey v2.0 #SingleInstance Force class MyZooClass { ;in AHK v1 this is a key(/value property): ;in AHK v2 this is a value property: MyValueProperty := "MyValuePropertyValue" ;in AHK v1 this is a key(/value property): ;in AHK v2 this is a value property: static MyStaticProperty := "My...
by Joeyy
15 May 2024, 08:53
Forum: Ask for Help (v2)
Topic: how to list the keys, methods and properties of object in Autohotkey v2?
Replies: 4
Views: 477

how to list the keys, methods and properties of object in Autohotkey v2?

In an old post "jeeswg's object classes tutorial" https://www.autohotkey.com/boards/viewtopic.php?t=54588 , there's a way to list the keys, methods and properties of object, but it doesn't work in AutoHotkey v2.1 -alpha. 10 Anyone can help me? jeeswg's code: class MyZooClass { ;in AHK v1 this is a k...
by Joeyy
11 May 2024, 23:57
Forum: Scripts and Functions (v2)
Topic: Apply Dark Theme to Your MsgBox
Replies: 1
Views: 643

Re: Apply Dark Theme to Your MsgBox

Thanks! Can you share the code for dark UIAViewer?
by Joeyy
12 Jan 2024, 08:30
Forum: Ask for Help (v2)
Topic: Is there anyway to lock folder with Autohotkey?
Replies: 1
Views: 156

Is there anyway to lock folder with Autohotkey?

I want to lock a private folder with Autohotkey, someone can help me? Thanks a lot!
by Joeyy
16 Dec 2023, 23:04
Forum: Ask for Help (v2)
Topic: Can anyone explain "ComValue" by an example?
Replies: 2
Views: 334

Re: Can anyone explain "ComValue" by an example?

emp00 wrote:
16 Dec 2023, 06:34
There are quite a few examples in the documentation: https://www.autohotkey.com/docs/v2/lib/ComValue.htm
Honestly, I've browsed all the examples, still dont understand.
by Joeyy
16 Dec 2023, 03:30
Forum: Ask for Help (v2)
Topic: Can anyone explain "ComValue" by an example?
Replies: 2
Views: 334

Can anyone explain "ComValue" by an example?

I've studied this in Help, but still don't understand. Tahnks!
by Joeyy
11 Dec 2023, 08:55
Forum: Ask for Help (v2)
Topic: How to solve the annoying "space problem" in path?
Replies: 2
Views: 217

How to solve the annoying "space problem" in path?

Like the code below, if the GetActiveExplorerPath() returns a path with a space in it, it doesn't work correctly. How to solve this? ^o::Run "C:\Software\totalcmd\TOTALCMD64.EXE /O /L=" . GetActiveExplorerPath() ; Open In Total Commander GetActiveExplorerPath() { explorerHwnd := WinActive("A") if (e...
by Joeyy
16 Oct 2023, 09:09
Forum: Ask for Help (v2)
Topic: Anyone Knows which winapi function context menu "Undo delete (Ctrl+Z)" call?
Replies: 0
Views: 195

Anyone Knows which winapi function context menu "Undo delete (Ctrl+Z)" call?

When deleted a file, I can press Ctrl+Z to recover it in Windows 11. But in Total Commander, there's no such a undo function. I want to call the winapi function (Undo delete) directly in Total Commander. Is it possible? But I can't find the relavent info on the internet. Anyone can help me?
by Joeyy
02 Oct 2023, 21:34
Forum: Ask for Help (v2)
Topic: Help me! I don't know what's wrong in jeeseg's function
Replies: 2
Views: 354

Help me! I don't know what's wrong in jeeseg's function

When I press !z in File Explorer, it prompts: Error: This variable has not been assigned a value. Specifically: local oWin 026: Else 027: Return ▶ 029: vPath := oWin.Document.FocusedItem.path 030: oWindows := oWin := "" 031: Return vPath #SingleInstance !z::JEE_ExpWinGetFoc() ;~ get focused file JEE...
by Joeyy
29 Sep 2023, 04:45
Forum: Ask for Help (v2)
Topic: Any way to change focus on selecting items in File Explorer?
Replies: 3
Views: 370

Any way to change focus on selecting items in File Explorer?

When I select items with Shift-pressed with mouse like screenshot below, the focus is always on the bottom item. I want to put the focus on the top one. Is there any command to do this?

Image
by Joeyy
17 Sep 2023, 22:44
Forum: Ask for Help (v2)
Topic: Can the popup menu support dark mode? Topic is solved
Replies: 10
Views: 1372

Re: Can the popup menu support dark mode? Topic is solved

Dark Pop-up Menu & Tray Menu for v2: image.png ; Applying dark theme for Pop-up Menu & Tray Menu. Class darkMode { ; Mode: Dark = 1, Default (Light) = 0 Static __New(Mode := 1) => ( DllCall(DllCall("GetProcAddress", "ptr", DllCall("GetModuleHandle", "str", "uxtheme", "ptr"), "ptr", 135, "ptr"), "in...
by Joeyy
17 Sep 2023, 05:00
Forum: Ask for Help (v2)
Topic: Is it possible to place letter key (like Word) on Task View Window?
Replies: 1
Views: 210

Is it possible to place letter key (like Word) on Task View Window?

I have tried GUI Object, not working. The GUI created can't be on top of Task View Window.

I want to place letter key (like Word) on all windows like below:

Image

Image
by Joeyy
16 Sep 2023, 09:29
Forum: Ask for Help (v2)
Topic: Hotstring Function doesn't work from V1 to V2
Replies: 5
Views: 413

Re: Hotstring Function doesn't work from V1 to V2

mikeyww wrote:
16 Sep 2023, 09:19

Code: Select all

#Requires AutoHotkey v2.0
Hotstring ':*:a', msgfunc.Bind('abc', 'def')

msgfunc(p1, p2, ThisHotkey) {
 hs := SubStr(ThisHotkey, InStr(ThisHotkey, ':',, 2) + 1)
 MsgBox hs '`n' p1 '`n' p2
}
I don't need pass hotstring itself ("a" in this example).
by Joeyy
16 Sep 2023, 09:13
Forum: Ask for Help (v2)
Topic: Hotstring Function doesn't work from V1 to V2
Replies: 5
Views: 413

Re: Hotstring Function doesn't work from V1 to V2

The first script works? What happens when you run it? #Requires AutoHotkey v2.0 Hotstring ':*:a', msgfunc msgfunc(ThisHotkey) { hs := SubStr(ThisHotkey, InStr(ThisHotkey, ':',, 2) + 1) MsgBox hs } Explained: Replacement The replacement string, or a function or function object to call (as a new thre...
by Joeyy
16 Sep 2023, 00:19
Forum: Ask for Help (v2)
Topic: Hotstring Function doesn't work from V1 to V2
Replies: 5
Views: 413

Hotstring Function doesn't work from V1 to V2

The code below works in V1 but not in V2. I have browsed the V2 help. It removed the Func() function? And I don't know how to make it work. I'm a beginner. Please help me. Thanks! By the way, the help is too few examples and not friendly to beginner. V1: #NoEnv #SingleInstance force Hotstring(":*X:a...
by Joeyy
14 Sep 2023, 05:30
Forum: Scripts and Functions (v2)
Topic: Eject() : For Removable storage devices
Replies: 3
Views: 1511

Re: Eject() : For Removable storage devices

Thanks for your code. But it doesn't work. Where am I wrong? MyEject("E:") MyEject(Drive) { Local Result, Msg, Icon Try Eject(Drive) Catch Error as Result Msg := StrSplit( Result.Message, ":",, 2 ) Icon := Msg[1] = "Success" ? "Iconi" : Msg[1]="Error" ? "Iconx" : "Icon!" SetTimer( (*) => MsgBox(Resu...
by Joeyy
14 Sep 2023, 01:20
Forum: Ask for Help (v2)
Topic: Assign hotkey to open icon (in notification area) context menu like right-click it?
Replies: 1
Views: 308

Assign hotkey to open icon (in notification area) context menu like right-click it?

I found the "TrayIcon.ahk", but it isn't compatible with latest windows 11. I try to understand the dllcall in it and rewrite, but I'm a beginner and can't do it.

Anyone can help me?

Go to advanced search