Advertisement
tabnation

ini check test

May 29th, 2022
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. f1::
  2. ;add them all
  3. IfNotExist C:\Users\%A_USERNAME%\Desktop\initest.ini
  4. {
  5. FileAppend, [Hotkeys]`nhk1`nhk2`nhk3`nhk4`nhk5`nhk6=, C:\Users\%A_USERNAME%\Desktop\initest.ini
  6. }
  7. FileRead, invar, C:\Users\%A_USERNAME%\Desktop\initest.ini
  8. sleep 500
  9. ;RegExMatch(filetocheck,"is)(?<=hk15=)\S+",invar) ;grabs next word
  10. filetocheck := RegExMatch(invar, "i)^hk15=")
  11. If (filetocheck= "") ;check if 15 is blank
  12. {
  13. msgbox, need to make hotkeys!
  14. Return
  15. }
  16. msgbox, good to go
  17. ;other code if not blank
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement