i am making a confusing script
it is supposed to make a gui that will add buttons to itself.
because it uses a target label, i had to make it reproduce itself into another file
it should then reload the script and produce another gui and the process repeats
it is not functioning correctly
NOTE:DONT COMPILE
Code:
type = 1
;1
if type = 1
nxtype = 2
else
nxtype = 1
gui, add, text, cgreen, button name
gui, add, edit, vname
gui, add, text, cgreen, website name
gui, add, edit, vplace
gui, add, button, default, create
;1
gui, add, button,, exit
gui, show
return
;1
;1
buttonexit:
gui, destroy
return
buttoncreate:
gui, submit
fileread, file, %A_ScriptFullPath%
filedelete, file, %A_ScriptFullPath%
;1
stringsplit, part, file, `;1
;1
fileappend,
(
type = %nxtype%
;%nxtype%%part2%gui, add, button,, %name%
;%nxtype%%part3%;%nxtype%%part4%button%name%:
run, %place%
return%part5%stringsplit, part, file, `;%type%
;%nxtype%%part5%
), %A_ScriptFullPath%
reload
it seems that it isnt reading itself, and it isnt deleting itself.
i have not compiled to exe, so it should have no problems with these tasks.
please help, i have put a lot of brain power into it and dont want it to go to waste
please help, i would like to have one of these