If Radio True

Ask gaming related questions (AHK v1.1 and older)
Barney15
Posts: 168
Joined: 12 Jan 2020, 14:18

If Radio True

23 Mar 2020, 16:46

Hi there guys, :wave:
need help with this easy code,
------------------------------------------------------------------------------------------------------>*.ahk ScreenShot
2020-03-24 16_41_23-Window.png
GUI ScreenHot
2020-03-24 16_41_23-Window.png (19.27 KiB) Viewed 332 times
------------------------------------------------------------------------------------------------------>*.ahk Code

Code: Select all

Gui, Add, GroupBox, x2 y29 w200 h70, GUI Test
Gui, Add, Text, x12 y49 w90 h20 Center Border, Choose a value
Gui, Add, Edit, x102 y49 w90 h20 Number Center vInputValue
Gui, Add, Radio, x12 y69 w90 h20 vHigherVar gChooseLable, Higher than 10
Gui, Add, Radio, x102 y69 w100 h20 vLowerVar, Lower than 10
Gui, Show
Return
Esc:
GuiClose:
ExitApp

ChooseLable:
	Gui, 1:Submit, Nohide
	;Get the InputValue without a pressing a button
	GuiControlGet, InputValue
		 if(InputValue > 0)
						{
						 ;Choose Radio Higher than 10
						}
	else if(InputValue < 0)
						{
						 ;Choose Radio Lower than 10
						}
	return
Please feel free to express you point of view because i'm just a beginner and want to learn.
------------------------------------------------------------------------------------------------------>*.ahk Note
Is there a text editor to show the code the same as this forum, i like the way it looks here.
Last edited by Barney15 on 24 Mar 2020, 10:53, edited 1 time in total.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Rohwedder and 78 guests