SRL Archive - General

SendKeys in Simba?


mr. pali

2012-12-14 18:04:10

Hey so I don't know if any of you have seen my autofighter (it's linked in my sig), but I'm working on action bar support. I want to use sendkeys or a similar function to accomplish this.

What can you tell me about sendkeys? I don't even understand the paramaters…

What other options do I have thanks?

Any and all help/suggestions/whatever appreciated!

thanks

pali

DannyRS

2012-12-14 18:07:34

On phone right now, but i think it has a true or false at the end for if you want to type then press enter,

I cant show you how to use it atm, but if you go look for the "TypeFast" in one of my scripts, or flights, think he has the same method for dropping via EoC

Be careful for the true or false tho as i think its reversed, and you dont want to press enter when using EoC bar obviously :)

One of the includes doesent press enter but i cant remember which, the documentation if you google it will tell you, or hopefully someone will be able to write you an example

P1ng

2012-12-14 18:22:15

SendKeys(s: String; keywait: LongInt; keymodwait: LongInt);

s = what you want it to type
keywait = time to wait in ms between key strokes
keymodwait = time in ms to vary keywait (i believe).

So you might do something like this: SendKeys('0', 50, 20);
I'd say the last two parameters are quite irrelevant seeing as you are only pressing 1 key.

DannyRS

2012-12-14 18:25:35

Random variables still very important to avoid detection systems, might not be needed, but put it in anyway :) i also notice if you press a key too fast down and up, RS will not register you pressing the key especially for the the EoC bar

Slashed

2012-12-14 18:30:11

Even if it randomises in the keymodwait, it's also good to randomise both parameters (the keywait and the keymodwait)

Ex: SendKeys('0', 15+RandomRange(15,100), 20+RandomRange(10,30));

Can be done either way.

mr. pali

2012-12-15 18:23:56

Thanks guys. Implemented this into my AIO fighter. Check it out, its in my siggy :)