Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

build a variable name dynamicly

$
0
0
All,

I'm new at this forum ans also to AutoIt, so don't shoot me when i'm asking something that's evident.

I'm looking for the correct way to build a variabele name.

i have a gui with 22 buttons. Every button has i'ts one settings.
depending on the input from an ini file, i need to set the focus on that button.

This is my code

ini file ==>
[ButtonId]
button=15

code ==>
$ButtonId = IniRead("C:\Temp\myfile.ini", "ButtonId", "Button")

$button14=GuiCtrlCreateButton("test 14",130,410,100,50)

$button15=GuiCtrlCreateButton("Test 15",240,410,100,50)
$button16=GuiCtrlCreateButton("Test 16",350,410,100,50)

GUICtrlSetState($button & ButtonId, $GUI_FOCUS)

but the last line doesn't work :-(

kind regards

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>