zamaro

Untitled

Feb 24th, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. #SingleInstance force
  2. ; #include C:\Users\Joey\Documents\AutoHotkey\Lib\Console.ahk
  3.  
  4. SetWorkingDir, %A_ScriptDir%
  5. file = %A_ScriptDir%\settings.ini
  6.  
  7. loop, 3
  8. {
  9. IniRead, prot%a_index%, %file%, settings, prot%a_index%
  10. IniRead, arm%a_index%, %file%, settings, arm%a_index%
  11. }
  12.  
  13. loop, 7
  14. IniRead, Un%a_index%, %file%, settings, Un%a_index%
  15. Return
  16.  
  17.  
  18. Gui:
  19. Gui, Add, CheckBox, vProt1 checked , Prot
  20. Gui, Add, CheckBox, varm3 checked, Arm
  21. Gui, Add, CheckBox, vUn1 Checked, Un1
  22. Gui, Add, CheckBox, vUn2 Checked, Un2
  23. Gui, Add, CheckBox, vUn3 Checked, Un3
  24. Gui, Add, CheckBox, vUn4 Checked, Un4
  25. Gui, Add, CheckBox, vUn5 Checked, Un5
  26. Gui, Add, CheckBox, vUn6 Checked, Un6
  27. Gui, Add, CheckBox, vUn7 Checked, un7
  28. Gui, Add, Button, x526 y387 w100 h30 gSave1, Save
  29. Gui, Show, , New GUI Window
  30. Return
  31.  
  32.  
  33. Save1:
  34. IniWrite, %prot1%, %file%, settings, prot1
  35. IniWrite, %prot3%, %file%, settings, prot3
  36. IniWrite, %arm3%, %file%, settings, arm3
  37. loop, 7
  38. IniWrite, % un%a_index%, %file%, settings, un%a_index%
  39. return
  40.  
  41. guiClose:
  42. esc::
  43. exitapp
Advertisement
Add Comment
Please, Sign In to add comment