checkbox toggle Recall With complex variable Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Noo0B
Posts: 151
Joined: 26 Jan 2018, 19:54

checkbox toggle Recall With complex variable

17 Feb 2018, 21:45

This code isn´t working although

Code: Select all

Gui, Add, Edit, X30 Y%Y2% H21 W130 vName%GuiN%, % Name%GuiN%
IniWrite, % Name%GuiN%, Config2.ini, Names, Name%GuiN%
kind of variable syntax works elsewhere in the script.
Here´s the broken code:

Code: Select all

IniRead, IconToggle%GuiN%, Config2.ini, IconToggle, IconToggle%GuiN%
Gui, Add, Checkbox, X5 Y%Y1% vIconToggle%GuiN% Checked% IconToggle%GuiN%
What kind of syntax error am I making? It works elsewhere.
It only works if:

Code: Select all

IconToggleGuiN:= % IconToggle%GuiN%
Gui, Add, Checkbox, X5 Y%Y1% vIconToggle%GuiN% Checked%IconToggleGuiN%
I guess the Checked option requires a special parameter to evaluate this kind of variable?
Just a wild guess though.
Thanks for the Attention!
Odlanir
Posts: 659
Joined: 20 Oct 2016, 08:20

Re: checkbox toggle Recall With complex variable  Topic is solved

18 Feb 2018, 04:10

Code: Select all

Gui, Add, Checkbox, % "X5 Y" Y1 " vIconToggle" GuiN " Checked" IconToggle%GuiN%
____________________________________________________________________________
Windows 10 Pro 64 bit - Autohotkey v1.1.30.01 64-bit Unicode
Noo0B
Posts: 151
Joined: 26 Jan 2018, 19:54

Re: checkbox toggle Recall With complex variable

19 Feb 2018, 02:30

Thanks for the reply!
Regards

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: ReyAHK and 257 guests