I was doing something for my cousin, Amber, an di wanted to put in this popup. but when I run the program in "program.exe" /AMBER, nothing happens. Am I missing something? The program initializes, but then nothing happens.
Here is the code I put in the Global Functions:
Code:bamberMode = false; local nNumArgs = Table.Count(_CommandLineArgs); if(nNumArgs > 0)then for i,strArg in _CommandLineArgs do if(strArg == "/AMBER")then bamberMode = true; end end end if(bamberMode)then amberclick = Dialog.Message("Hello Amber", "Hi amber. How are you? do like this. hehehe", MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1); if(amberclick == IDOK)then Application.ExitScript(); end end
Thanks for any help.

