SRL Archive - OSR Help

[HELP] Can't type problem


Pietro

2011-01-29 18:19:31

Hello.

I'm scripting for a game called Phatansy Star Online Blue Burst, but Simba can't type there…
Actually it can, but only letters/numbers, not keys like BACKSPACE, ENTER, F4.
Just like Virtual Keyboard from Windows.

Works perfectly when trying at Notepad (tested backspace, F5, enter and worked fine)

So, what can i do? :duh:

Pietro

2011-01-30 09:26:21

Ok, i did something wierd to workaround this sh**.

Using AutoHotkey to send the keys to the game like:

@Simba: Press VK_F15
@Autokey: Read VK_F15 press and send the desired key like F4

@AutoHotkey:
F15::
{
SendMode Event
SetKeyDelay, 0, 100, Event
Send {F4}
Return
}
F13::
{
SendMode Event
SetKeyDelay, 0, 100, Event
Send {Up}
Return
}
F14::
{
SendMode Event
SetKeyDelay, 0, 100, Event
Send {Down}
Return
}
F16::
{
SendMode Event
SetKeyDelay, 0, 100, Event
Send {Backspace}
Return
}
F17::
{
SendMode Event
SetKeyDelay, 0, 100, Event
Send {Enter}
Return
}

@Simba:
Procedure F4;
begin
PressKey(VK_F15);
Wait(200+random(500));
end;

Pietro

2011-01-30 12:27:00


**BANNED The Man

2011-01-30 12:53:46

I see you trollin.. you hatin…

You seemed to have figured out your problem. :)

-Boom