Advertisement
wEisB0145

Overjoint modified source

Mar 20th, 2017
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; <COMPILER: v1.1.25.01>
  2. #SingleInstance, Force
  3. #Persistent
  4. #NoEnv
  5. #Warn
  6. SendMode, Input
  7. SetWorkingDir, %A_ScriptDir%
  8. Application := {Name: "UPDATED", Version: "1"}
  9. Window := {Width: 600, Height: 400, Title: Application.Name}
  10. Navigation := {Label: ["Aim Key", "Aim Settings", "Aim Speed", "FoV Range", "Pause Settings", "---", "Help", "---"]}
  11. Box_Init(C="FF0000") {
  12. Gui, 96: -Caption +ToolWindow +E0x20
  13. Gui, 96: Color, % C
  14. Gui, 97: -Caption +ToolWindow +E0x20
  15. Gui, 97: Color, % C
  16. Gui, 98: -Caption +ToolWindow +E0x20
  17. Gui, 98: Color, % C
  18. Gui, 99: -Caption +ToolWindow +E0x20
  19. Gui, 99: Color, % C
  20. }
  21. Box_Draw(X, Y, W, H, T="1", O="I") {
  22. If(W < 0)
  23. X += W, W *= -1
  24. If(H < 0)
  25. Y += H, H *= -1
  26. If(T >= 2)
  27. {
  28. If(O == "O")
  29. X -= T, Y -= T, W += T, H += T
  30. If(O == "C")
  31. X -= T / 2, Y -= T / 2
  32. If(O == "I")
  33. W -= T, H -= T
  34. }
  35. Gui, 96: Show, % "x" X " y" Y " w" W " h" T " NA", Horizontal 1
  36. Gui, 96:+AlwaysOnTop
  37. Gui, 98: Show, % "x" X " y" Y + H " w" W " h" T " NA", Horizontal 2
  38. Gui, 98:+AlwaysOnTop
  39. Gui, 97: Show, % "x" X " y" Y " w" T " h" H " NA", Vertical 1
  40. Gui, 97:+AlwaysOnTop
  41. Gui, 99: Show, % "x" X + W " y" Y " w" T " h" H " NA", Vertical 2
  42. Gui, 99:+AlwaysOnTop
  43. }
  44. Box_Destroy() {
  45. Loop, 4
  46. Gui, % A_Index + 95 ":  Destroy"
  47. }
  48. Box_Hide() {
  49. Loop, 4
  50. Gui, % A_Index + 95 ":  Hide"
  51. }
  52. Box_Init_Target(C="FF0000") {
  53. Gui, 90: -Caption +ToolWindow +E0x20
  54. Gui, 90: Color, % C
  55. Gui, 91: -Caption +ToolWindow +E0x20
  56. Gui, 91: Color, % C
  57. Gui, 92: -Caption +ToolWindow +E0x20
  58. Gui, 92: Color, % C
  59. Gui, 93: -Caption +ToolWindow +E0x20
  60. Gui, 93: Color, % C
  61. }
  62. Box_Draw_Target(X, Y, W, H, T="1", O="I") {
  63. If(W < 0)
  64. X += W, W *= -1
  65. If(H < 0)
  66. Y += H, H *= -1
  67. If(T >= 2)
  68. {
  69. If(O == "O")
  70. X -= T, Y -= T, W += T, H += T
  71. If(O == "C")
  72. X -= T / 2, Y -= T / 2
  73. If(O == "I")
  74. W -= T, H -= T
  75. }
  76. Gui, 90: Show, % "x" X " y" Y " w" W " h" T " NA", Horizontal 1
  77. Gui, 90:+AlwaysOnTop
  78. Gui, 92: Show, % "x" X " y" Y + H " w" W " h" T " NA", Horizontal 2
  79. Gui, 92:+AlwaysOnTop
  80. Gui, 91: Show, % "x" X " y" Y " w" T " h" H " NA", Vertical 1
  81. Gui, 91:+AlwaysOnTop
  82. Gui, 93: Show, % "x" X + W " y" Y " w" T " h" H " NA", Vertical 2
  83. Gui, 93:+AlwaysOnTop
  84. }
  85. Box_Destroy_Target() {
  86. Loop, 4
  87. Gui, % A_Index + 89 ":  Destroy"
  88. }
  89. Box_Hide_Target() {
  90. Loop, 4
  91. Gui, % A_Index + 89 ":  Hide"
  92. }
  93. Box_Show_Target() {
  94. Loop, 4
  95. Gui, % A_Index + 89 ":  Show"
  96. }
  97. inicount := 9
  98. fileread,settings,settings.ini
  99. stringsplit,settings,settings,`n
  100. if !(fileexist("settings.ini")) || (settings0-3 != inicount){
  101. iniread,sen_Short,settings.ini,settings,senShort, 5
  102. iniread,sen_Long,settings.ini,settings,senLong, 6
  103. iniread,Fov_X,settings.ini,settings,FovX, 2
  104. iniread,Fov_Y,settings.ini,settings,FovY, 2
  105. iniread,AimShort_X,settings.ini,settings,AimShortX, 58
  106. iniread,AimShort_Y,settings.ini,settings,AimShortY, 85
  107. iniread,AimLong_X,settings.ini,settings,AimLongX, 40
  108. iniread,AimLong_Y,settings.ini,settings,AimLongY, 70
  109. }
  110. Menu, Tray, Icon, Shell32.dll, 175
  111. Menu, Tray, Tip, % Application.Name
  112. Menu, Tray, NoStandard
  113. Gui, +LastFound -Resize +HwndhGui1
  114. Gui, Color, FFFFFF
  115. Gui, Add, Tab2, % " x" -999999 " y" -999999 " w" 0 " h" 0 " -Wrap +Theme vTabControl", % ""
  116. Gui, Tab
  117. Gui, Add, Picture, % "x" -999999 " y" -999999 " w" 4 " h" 32 " vpMenuHover +0x4E +HWNDhMenuHover",
  118. Gui, Add, Picture, % "x" 0 " y" 18 " w" 4 " h" 32 " vpMenuSelect +0x4E +HWNDhMenuSelect",
  119. Gui, Font, s9 c808080, Segoe UI
  120. Loop, % Navigation.Label.Length() {
  121. GuiControl,, TabControl, % Navigation.Label[A_Index] "|"
  122. If (Navigation.Label[A_Index] = "---") {
  123. Continue
  124. }
  125. Gui, Add, Text, % "x" 18 " y" (32*A_Index)-14 " h" 32 " +0x200 gMenuClick vMenuItem" . A_Index, % Navigation.Label[A_Index]
  126. Gui, Add, Text, x18 y280 w150, [F1] To Start
  127. Gui, Add, Text, x18 y300 h150, [F2] To Reload
  128. }
  129. Gui, Font
  130. Gui, Font, s11 c000000, Segoe UI
  131. Gui, Add, Text, % "x" 192 " y" 18 " w" (Window.Width-192)-14 " h" 32 " +0x200 vPageTitle", % ""
  132. Gui, Font
  133. Gui, Add, Picture, % "x" 192 " y" 50 " w" (Window.Width-192)-14 " h" 1 " +0x4E +HWNDhDividerLine",
  134. Gui, Tab, 1
  135. Gui, Add, Checkbox, x192 y60 w150 vaimtype, Left Mouse Button
  136. Gui, Add, Checkbox, x192 y80 w150 vaimtype1, Right Mouse Button
  137. Gui, Add, Checkbox, x192 y100 w150 vaimtype3, Mouse Button 4
  138. Gui, Add, Checkbox, x192 y120 w150 vaimtype4, Mouse Button 5
  139. Gui, Add, Checkbox, x192 y140 w150 vaimtype5, Middle Mouse Button
  140. Gui, Add, ActiveX, x192 y200 w308 h200, mshtml:<img src='http://i.imgur.com/k88k6dd.png' />
  141. Gui, Tab, 2
  142. Gui, Add, Text, % "x" 192 " y" 66 " w" (Window.Width-192)-14, % "Short Range -"
  143. Gui, Add, Text, % "x" 272 " y" 66 " w" (Window.Width-192)-14, % "X:"
  144. Gui, Add, Edit, x292 y61 w30 vxa, % AimShort_X
  145. Gui, Add, Text, % "x" 342 " y" 66 " w" (Window.Width-192)-14, % "Y:"
  146. Gui, Add, Edit, x362 y61 w30 vxy, % AimShort_Y
  147. Gui, Add, Text, % "x" 192 " y" 106 " w" (Window.Width-192)-14, % "Long Range -"
  148. Gui, Add, Text, % "x" 272 " y" 106 " w" (Window.Width-192)-14, % "X:"
  149. Gui, Add, Edit, x292 y101 w30 vxxa, % AimLong_X
  150. Gui, Add, Text, % "x" 342 " y" 106 " w" (Window.Width-192)-14, % "Y:"
  151. Gui, Add, Edit, x362 y101 w30 vxxy, % AimLong_Y
  152. Gui, Add, ActiveX, x192 y200 w308 h200, mshtml:<img src='http://i.imgur.com/k88k6dd.png' />
  153. Gui, Tab, 3
  154. Gui, Add, Text, % "x" 192 " y" 66 " w" (Window.Width-192)-14, % "Short Range Speed -"
  155. Gui, Add, Edit, x302 y61 w30 vrx, % sen_Short
  156. Gui, Add, Text, % "x" 192 " y" 106 " w" (Window.Width-192)-14, % "Long Range Speed -"
  157. Gui, Add, Edit, x302 y101 w30 vrxl, % sen_Long
  158. Gui, Add, ActiveX, x192 y200 w308 h200, mshtml:<img src='http://i.imgur.com/k88k6dd.png' />
  159. Gui, Tab, 4
  160. Gui, Add, Text, % "x" 192 " y" 66 " w" (Window.Width-192)-14, % "X - Axis :"
  161. Gui, Add, Edit, x302 y61 w30 vxrange, % Fov_X
  162. Gui, Add, Text, % "x" 192 " y" 106 " w" (Window.Width-192)-14, % "Y - Axis :"
  163. Gui, Add, Edit, x302 y101 w30 vyrange, % Fov_Y
  164. Gui, Add, Text, % "x" 192 " y" 150 " w" (Window.Width-192)-14, % "Lower the Number Larger the FoV"
  165. Gui, Add, ActiveX, x192 y200 w308 h200, mshtml:<img src='http://i.imgur.com/k88k6dd.png' />
  166. Gui, Tab, 5
  167. Gui, Add, Text, % "x" 192 " y" 66 " w" (Window.Width-192)-14, % "Here you can select your own Pause key,"
  168. Gui, Add, Text, % "x" 192 " y" 86 " w" (Window.Width-192)-14, % "Please Note: You have to use a Key combo"
  169. Gui, Add, Text, % "x" 192 " y" 106 " w" (Window.Width-192)-14, % "For Example: ALT+A"
  170. Gui, Add, Hotkey, x192 y135 w45 h20 vHK gPauseKey,
  171. Gui, Show,,Dynamic Hotkeys
  172. Gui, Add, ActiveX, x192 y200 w308 h200, mshtml:<img src='http://i.imgur.com/k88k6dd.png' />
  173. Gui, Tab, 6
  174. Gui, Tab, 7
  175. Gui, Add, Link, x192 y66, Need help? `n`nSet to Windowless, `n`nIf your problem is not solved: Disable aero and remember to press F1
  176. Gui, Add, ActiveX, x192 y200 w308 h200, mshtml:<img src='http://i.imgur.com/k88k6dd.png' />
  177. Gui, Tab, 8
  178. Gui, Show, % " w" Window.Width " h" Window.Height, % Window.Title
  179. GoSub, OnLoad
  180. return
  181. OnLoad:
  182. SetPixelColor("4C4C4C", hMenuHover)
  183. SetPixelColor("0E0C0D", hMenuSelect)
  184. SetPixelColor("0E0C0D", hDividerLine)
  185. SelectMenu("MenuItem1")
  186. OnMessage(0x200, "WM_MOUSEMOVE")
  187. return
  188. MenuClick:
  189. SelectMenu(A_GuiControl)
  190. return
  191. SelectMenu(Control) {
  192. Global
  193. CurrentMenu := Control
  194. Loop, % Navigation.Label.Length() {
  195. SetControlColor("808080", Navigation.Label[A_Index])
  196. }
  197. SetControlColor("000000", Control)
  198. GuiControl, Move, pMenuSelect, % "x" 0 " y" (32*SubStr(Control, 9, 2))-14 " w" 4 " h" 32
  199. GuiControl, Choose, TabControl, % SubStr(Control, 9, 2)
  200. GuiControl,, PageTitle, % Navigation.Label[SubStr(Control, 9, 2)]
  201. }
  202. WM_MOUSEMOVE(wParam, lParam, Msg, Hwnd) {
  203. Global
  204. If (InStr(A_GuiControl, "MenuItem") = true && A_GuiControl != CurrentMenu) {
  205. GuiControl, Move, pMenuHover, % "x" 0 " y" (32*SubStr(A_GuiControl, 9, 2))-14 " w" 4 " h" 32
  206. } Else If (InStr(A_GuiControl, "MenuItem") = false || A_GuiControl = CurrentMenu) {
  207. GuiControl, Move, pMenuHover, % "x" -999999 " y" -999999 " w" 4 " h" 32
  208. }
  209. }
  210. SetControlColor(Color, Control) {
  211. Global
  212. GuiControl, % "+c" Color, % Control
  213. GuiControlGet, ControlText,, % Control
  214. GuiControlGet, ControlHandle, Hwnd, % Control
  215. DllCall("SetWindowText", "Ptr", ControlHandle, "Str", ControlText)
  216. }
  217. SetPixelColor(Color, Handle) {
  218. VarSetCapacity(BMBITS, 4, 0), Numput("0x" . Color, &BMBITS, 0, "UInt")
  219. hBM := DllCall("Gdi32.dll\CreateBitmap", Int, 1, Int, 1, UInt, 1, UInt, 24, Ptr, 0)
  220. hBM := DllCall("User32.dll\CopyImage", Ptr, hBM, UInt, 0, Int, 0, Int, 0, UInt, 0x2008)
  221. DllCall("Gdi32.dll\SetBitmapBits", Ptr, hBM, UInt, 3, Ptr, &BMBITS)
  222. return DllCall("User32.dll\SendMessage", Ptr, Handle, UInt, 0x172, Ptr, 0, Ptr, hBM)
  223. }
  224. F1::
  225. #Persistent
  226. #KeyHistory, 0
  227. #NoEnv
  228. #HotKeyInterval 1
  229. #MaxHotkeysPerInterval 2511
  230. #InstallKeybdHook
  231. #UseHook
  232. #SingleInstance, Force
  233. SetKeyDelay,-1, 8
  234. SetControlDelay, -1
  235. SetMouseDelay, 0
  236. SetWinDelay,-1
  237. SendMode, InputThenPlay
  238. SetBatchLines,-1
  239. ListLines, Off
  240. CoordMode, Mouse, client
  241. PID := DllCall("GetCurrentProcessId")
  242. Process, Priority, %PID%, Normal
  243. ZeroX := 960
  244. ZeroY := 540
  245. CFovX := 80
  246. CFovY := 200
  247. ScanL := 660
  248. ScanR := 1250
  249. ScanT := 280
  250. ScanB := 610
  251. GuiControlget, rX
  252. GuiControlget, xa
  253. GuiControlget, ya
  254. GuiControlget, xrange
  255. GuiControlget, yrange
  256. Loop, {
  257. Gui,Submit, Nohide
  258. if (aimtype=1)
  259. {
  260. GetKeyState, Mouse2, LButton, P
  261. GoSub MouseMoves2
  262. }
  263. if (aimtype1=1)
  264. {
  265. GetKeyState, Mouse2, RButton, P
  266. GoSub MouseMoves2
  267. }
  268. if (aimtype3=1)
  269. {
  270. GetKeyState, Mouse2, XButton1, P
  271. GoSub MouseMoves2
  272. }
  273. if (aimtype4=1)
  274. {
  275. GetKeyState, Mouse2, XButton2, P
  276. GoSub MouseMoves2
  277. }
  278. if (aimtype5=1)
  279. {
  280. GetKeyState, Mouse2, MButton, P
  281. GoSub MouseMoves2
  282. }
  283. imageSearch, AimPixelX, AimPixelY, 0 + (A_Screenwidth * (xrange/10)), 0 + (A_Screenheight * (yrange/10)), A_Screenwidth - (A_Screenwidth * (xrange/10)), A_Screenheight - (A_Screenheight * (yrange / 10)),  *4 hhp2.bmp
  284. GoSub GetAimOffset1
  285. GoSub GetAimMoves1
  286. if(ErrorLevel = 1){
  287. imageSearch, AimPixelX, AimPixelY, 0 + (A_Screenwidth * (xrange/10)), 0 + (A_Screenheight * (yrange/10)), A_Screenwidth - (A_Screenwidth * (xrange/10)), A_Screenheight - (A_Screenheight * (yrange / 10)),  *4 hhp.bmp
  288. GoSub GetAimOffset2
  289. GoSub GetAimMoves1
  290. }
  291. }
  292. MouseMoves2:
  293. If ( Mouse2 == "D" ) {
  294. DllCall("mouse_event", uint, 1, int, MoveX, int, MoveY, uint, 0, int, 0)
  295. }
  296. Return
  297. MouseMoves11:
  298. If ( Mouse2 == "U" ) {
  299. DllCall("mouse_event", uint, 1, int, MoveX, int, MoveY, uint, 0, int, 0)
  300. }
  301. GetAimOffset1:
  302. Gui,Submit, Nohide
  303. AimX := AimPixelX - ZeroX +xa
  304. AimY := AimPixelY - ZeroY +xy
  305. If ( AimX+5 > 0) {
  306. DirX := rx / 10
  307. }
  308. If ( AimX+5 < 0) {
  309. DirX := (-rx) / 10
  310. }
  311. If ( AimY+2 > 0 ) {
  312. DirY := rX /10 *0.5
  313. }
  314. If ( AimY+2 < 0 ) {
  315. DirY := (-rx) /10 *0.5
  316. }
  317. AimOffsetX := AimX * DirX
  318. AimOffsetY := AimY * DirY
  319. Return
  320. GetAimOffset2:
  321. Gui,Submit, Nohide
  322. AimX := AimPixelX - ZeroX +xxa
  323. AimY := AimPixelY - ZeroY +xxy
  324. If ( AimX+5 > 0) {
  325. DirX := rxl / 10
  326. }
  327. If ( AimX+5 < 0) {
  328. DirX := (-rxl) / 10
  329. }
  330. If ( AimY+2 > 0 ) {
  331. DirY := rxl /10 *0.5
  332. }
  333. If ( AimY+2 < 0 ) {
  334. DirY := (-rxl) /10 *0.5
  335. }
  336. AimOffsetX := AimX * DirX
  337. AimOffsetY := AimY * DirY
  338. Return
  339. GetAimMoves1:
  340. RootX := Ceil(( AimOffsetX ** ( 1 )))
  341. RootY := Ceil(( AimOffsetY ** ( 1 )))
  342. MoveX := RootX * DirX * 2
  343. MoveY := RootY * DirY * 2
  344. Return
  345. reload:
  346. SleepF1:
  347. SleepDuration = 1
  348. TimePeriod = 1
  349. DllCall("Winmm\timeBeginPeriod", uint, TimePeriod)
  350. Iterations = 1
  351. StartTime := A_TickCount
  352. Loop, %Iterations% {
  353. DllCall("Sleep", UInt, TimePeriod)
  354. }
  355. DllCall("Winmm\timeEndPeriod", UInt, TimePeriod)
  356. Return
  357. DebugTool1:
  358. MouseGetPos, MX, MY
  359. ToolTip, %AimOffsetX% | %AimOffsetY%
  360. ToolTip, %AimX% | %AimY%
  361. ToolTip, %IntAimX% | %IntAimY%
  362. ToolTip, %RootX% | %RootY%
  363. ToolTip, %MoveX% | %MoveY% || %MX% %MY%
  364. Return
  365. PauseKey:
  366. If HK in +,^,!,+^,+!,^!,+^!
  367. return
  368. Gui, Submit, NoHide
  369. If StrLen(HK) = 1
  370. HK := "~" HK
  371. Hotkey, %HK%, NewPauseKey, On
  372. savedHK := HK
  373. return
  374. NewPauseKey:
  375. pause,toggle,1
  376. {
  377. if(A_IsPaused=0)
  378. {
  379. Gui, Add, Text, % "x" (Window.Width-170)-10 " y" (Window.Height-24)-10 " w" 80 " h" 24, % "Hack Running"
  380. Soundbeep
  381. }
  382. if(A_IsPaused=0)
  383. {
  384. Gui, Add, Text, % "x" (Window.Width-170)-10 " y" (Window.Height-24)-10 " w" 80 " h" 24, % "Hack Running"
  385. Soundbeep
  386. }
  387. }
  388. if(A_IsPaused=1)
  389. {
  390. Gui, Add, Text, % "x" (Window.Width-170)-10 " y" (Window.Height-24)-10 " w" 80 " h" 24, % "Hack Paused"
  391. Soundbeep
  392. }
  393. if(A_IsPaused=1)
  394. {
  395. Gui, Add, Text, % "x" (Window.Width-170)-10 " y" (Window.Height-24)-10 " w" 80 " h" 24, % "Hack Paused"
  396. Soundbeep
  397. }
  398. return
  399. F2::
  400. Reload
  401. GuiClose:
  402. gui,submit
  403. iniwrite,%rx%,settings.ini,settings,senShort
  404. iniwrite,%rxl%,settings.ini,settings,senLong
  405. iniwrite,%xrange%,settings.ini,settings,FovX
  406. iniwrite,%yrange%,settings.ini,settings,FovY
  407. iniwrite,%xa%,settings.ini,settings,AimShortX
  408. iniwrite,%xy%,settings.ini,settings,AimShortY
  409. iniwrite,%xxa%,settings.ini,settings,AimLongX
  410. iniwrite,%xxy%,settings.ini,settings,AimLongY
  411. ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement