Advertisement
angiris

Steam Loginer

Mar 1st, 2017
893
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FileRead , data_from_txt , %A_ScriptDir%\logpass.txt
  2.  
  3. Loop , parse , data_from_txt , `n  ;  Use a parse loop to add in the necessary delimiter used by comboboxes.
  4.     combo_items := combo_items . "|" . A_LoopField
  5.  
  6. StringReplace , combo_items , combo_items , `r , , All  ;  remove the returns so we have a single line.
  7.  
  8.  
  9. Gui, +Alwaysontop +Toolwindow
  10. Gui, Show, W240 H100, Steam Loginer
  11. Gui,Add,Text,x10 y10 w65 h13,Choose acc:
  12. Gui,Add,DDL, x90 y10 w140 vLogpass,%combo_items%
  13. Gui,Add,Button, gLaunchSteam x10 y50 w60 h30, Steam
  14. ;Gui,Add,Button, gLaunchCSNZ x90 y50 w60 h30, КБка
  15. Gui,Add,Button, gCloseAll x170 y50 w60 h30, Kill
  16. Exit
  17.  
  18. LaunchSteam:
  19. Run, Steam.exe -login Logpass
  20. return
  21.  
  22. ;LaunchCSNZ:
  23. ;Run, steam://run/273110
  24. ;return
  25.  
  26. CloseAll:
  27. Process, Close, Steam.exe
  28. return
  29.  
  30. GuiClose:
  31. ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement