Search found 9483 matches
- Yesterday, 03:19
- Forum: Tips and Tricks
- Topic: Detect Enter key presses on Listview and Treeview controls
- Replies: 4
- Views: 333
Re: Detect Enter key presses on Listview and Treeview controls
Added code for subclass method #3.
- 27 May 2024, 06:42
- Forum: Tips and Tricks
- Topic: Detect Enter key presses on Listview and Treeview controls
- Replies: 4
- Views: 333
Re: Detect Enter key presses on Listview and Treeview controls
Method #3: By subclassing. Using this example, you can use a default subclassproc or pass an own subclassproc when registering the control. #Requires AutoHotkey v2.0 Win := Gui( , "LV WantReturn") Win.OnEvent("Close", (*) => ExitApp()) Win.AddText("xm", "ListView:") LV := Win.AddListView("xm y+5 w4...
- 27 May 2024, 06:42
- Forum: Tips and Tricks
- Topic: Detect Enter key presses on Listview and Treeview controls
- Replies: 4
- Views: 333
Re: Detect Enter key presses on Listview and Treeview controls
Method #2: By processing the WM_KEYDOWN message. (This will be much more convenient with AHK v2.1 which will add control specific OnMessage processing). #Requires AutoHotkey v2.0 Win := Gui( , "LV WantReturn") Win.OnEvent("Close", (*) => ExitApp()) Win.AddText("xm", "ListView:") LV := Win.AddListVi...
- 27 May 2024, 06:41
- Forum: Tips and Tricks
- Topic: Detect Enter key presses on Listview and Treeview controls
- Replies: 4
- Views: 333
Detect Enter key presses on Listview and Treeview controls
Method #1: Like documented: ListView : To detect when the user has pressed Enter while a ListView has focus, use a default button (which can be hidden if desired). For example: MyGui.Add("Button", "Hidden Default", "OK").OnEvent("Click", LV_Enter) ... LV_Enter(*) { global if MyGui.FocusedCtrl != LV...
- 27 May 2024, 02:47
- Forum: Scripts and Functions (v2)
- Topic: GuiCtrlTips - Add tooltips to your Gui.Controls (2023-05-28)
- Replies: 36
- Views: 5271
Re: GuiCtrlTips - Add tooltips to your Gui.Controls (2023-05-28)
@Spitzi, not that I know of.
- 27 May 2024, 02:43
- Forum: Ask for Help (v2)
- Topic: Gdip Recycle Polygons Topic is solved
- Replies: 2
- Views: 228
Re: Gdip Recycle Polygons Topic is solved
Hi, At the end of each call of the Polygon() function a new GDI bitmap object is created and its handle is stored in hBitmap without deleting a previously stored object. Polygon() is called from DrawWall() which is called many times from Draw3D() where only the last created bitmap object will be sel...
- 26 May 2024, 05:18
- Forum: Ask for Help (v2)
- Topic: how to make a list box
- Replies: 11
- Views: 549
Re: how to make a list box
Hi, I read about packing and alinment on several places but currently I found juyt two:
pack pragma
Anybody who writes #pragma pack(1) may as well just wear a sign on their forehead that says “I hate RISC”
pack pragma
Anybody who writes #pragma pack(1) may as well just wear a sign on their forehead that says “I hate RISC”
- 26 May 2024, 04:13
- Forum: Ask for Help (v2)
- Topic: how to make a list box
- Replies: 11
- Views: 549
Re: how to make a list box
Hi @teadrinker,
no. The TaskDialog section is one of the rare sections in Commctrl.h using non-default alignment.
no. The TaskDialog section is one of the rare sections in Commctrl.h using non-default alignment.
- 25 May 2024, 10:23
- Forum: Ask for Help (v2)
- Topic: how to make a list box
- Replies: 11
- Views: 549
Re: how to make a list box
... I need a MsgBox that has 4 options, click on what you want and it runs code for that selection. Lil help please. #Requires AutoHotkey v2.0 Title := "Type of Email" Main := "Which kind of Email do you want to send?" Content := "Select one option, please." Selection := ["Email Features", "Email N...
- 25 May 2024, 04:02
- Forum: Ich brauche Hilfe
- Topic: HyperLinkErgebnis
- Replies: 10
- Views: 945
Re: HyperLinkErgebnis
Moin effel , ich bin beeindruckt. Leider hat meine Konzentrationsfähigkeit mit fortschreitendem Alter etwas nachgelassen. Projekte dieser Größenordnung sind deshalb nichts mehr für mich. Ich habe zum konkreten Problem dennoch einen Blick in den Code geworfen. Wenn ich das richtig lese, sieht die Ver...
- 24 May 2024, 04:05
- Forum: Ich brauche Hilfe
- Topic: HyperLinkErgebnis
- Replies: 10
- Views: 945
Re: HyperLinkErgebnis
Moin effel , die Aussage in meinem Vorschlag ist zwar prinzipiell nicht falsch, greift aber in Deinem Fall nicht, weil mit dem https:// der wesentliche Kennzeichner für Links überflüssig wird. Der Rest der 'Nadel' trifft auf sehr viele Inhalte zu. Die gepostete Fehlermeldung entspricht nicht dem dav...
- 24 May 2024, 02:48
- Forum: Scripts and Functions (v2)
- Topic: GuiCtrlTips - Add tooltips to your Gui.Controls (2023-05-28)
- Replies: 36
- Views: 5271
Re: GuiCtrlTips - Add tooltips to your Gui.Controls (2023-05-28)
Hi @Spitzi,
the class does not care about the tooltip's position.It's determined by the ToolTip("Text", X, Y, ...) function.
Edit: Sorry, wrong class!
It's automatically determined by the tooltip control.
the class does not care about the tooltip's position.
Edit: Sorry, wrong class!
It's automatically determined by the tooltip control.
- 23 May 2024, 11:27
- Forum: Ich brauche Hilfe
- Topic: HyperLinkErgebnis
- Replies: 10
- Views: 945
Re: HyperLinkErgebnis
Moin,
wenn Zeichen auftreten können aber nicht müssen, nehme ich dafür normalerweise ein 'Teilsuchmuster' mit nachgestelltem ? (einmal oder keinmal):
wenn Zeichen auftreten können aber nicht müssen, nehme ich dafür normalerweise ein 'Teilsuchmuster' mit nachgestelltem ? (einmal oder keinmal):
Code: Select all
URLRegex = i)(https?://)?[\w.-]+/?[\w!#`%&+./:=?@-]*
- 23 May 2024, 04:18
- Forum: Ask for Help (v1)
- Topic: A_GuiEvent
- Replies: 2
- Views: 667
Re: A_GuiEvent
Each complete double-click consists of 4 mouse events: button down button up button doubleclick button up That means that there is always a Normal event preceding the DoubleClick event. If you want to igmore the Normal event in case of a following DoubleClick , you have to wait for the latter. #Requ...
- 22 May 2024, 03:01
- Forum: Ask for Help (v2)
- Topic: Make ListView selection toggle individual selection Topic is solved
- Replies: 5
- Views: 376
Re: Make ListView selection toggle individual selection Topic is solved
Hi, one SendMessage might be enough (tested only briefly): WM_LBUTTONDOWN(WP, LP, Msg, Hwnd) { ; LVM_HITTEST (0x1012) => https://learn.microsoft.com/en-us/windows/win32/controls/lvm-hittest Static LVHTI := Buffer(24, 0) Local Item := 0 If (Hwnd == edit_LV_Box.Hwnd) { NumPut("Int", LP & 0xFFFF, "Int"...
- 21 May 2024, 07:10
- Forum: Ich brauche Hilfe
- Topic: WheelUp-, WheelDown-Hotkey wegen defektem Scrollrad - V2 Topic is solved
- Replies: 5
- Views: 430
Re: WheelUp-, WheelDown-Hotkey wegen defektem Scrollrad - V2 Topic is solved
Moin, in v2 sind auch Hotkeyroutinen Funktionen. Man kann sie für mehrere Hotkeys 'stacken' und mit eigenen statischen Variablen ausstatten. #Requires AutoHotkey v2.0 $WheelDown:: $WheelUp:: { Static PreviousWheel := "" If (PreviousWheel = ThisHotkey) Send("{" . SubStr(ThisHotkey, 2) . "}") Previous...
- 21 May 2024, 05:06
- Forum: Scripts and Functions (v2)
- Topic: CSVtoDict v2
- Replies: 12
- Views: 1495
Re: CSVtoDict v2
Ok, if you want/have to allow any user to edit CSV files using any editor on any system without defining strict rules, good luck!
- 20 May 2024, 12:18
- Forum: Ask for Help (v2)
- Topic: Reopen Last closed window script (v1 -> v2) Topic is solved
- Replies: 9
- Views: 629
Re: Reopen Last closed window script (v1 -> v2) Topic is solved
Code: Select all
ComObjConnect(Window, "Shell_")
- 20 May 2024, 06:23
- Forum: Suggestions on Documentation Improvements
- Topic: menu setIcon The obtained icon is incorrect
- Replies: 5
- Views: 588
Re: menu setIcon The obtained icon is incorrect
IconNumber Type: Integer If omitted, it defaults to 1 (the first icon group). Otherwise, specify the number of the icon group to be used in the file. For example, MyMenu.SetIcon(MenuItemName, "Shell32.dll", 2) would use the default icon from the second icon group. If negative, its absolute value is...
- 20 May 2024, 06:16
- Forum: Ask for Help (v2)
- Topic: Reopen Last closed window script (v1 -> v2) Topic is solved
- Replies: 9
- Views: 629
Re: Reopen Last closed window script (v1 -> v2) Topic is solved
Shell_NavigateComplete2() is used to update the current path after navigating in an existing explorer window. My attempt: #Requires AutoHotkey v2.0 Shell := ComObject("Shell.Application") ExistingWindows := Map("LastClosed", "") CollectExistingWindows() Hook := ShellHook(ShellHookProc) !e:: { If !E...