Sign in to follow this  
Followers 0
Black Griffon

Making a certain key repeat itself

2 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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...

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  
Followers 0