GUI Slider range limits

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Brain
Posts: 1
Joined: 28 Apr 2017, 01:17

GUI Slider range limits

28 Apr 2017, 01:30

I was making a humorous GUI where you enter your 10-digit phone number with a slider, and apparently the maximum allowable value is 2147483647. Is this correct? Any way around this slider limit? The original intent was just an exercise in exploring how granular the slider can be with a mouse.

Code: Select all

Gui, Add, Text,, Please enter your phone number:
Gui, Add, Slider, xm vPhone Range2002000000-9999999999 ToolTip, 8008888888
Gui, Add, Text, x+10 vNumber, number displayed here
just me
Posts: 9458
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI Slider range limits

28 Apr 2017, 02:50

Slider ranges and positions are defined as 32-bit integer values. So
  • Is this correct? Yes.
  • Any way around this slider limit? Not for the range you want to use. The maximum number of different positions is 4294967296.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: filipemb, mikeyww and 373 guests