AndreasNWWWWW Posted February 5, 2022 Author Share Posted February 5, 2022 6 minutes ago, Nine said: Case $aButton[0] To $aButton[UBound($aButton) - 1] ConsoleWrite("Button " & $nMsg - $aButton[0] + 1 & " has been pressed" & @CRLF) GUICtrlSetData($Input1,$aResult[$nMsg - $aButton[0]]) ; not sure if you need + 1 here ? And again you are a life saver! perhaps i'm getting this done this weekend after all, been sitting with it since thursday xD just need to figure out how to have only 8 buttons in a row, and then it goes 100 pixels over and reset the y axis for the next 8 two more times, so 24 buttons in total. And i'll publish the code, incase someone else wants something like this. For $i = 0 To UBound($aButton) - 1 $aButton[$i] = GUICtrlCreateButton("", 518, 70 + $i * 40, 80, 40) GUICtrlSetState(-1, $GUI_HIDE) Next Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now