How to close inputbox Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
MonuKashyap
Posts: 29
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: 50
Joined: 29 Jul 2017, 10:46

Re: How to close inputbox  Topic is solved

23 Jun 2018, 08:16

Code: [Select all] [Download] (test.ahk)GeSHi © Codebox Plus

InputBox, z ,input
msgbox canceled by user


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

Re: How to close inputbox

24 Jun 2018, 03:47

Code: [Select all] [Download] GeSHi © Codebox Plus

#singleinstance,force
InputBox, z ,input
if ErrorLevel
msgBox, CANCEL was pressed.
else if (z="")
msgbox,Input is empty
else
msgbox,%z%
return
MonuKashyap
Posts: 29
Joined: 06 Jun 2016, 21:32

Re: How to close inputbox

21 Jul 2018, 07:25

trust_me wrote:

Code: [Select all] [Download] (test.ahk)GeSHi © Codebox Plus

InputBox, z ,input
msgbox canceled by user


esc::
ControlClick,Cancel ,input
return



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

Re: How to close inputbox

21 Jul 2018, 07:26

garry wrote:

Code: [Select all] [Download] GeSHi © Codebox Plus

#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”

Who is online

Users browsing this forum: drondron1986 and 74 guests