Advertisement
Guest User

SpaceEngineers.ahk

a guest
Nov 14th, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. ;======================================================
  2. ;Space Engineers Hotkey Script - SpaceEngineers.ahk
  3. ;======================================================
  4.  
  5. ;======================================================
  6. ;General Initialization
  7. ;======================================================
  8. #NoEnv
  9. #IfWinActive Space Engineers
  10. SendMode Input
  11. ;======================================================
  12.  
  13. ;======================================================
  14. ;Ctrl+Alt+R - Reload
  15. ;======================================================
  16. $^!r::
  17. ;======================================================
  18. Reload
  19. ;======================================================
  20. Return
  21. ;======================================================
  22.  
  23. ;======================================================
  24. ; Ctrl+Alt+F12 - Windowed Fullscreen
  25. ;======================================================
  26. !^F12::
  27. ;======================================================
  28. WinGet, TempWindowID, ID, A
  29. If (WindowID != TempWindowID)
  30. {
  31. WindowID:=TempWindowID
  32. WindowState:=0
  33. }
  34. If (WindowState != 1)
  35. {
  36. WinGetPos, WinPosX, WinPosY, WindowWidth, WindowHeight, ahk_id %WindowID%
  37. WinSet, Style, ^0xC40000, ahk_id %WindowID%
  38. WinMove, ahk_id %WindowID%, , 0, 0, A_ScreenWidth, A_ScreenHeight
  39. }
  40. Else
  41. {
  42. WinSet, Style, ^0xC40000, ahk_id %WindowID%
  43. WinMove, ahk_id %WindowID%, , WinPosX, WinPosY, WindowWidth, WindowHeight
  44. }
  45. WindowState:=!WindowState
  46. ;======================================================
  47. Return
  48. ;======================================================
  49.  
  50. ;======================================================
  51. ; Ctrl+W/A/S/D/Q/E - Block Rotation
  52. ; (disable Control for Fire in keybinds, leave the defaults for rotation)
  53. ;======================================================
  54. ; Default binds:
  55. ; +X: Insert
  56. ; -X: Delete
  57. ; +Y: Home
  58. ; -Y: End
  59. ; +Z: PgUp
  60. ; -Z: PgDown
  61. ; ----------------
  62. ; Modifiers:
  63. ; ^: Ctrl / !: Alt / +: Shift
  64. ;======================================================
  65. ^w::Insert
  66. ^s::Delete
  67. ^a::Home
  68. ^d::End
  69. ^q::PgUp
  70. ^e::PgDn
  71. ;======================================================
  72.  
  73. ;======================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement