Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need help with ?'hold down time'? with keys....
#1
Hi.
I am only new to Quick Macro (downloaded it today). So plz don't think I'm a total noob and moron.

I'm trying to make a bot for an online game called maplestory. It's a 2d sidescrolling game, so the use of the arrow keys is incorporated.

My problem :
I create the macro, allowing me to fight and pick up items automatically. My problem is my movement.
I use ' key L' and 'key R' to represent my left and right arrows on my keyboard, but I don't know how to make them run for a set period of time - like how long I would hold down my arrow keys.
For this reason my charcter moves a tiny step and only a tiny step. I've added numerous L's and R's to my macro only to have the keys typed simultaneously. I've created some to look like this -
key L
key L
key L

but it too did not work for me.

My question, how can I make a macro that will allow me to keep the keys 'held down' for the amount of time i need so my person can properly move across the screen.

Or, if anyone could be bothered and so kind, could they plz make the macro for me. ^^
I'll show you what my macro currently looks like to give you an idea of how I'd like things, and to explain my key settings in-game.

wait 10
rep
key A - attack ( i can change it to 'n' if preferred)
key L - move left
key z - pick up item
key A - attack
key L - move left
key z - pick up item
key A - attack
key L - move left
key z - pick up item
key A - attack
key L - move left
key z - pick up item
key A - attack
key L - move left
key z - pick up item
key A - attack
key R - move right
key z - pick up item
key A - attack
key R - move right
key z - pick up item
key A - attack
key R - move right
key z - pick up item
key A - attack
key R - move right
key z - pick up item
key A - attack
key R - move right
key z - pick up item

Ok. So thats how I need it to look.
Maybe add a delay of 0.3 - 0.8 secs between each command.
Like I said the only problem is that when it moves, it barely shows.

Thanx alot to any1 who helps! ^^
Cyas l8rs.
#2
Use function KeyRepeat. It is attached. Download and import.

Usage examples:

Code:
Copy      Help
KeyRepeat VK_LEFT 0.5 ;;hold down LEFT for 0.5 second
KeyRepeat VK_RIGHT 1 ;;hold down RIGHT for 1 second
KeyRepeat VK_LEFT 0.2 10 ;;hold down LEFT for 0.2 seconds; time between keystrokes is 10 ms


Attached Files
.qml   KeyRepeat.qml (Size: 768 bytes / Downloads: 467)


Forum Jump:


Users browsing this thread: 1 Guest(s)