Advertisement
tabnation

ini 4

Apr 15th, 2021
99
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None
  1. myinipath=%A_Desktop%\ini write to script.ahk
  2.  
  3. f1::
  4. InputBox, info1, Enter Data, What string would you like to save for info1?
  5. InputBox, info2, Enter Data, What string would you like to save for info2?
  6. IniWrite, %info1%, %myinipath%, myinfo, iniinfo1
  7. IniWrite, %info2%, %myinipath%, myinfo, iniinfo2
  8. Return
  9.  
  10. f2::
  11. IniRead, Info1, %myinipath%, myinfo, INIinfo1
  12. IniRead, Info2, %myinipath%, myinfo, INIinfo2
  13. msgbox, INIinfo1=%Info1% `nINIinfo2=%Info2%
  14. return
  15.  
  16. ;Saved Data Here
  17. /*
  18. [myinfo]
  19. iniinfo1=thom b
  20. iniinfo2=cookies
  21. */
Advertisement
RAW Paste Data Copied
Advertisement