Jump to content

Making a certain key repeat itself


Recommended Posts

I'm playing a game called mount and blade, I'm trying out something which requires me to use the level up code several times (like a few thousand times at least). The cheat is simply hold ctrl and press x". I can wedge the ctrl key just fine with a piece of plastic or paper, but I don't feel like pressing the x key again and again.

I'm very new to scripting in general, so any help is very apreciated.

Link to comment
Share on other sites

I'm playing a game called mount and blade, I'm trying out something which requires me to use the level up code several times (like a few thousand times at least). The cheat is simply hold ctrl and press x". I can wedge the ctrl key just fine with a piece of plastic or paper, but I don't feel like pressing the x key again and again.

I'm very new to scripting in general, so any help is very apreciated.

HotkeySet('{esc}','_Terminate')

While 1 
    Sleep(10)
    Send('x')
Wend

Func _Terminate()
     Exit
Endfunc
Edited by strate
INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station...
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...