How to close inputbox Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
MonuKashyap
Posts: 112
Joined: 06 Jun 2016, 21:32

How to close inputbox

23 Jun 2018, 03:28

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.
trust_me
Posts: 98
Joined: 29 Jul 2017, 10:46

Re: How to close inputbox  Topic is solved

23 Jun 2018, 08:16

Code: Select all

InputBox, z ,input
msgbox canceled by user


esc::
ControlClick,Cancel ,input
return
garry
Posts: 3763
Joined: 22 Dec 2013, 12:50

Re: How to close inputbox

24 Jun 2018, 03:47

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
MonuKashyap
Posts: 112
Joined: 06 Jun 2016, 21:32

Re: How to close inputbox

21 Jul 2018, 07:25

trust_me wrote:

Code: Select all

InputBox, z ,input
msgbox canceled by user


esc::
ControlClick,Cancel ,input
return

working!!
Thanks Men..
MonuKashyap
Posts: 112
Joined: 06 Jun 2016, 21:32

Re: How to close inputbox

21 Jul 2018, 07:26

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.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Joey5, RandomBoy and 349 guests