the macro itself starts up much higher with a label called mastermacro the button nr label is there only for my turn a button into a hotkey option, on a button click my tool writes its button nr to ini first so that inside my mastermacro and all setup gui's the correct information is loaded and also open for editing just that buttons settings. all setup gui's load this value to display the right information (my tool has 664 programmable buttons)
if i can solve this i can make my macro dynamic for the most part and use a gosub for the biggest part and shave of a pile of code. i created a simple example of my needs but in my main script it would come from ini
Code: Select all
#SingleInstance, Force
Temp=1
return
Button%Temp%:
Tooltip, i work
sleep, 1000
tooltip
return
^W:: ; for testing
GoSub, Button1
return