Page 1 of 1
How to close inputbox
Posted: 23 Jun 2018, 03:28
by MonuKashyap
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.
Re: How to close inputbox Topic is solved
Posted: 23 Jun 2018, 08:16
by trust_me
Code: Select all
InputBox, z ,input
msgbox canceled by user
esc::
ControlClick,Cancel ,input
return
Re: How to close inputbox
Posted: 24 Jun 2018, 03:47
by garry
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
Re: How to close inputbox
Posted: 21 Jul 2018, 07:25
by MonuKashyap
trust_me wrote:Code: Select all
InputBox, z ,input
msgbox canceled by user
esc::
ControlClick,Cancel ,input
return
working!!
Thanks Men..
Re: How to close inputbox
Posted: 21 Jul 2018, 07:26
by MonuKashyap
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.