rPE SendKeys

02/02/2010 17:37 shete#1
HI,

is it possible to use "SendKeys" in rPE custom filters??

so that when i recieved a packet it will press/send a specified KEY...

for example

when i recieved the packet "00522F" it will send/press "F1" ..

sample packet: (just an example)

setlength(SendRecvList[0].RecvHex,1);
SendRecvList[0].RecvHex[0] := '00522F';
SendRecvList[0].SendKeys('F1');
SendRecvList[0].count := 1;

or

CurHex := GetBufferAsHex(buf, len);
if (pos('00522F',CurHex) <> 0) then
begin
SendKeys('F1');
end;

OTHER SendKeys written in delphi:
[Only registered and activated users can see links. Click Here To Register...]

thanks in advance..
02/03/2010 18:00 Saekung#2
I don't know if rpe executes the filter as a normal delphi program, or only uses it for himself.
Because it should "press the key" on the ragnarok client.
I never used rpe, and don't know delphi.
Why don't you just test by yourself?

And why would you press a key? whereas you could send what's binded on the key?
02/04/2010 09:35 shete#3
thanks for the reply...

Quote:
And why would you press a key? whereas you could send what's binded on the key?
because item( in the inventory ) packets changes everytime you re/login..

for example..packet for equiping "1 hand sword" is "10 00 01 00 0A"

when you relog..the packet changes..like "10 00 0B 00 0A"

sendkey is better than sending a packet for equiping an item

SENDKEY: press F1 ( which is 1 hand sword in the F1 slot) - doesnt change
SEND PACKET: send packet 10 00 0B 00 0A (which is the packet for equiping 1hand sword) -changes everytime you login
02/04/2010 15:09 Saekung#4
I thought rpe was able to manage that (sorry i never used rpe as i said)
I'm really not in rpe and delphi =o. Have you already tested to use sendkey?
Just test your stuff, and see if it works xD.

And if you still can't make it work, you can still try to use openkore ;p