Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. Font = Franklin Gothic
  2. Gui, +HwndIAMNOOBHwnd
  3. Gui, Margin, 0,0
  4. Gui, Color, 000000
  5. Gui, Font, q4 s30, %Font%
  6. Gui, Add, Text, c00FF00 x0 y0, I AM N00B. THE QUESTION IS THE AUTOHOTKEY THREAD.
  7. Gui, -Caption -Border +LastFound +AlwaysOnTop +E0x08000000 +E0x00000080
  8. WinSet, Transcolor, 000000
  9. Gui, Show, NA NoActivate Hide, I AM N00B Window
  10. DetectHiddenWindows, On
  11. WinGetPos, , , Width, Height, ahk_id %IAMNOOBHwnd%
  12. WinMove, ahk_id %IAMNOOBHwnd%, , (A_ScreenWidth/2 - Width/2), (A_ScreenHeight - 40)
  13. DllCall("AnimateWindow","UInt",IAMNOOBHwnd,"Int",1,"UInt",0x16)
  14. SetTimer, AlwaysOnTopTimer, 1000
  15. If FileExist("game.exe")
  16. Run, game.exe
  17. return
  18.  
  19. AlwaysOnTopTimer:
  20. WinGetPos, , , Width, Height, ahk_id %IAMNOOBHwnd%
  21. WinMove, ahk_id %IAMNOOBHwnd%, , (A_ScreenWidth/2 - Width/2), (A_ScreenHeight - 40)
  22. WinSet, AlwaysOnTop, ON, ahk_id %IAMNOOBHwnd%
  23. return
  24.  
  25. ~esc::
  26. WinClose, ahk_exe game.exe
  27. exitapp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement