Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
testing with jumpbug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryuu43 authored Aug 19, 2024
1 parent f0aa817 commit 704fbc8
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions BhopCS2-V5.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#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 := 13.5
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, x25 y110 w400 h50, Testing with jumpbug *experiment - I am currently using . It's better than I thought*
Gui, Add, Text, x125 y130 w300 h50, alias +jb "-duck_;-duck_;-duck_;+jump_;+jump_"
Gui, Add, Text, x125 y150 w300 h50, alias -jb "-jump_;-jump_;-jump_"
Gui, Add, Text, x125 y170 w300 h50, bind "mwheeldown" "+jb"
Gui, Font, s10 Bold cFF0000
Gui, Add, Text, x80 y250 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

0 comments on commit 704fbc8

Please sign in to comment.