GUI UpDown Increase\Decrease command

Get help with using AutoHotkey and its commands and hotkeys
GMendonca
Posts: 1
Joined: 15 Aug 2019, 23:53

GUI UpDown Increase\Decrease command

16 Aug 2019, 00:04

I'm trying to increase\decrease the number in the Text Field (GUI UpDown) whenever I click the "Go!" Button. But I want to avoid actually clicking the arrows in the UpDown like its already doing. Can anyone help? :D
Here is the code:

Code: Select all

; -------------- Buttons --------------

Gui, FONT, s10, Verdana
Gui, Add, Edit, r1 vSufix x20 y20 h70 w85
Gui, Add, UpDown, vMyUpDown Range000-999
Gui, Add, Button, x132 y15 h34 w80 gGo, Go!

Gui, Add, Edit, r1 vPrefix x20 y65 h70 w190

Gui, FONT, bold s10, Verdana
Gui, Add, Checkbox, checked x10 y125 w65 h15 vCheckBox1, Waifu:
Gui, FONT, norm s10, Verdana
Gui, Add, Radio, x90 y125 vRadioGroup1, Create
Gui, Add, Radio, checked x170 y125 vRadioGroup2, Join

Gui, FONT, bold s10, Verdana
Gui, Add, Checkbox, checked x10 y155 w65 h15 vCheckBox2, Buff:
Gui, FONT, norm s10, Verdana
Gui, Add, Radio, x90 y155 vRadioGroup3, Create
Gui, Add, Radio, checked x170 y155 vRadioGroup4, Join

Gui, FONT, bold s10, Verdana
Gui, Add, Checkbox, checked x10 y185 w65 h15 vCheckBox3, Atro:
Gui, FONT, norm s10, Verdana
Gui, Add, Radio, x90 y185 vRadioGroup5, Create
Gui, Add, Radio, checked x170 y185 vRadioGroup6, Join

; -------------- Show GUI --------------

Gui, Show, X893 Y751
Gui, Submit, NoHide
MouseMove, 170, 103
return

; -------------- Main --------------

Go:

if WinExist(A_ScriptName)
{
	WinActivate
	MouseClick, left , 100, 50
}

GuiControlGet, GameName , , Prefix
GuiControlGet, GameNumber , , Sufix
GuiControlGet, WaifuCheckBox , , CheckBox1
GuiControlGet, BuffCheckBox , , CheckBox2
GuiControlGet, AtroCheckBox , , CheckBox3
Gui, Submit, NoHide
return

; -------------- Shortcuts --------------

GuiClose:
ExitApp
just me
Posts: 6486
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: GUI UpDown Increase\Decrease command

16 Aug 2019, 04:36

Code: Select all

GuiControl, , MyUpDown, +1

Return to “Ask For Help”

Who is online

Users browsing this forum: elModo7, noaxp and 230 guests