How to close inpoutbox by Esc button?
like :
inputbox, var
msgbox % var
Return
Esc::
inputbox close ;;---here (only inputbox, not the whole script.)
Return
THanks in advance.
How to close inputbox Topic is solved
-
- Posts: 112
- Joined: 06 Jun 2016, 21:32
Re: How to close inputbox Topic is solved
Code: Select all
InputBox, z ,input
msgbox canceled by user
esc::
ControlClick,Cancel ,input
return
Re: How to close inputbox
Code: Select all
#singleinstance,force
InputBox, z ,input
if ErrorLevel
msgBox, CANCEL was pressed.
else if (z="")
msgbox,Input is empty
else
msgbox,%z%
return
-
- Posts: 112
- Joined: 06 Jun 2016, 21:32
Re: How to close inputbox
trust_me wrote:Code: Select all
InputBox, z ,input msgbox canceled by user esc:: ControlClick,Cancel ,input return
working!!
Thanks Men..
-
- Posts: 112
- Joined: 06 Jun 2016, 21:32
Re: How to close inputbox
garry wrote:Code: Select all
#singleinstance,force InputBox, z ,input if ErrorLevel msgBox, CANCEL was pressed. else if (z="") msgbox,Input is empty else msgbox,%z% return
Thanks You too friend.
this also work for me.
Who is online
Users browsing this forum: Tvlao and 319 guests