Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance force
Gui, Add, ListView, r20 w700 AltSubmit gMyListView, Name
LV_Add("", "click here")
Gui, Show
return
MyListView:
return
#IfWinActive ahk_class AutoHotkeyGUI
LButton::
send ^{Click}
return
GuiClose: ; Indicate that the script should exit automatically when the window is closed.
ExitApp