Advertisement
tabnation

ini user path 6

Jan 5th, 2022
100
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None
  1. f1::
  2. info:=
  3. inifilepath =%A_MyDocuments%\initest\savedinfo.ini
  4.  
  5. startover:
  6. IniRead, iniinfo, %inifilepath%, myinfo, info
  7.  
  8. if FileExist(inifilepath)
  9. {
  10. run, %iniinfo%
  11. Return
  12. }
  13. else
  14. {
  15. msgbox, Please nav to hello world
  16. FileSelectFile, SelectedFile, 3, , Open a file
  17. ;InputBox, SelectedFile, File path, Please nav to hello world.txt,
  18. if (SelectedFile = "")
  19. {
  20. MsgBox, You got to pick something.
  21. goto startover
  22. }
  23. else
  24. {
  25. IniWrite, %SelectedFile%,%inifilepath%, myinfo, info
  26. msgbox, ready to run
  27. }
  28. }
  29.  
  30.  
Advertisement
RAW Paste Data Copied
Advertisement