Jump to content
Sign in to follow this  
Mavric

Hotkeys cause mouse to stutter

Recommended Posts

Mavric

I have a quick question. I have made some hotkey macros for a game I play that simply send a few different key presses with a single hotkey. The problem I am having is that often when I press the hotkey and I am moving my mouse around the cursor will stutter and chop around. This is an FPS game so you can see why that would be a problem. Is there anything I can do to alleviate this problem? Here are a few of the functions I wrote:

this one lets me use a couple of skills and switch a hot bar with 1 button

Func Thand()
    send("4");
    send("{NUMPAD2}");
    Send("^4");
    Sleep("500");
    send("4");
EndFunc

this one lets me cycle through some skills with 1 button

func NukeCycle()
    if $nukeX = "0" Then
        Send("'");
        $nukeX += 1;
    ElseIf $nukeX = "1" Then
        Send(";");
        $nukeX = 0;
    EndIf
    Sleep("200");   
EndFunc

Share this post


Link to post
Share on other sites
whim

Maybe because Sleep("200") is not proper AI syntax, try Sleep(200) ...

whim

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.