InputBox Enter vs OK or Cancel Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Ryder
Posts: 61
Joined: 28 Apr 2022, 18:49

InputBox Enter vs OK or Cancel

16 Jun 2022, 16:02

Hi all

I have an input box that opens when I click a GUI button.

If I decide not to enter anything into it and just hit Return, the InputBox dismisses itself... and can be called again by the aforementioned button.

HOWEVER

If I click "OK" to dismiss the inputbox (or cancel), it does not dismiss itself!

Instead it stays open (moved behind my alwaysontop GUI window.

Now, I assumed that the OK button and pressing Return were equivalent.

Is this a bad assumption?

Thank you for your kind help

R
User avatar
tidbit
Posts: 1273
Joined: 29 Sep 2013, 17:15
Location: USA

Re: InputBox Enter vs OK or Cancel

16 Jun 2022, 17:00

we need code so we're not playing 20 questions and blindly guessing.
rawr. fear me.
*poke*
Is it December 21, 2012 yet?
Ryder
Posts: 61
Joined: 28 Apr 2022, 18:49

Re: InputBox Enter vs OK or Cancel  Topic is solved

16 Jun 2022, 17:44

I just wanted to know if there was a known difference between enter and OK... the code would come later if needed.

However, it's not needed!

I still don't know if there is a difference between enter and OK, but I know what the problem was and unfortunately it's so esoteric it's not worth going into.

Thank you!

R

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot] and 192 guests