Guest User

Untitled

a guest
Apr 17th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.16 KB | None | 0 0
  1. #NoTrayIcon
  2. #include <winapi.au3>
  3. #Include <GDIPlus.au3>
  4. $options = GUICreate('Options', 145, 100, Default, Default, 0x10C80000, 8)
  5. GUICtrlCreateGroup('Game', 5, 0, 60, 97)
  6. GUIStartGroup()
  7. GUICtrlCreateRadio('Classic', 10, 15, 50, 20)
  8. GUICtrlSetState(-1, 1)
  9. GUICtrlCreateRadio('Normal', 10, 45, 50, 20)
  10. GUICtrlCreateRadio('Super', 10, 75, 50, 20)
  11.  
  12. GUICtrlCreateGroup('Mode', 70, 0, 70, 97)
  13. GUIStartGroup()
  14. GUICtrlCreateRadio('Easy', 75, 15, 60, 20)
  15. GUICtrlSetState(-1, 1)
  16. GUICtrlCreateRadio('Normal', 75, 35, 60, 20)
  17. GUICtrlCreateRadio('Hard', 75, 55, 60, 20)
  18. GUICtrlCreateRadio('Extreme', 75, 75, 60, 20)
  19.  
  20. $game = GUICreate('Game', 480, 455, Default, Default, 0x10C00000, 0x80008, $options)
  21. GUISetBkColor(0xABCDEF, $game)
  22. _WinAPI_SetLayeredWindowAttributes($game, 0xABCDEF, 255)
  23.  
  24. _GDIPlus_Startup()
  25. $pen = _GDIPlus_PenCreate(0xFFFFFFFF)
  26. $graphic = _GDIPlus_GraphicsCreateFromHWND($game)
  27.  
  28. _GDIPlus_GraphicsDrawLine($graphic, 0, 0, 0, 0, $pen)
  29.  
  30. While 1
  31.     $msg = GUIGetMsg(1)
  32.     If $msg[1] = $options Then
  33.         Switch $msg[0]
  34.             Case -3
  35.                 ExitLoop
  36.         EndSwitch
  37.     EndIf
  38. WEnd
  39.  
  40. _GDIPlus_PenDispose($pen)
  41. _GDIPlus_GraphicsDispose($graphic)
  42. _GDIPlus_Shutdown()
Add Comment
Please, Sign In to add comment