; ; AutoHotkey Version: 1.x ; Language: English ; Platform: Win9x/NT ; Author: A.N.Other ; ; Script Function: ; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder) ; #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. Gui, add, button, , Hover Here! Gui, Add, Button, Default, Click Here! Gui, add, edit, w300 h200 ys, Edit text in this box. gui, show, , ToolTip Demo OnMessage(0x200, "CheckControl") Return ButtonClickHere!: MsgBox Clicked Here! Return GuiClose: ToolTip Gui, Destroy Return CheckControl() { MouseGetPos,,,, VarControl IfEqual, VarControl, Button1 Message := "You're hovering!" else IfEqual, VarControl, Button2 Message := "Click me!" else IfEqual, VarControl, Edit1 Message := "Enter text in this edit field.`nThere can be multiple lines." ToolTip % Message }