SRL Archive - Jr. Member General Help and Discussion

Opening console


Element17

2014-07-23 13:57:29

Hello!

I am trying to get the RS3 developer's console to open but I can't figure it out.

 
function C_OpenConsole(): boolean;
begin
if C_ConsoleOpen then
begin
result := true;
exit;
end;
CONSOLE_KEY := ('ยง');
typeSend(CONSOLE_KEY);
result := waitFunc(@C_ConsoleOpen, RandomRange(250, 500), 4000);
end

Now that doesn't work for me…the game says you need to press ALT + ` to open the console but I can't seem to get simba to send the right keys. Any have any insight on this or know how to get it to open?

Turpinator

2014-07-23 14:09:39

you would probably need to do something like…

yourcode stuff...
keydown(18); //or whatever is alt
//maybe a wait here
sendKeys("`", 40, 10);
//maybe a wait here too
keyup(18);

0x12 = alt
so 0x12 in decimal is 18.

or try keydown(192)/keyup(192) for the ` key

Element17

2014-07-23 16:04:48

Thank you sir!


function C_OpenConsole(): boolean;
begin
if C_ConsoleOpen then
begin
result := true;
exit;
end;
keyDown(18);
sendKeys('`', 40, 10);
keyUp(18);
result := waitFunc(@C_ConsoleOpen, RandomRange(250, 500), 4000);
end;

Turpinator

2014-07-27 21:49:29

i take it youre trying to use this? https://villavu.com/forum/showthread.php?t=83408

Element17

2014-07-28 14:50:18

From: Turpinator
i take it youre trying to use this? https://villavu.com/forum/showthread.php?t=83408


I am…I have updated his code to SRL-6.