Help regarding GUI

Get help with using AutoHotkey and its commands and hotkeys
HIAC
Posts: 111
Joined: 11 Oct 2017, 17:59
Location: Republic of Serbia

Help regarding GUI

26 Oct 2017, 06:10

Hello,
Is it possible to make GUI edit box don't let you enter number that is less than 5 and greater than 8?
I mean, without even submitting it, like auto correct?
A_AhkUser
Posts: 1118
Joined: 06 Mar 2017, 16:18
GitHub: AAhkUser
Location: France

Re: Help regarding GUI

26 Oct 2017, 06:38

Hi HIAC,

The simplest way is to attach an UpDown GUI control to the Edit control:

Code: Select all

Gui, Add, Edit, +ReadOnly,
Gui, Add, UpDown, vMyUpDown Range5-8, 1
Gui, Show, AutoSize
return
my scripts

Return to “Ask For Help”

Who is online

Users browsing this forum: Bartholomau, Bing [Bot], JoeWinograd, mikeyww, prasad383 and 43 guests