- 注册
- 2024/07/29
- 消息
- 122
C++:
while ( !( GetAsyncKeyState( exit_key ) & 0x8000 ) ) {
if ( GetAsyncKeyState( activation_key ) & 0x8000 ) {
mouse_event( MOUSEEVENTF_WHEEL, 0, 0, DWORD( -WHEEL_DELTA ), 0 );
// For flat surfaces 39 ticks is perfect
// 38 ticks for mirage mid jump for example...
custom_sleep( TICK_64_MS * 39.f );
send_left_control( true );
custom_sleep( TICK_64_MS * 8.f );
send_left_control( false );
mouse_event( MOUSEEVENTF_WHEEL, 0, 0, DWORD( -WHEEL_DELTA ), 0 );
// Normal bhop after jumpbug
while ( GetAsyncKeyState( activation_key ) & 0x8000 ) {
mouse_event( MOUSEEVENTF_WHEEL, 0, 0, DWORD( -WHEEL_DELTA ), 0 );
custom_sleep( TICK_64_MS * 2.f );
}
}