Code: Select all
#IfWinNotActive ahk_class #32770
Esc::Gui, IBML:Cancel
Code: Select all
#IfWinNotActive ahk_class #32770
Esc::Gui, IBML:Cancel
Code: Select all
InputBox, Name, Name, Enter your name:,, 385, 145
MsgBox, % Name
MsgBox, % InputBoxML("Enter your address:", "Address", 3)
return
InputBoxML(prompt="", title="", rows=2, width=200) {
static IbmlEntry
global IbmlID
Gui, IBML:+ToolWindow +hwndIbmlID
Gui, IBML:Add, Text,, % prompt
Gui, IBML:Add, Edit, % "vIbmlEntry xm r" rows " w" width
Gui, IBML:Add, Button, % "gIbmlSubmit xm+" width/2-25 " w50", Submit
Gui, IBML:Show,, % title
WinWaitClose, ahk_id %IbmlID%
Gui, IBML:Destroy
return IbmlEntry
IbmlSubmit:
Gui, IBML:Submit
return
}
#If WinActive("ahk_id" IbmlID)
Esc::Gui, IBML:Cancel
Code: Select all
Gui, IBML:Add, Button, % "gIbmlOK xm+" width/2-65 " w50", OK
Gui, IBML:Add, Button, gIbmlCancel x+30 w50, Cancel