Code Monkey home page Code Monkey logo

Comments (3)

uberhalit avatar uberhalit commented on June 16, 2024

Hello,
well yes thats possible. In Line 125 all hotkeys get registered. One may change it to:

const uint VK_ADD = 0x6B;
const uint VK_SUBTRACT = 0x6D;
if (!RegisterHotKey(hWnd, 9009, MOD_CONTROL, VK_M) || !RegisterHotKey(hWnd, 9010, MOD_CONTROL, VK_P) || !RegisterHotKey(hWnd, 9011, 0x0000, VK_ADD) || !RegisterHotKey(hWnd, 9012, 0x0000, VK_SUBTRACT))

which would give you two more hotkey events '9011' for Numpad+ and '9012' for Numpad-.
These events can be handled like the other two in the message queue then, line 195

else if (msg.wParam.ToInt32() == 9011)   // increase speed
{
    handled = true;
    bool isNumber = Int32.TryParse(this.tbGameSpeed.Text, out int gameSpeed);
    if (isNumber)
    {
        this.tbGameSpeed.Text = (gameSpeed + 5).ToString();
        PatchGameSpeed();
    }
}
else if (msg.wParam.ToInt32() == 9012)   // decrease speed
{
    handled = true;
    bool isNumber = Int32.TryParse(this.tbGameSpeed.Text, out int gameSpeed);
    if (isNumber)
    {
        if (gameSpeed < 5)
            gameSpeed = 5;
        this.tbGameSpeed.Text = (gameSpeed - 5).ToString();
        PatchGameSpeed();
    }
}

These hotkeys will still be limited to the game running in (borderless) windowed mode though, if you need a build with working hotkeys in fullscreen let me know.

from sekirofpsunlockandmore.

pips-queek avatar pips-queek commented on June 16, 2024

from sekirofpsunlockandmore.

pips-queek avatar pips-queek commented on June 16, 2024

from sekirofpsunlockandmore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.