This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
BhopCS2-V2.ahk
60 lines (50 loc) · 1.73 KB
/
BhopCS2-V2.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#Persistent
#NoEnv
DllCall("timeBeginPeriod", UInt, 1)
; Set the process priority to REALTIME_PRIORITY_CLASS
Process, Priority, , R
SetTitleMatchMode, 2
SetTitleMatchMode, Fast ; Faster matching
TICK_64_MS := 15.6
exit_key := "End"
activation_key := "xButton1"
Gui, Font, cFFFFFF
Gui, Add, Text, x10 y10 w50 h50, Important :
Gui, Font, cFFFFFF
Gui, Add, Text, x70 y10 w200 h50, Make sure put this command in console.
Gui, Font, c00FF1D
Gui, Add, Text, x110 y30 w220 h50, For de-subtick and consistent jumping, use this
Gui, Add, Text, x145 y50 w200 h50, alias +jump_ "+jump;+jump"
Gui, Add, Text, x145 y70 w200 h50, alias -jump_ "-jump;-jump;-jump"
Gui, Add, Text, x145 y90 w200 h50, bind mwheeldown +jump_;
Gui, Add, Text, x65 y110 w300 h50, or you can use the default one, it works fine but not consistently
Gui, Add, Text, x145 y130 w200 h50, bind mwheeldown +jump;
Gui, Font, s10 Bold cFF0000
Gui, Add, Text, x80 y150 w300 h60, hold mouse4 while ingame to activate
Gui, Font, s10 Bold cFF0000
Gui, Add, Text, x290 y9 w120 h50, modified by Ryuu
Gui, Font, s12 Bold
Gui, Color, 000000 ; Background color
Gui, Margin, 10, 10
Gui, Show, Center, CS2 Bhop Script
GuiControlGet, result
While !GetKeyState(exit_key, "P")
{
If GetKeyState(activation_key, "P")
{
MouseClick, WheelDown ; Simulate mouse wheel down
Sleep, % (TICK_64_MS * 1) ; Sleep for a specific time
MouseClick, WheelDown ; Simulate mouse wheel down
While GetKeyState(activation_key, "P")
{
MouseClick, WheelDown
Sleep, % (TICK_64_MS * 2)
}
}
else
{
Sleep, 1
}
}
DllCall("timeEndPeriod", UInt, 1)
ExitApp