read empty (array) value from ini results in a filepath in editfield
Posted: 01 May 2024, 11:38
hello
for my macro launcher i ran into an unexpected problem that being when i read from ini into the editfield and the ini had nothing to show it will show this: C:\Users\Peter\AppData\Local\Temp but i want it to show nothing if there is nothing so i wonder is there some sort of errorlevel for edit fields that i can use to keep it empty (unless the user decides to use it) or perhaps another solution ive looked but cant find a clue so perhaps someone can point me in the right direction?
in my gui i have this:
i tested using a msgbox and when i have nothing in the ini it gets the value from it shows an empty msgbox and if i fill in something in the ini it will show that so it works only problem is that filepath that it shows when there was nothing in the ini i never wanna see that
edit: i do intent to use a variable for the editfield to save user input thats not there in the code above cozs i have not written it jet, i do have a gLabel that i wont use
for my macro launcher i ran into an unexpected problem that being when i read from ini into the editfield and the ini had nothing to show it will show this: C:\Users\Peter\AppData\Local\Temp but i want it to show nothing if there is nothing so i wonder is there some sort of errorlevel for edit fields that i can use to keep it empty (unless the user decides to use it) or perhaps another solution ive looked but cant find a clue so perhaps someone can point me in the right direction?
in my gui i have this:
Code: Select all
Gui,19: Add , Text , x330 y10 w100 h25 Right , Macro Note
Gui,19: Add , Edit , x440 y10 w760 h25 -E0x200 , % MacroNotes[CurrentButtonNR]