ok i will try to explain it more clearly
I want to create my project more generic so that anyone who wants to make changes then he has to do it only in .ini file not in the autohotkey script....
so what i am doing is if i make a ini file with two buttons as Paint and Notepad...if the user clicks paint it should open paint and also when he clicks Notepad it should open notepad....i know we can do it in a simple way as:-
Code:
Gui, Add, Button, w186 h49,Paint
Gui, Add, Button, w186 h49,Notepad
Gui,show
Return
ButtonPaint:
run mspaint.exe
return
ButtonNotepad:
run notepad.exe
return
but as i said i want to do it at runtime that is when the user makes changes in the .ini file and adds one more button as Word the gui should show this update(and with all your help i am able to do this) but how to execute the function related to that button i.e. word.exe that is their should be some loop like
Code:
Button%button%: ; paint,word,calculator
run ..... ; this should know that which button is pressed and for that button what action is defined in .ini file.....
that is if he press paint then mspaint.exe should run or if word is pressed then word.exe should run
Sorry for irritating but i am in desperate need of it
Thanks a lot for reading and your concerns