Jump to content
Joeyroyden

Help with arrow keys.

Recommended Posts

I'm working on a script in scar 3.40 for a game that requires the use of arrow keys.

 

i've tried vkeydown(vk_up) method but...

The problem with this option is that its using the number pad up arrow [num 8] instead of the up arrow and the game has reserved the numpad for emotes. So instead of walking, my character just makes faces...

 

I then tried the keydown(chr(38)) method but for some reason its scar only types "|" repeatedly instead of using the the up arrow.

 

Has anyone come across this problem yet and are there any ideas has to a way to overcome this problem?

 

Any help is more than appreciated on this. Thank you :)

 

 

 

EDIT---v

 

Ok so I just made this script to try to figure out this issue

program New;
var x:integer;
begin
x:=198
cleardebug;
repeat
writeln('CHR '+inttostr(x)+ ' is: '+chr(x));
keydown(chr(x));
wait(50);
keyup(chr(x));
wait(200);
keydown(chr(x));
wait(50);
keyup(chr(x));
wait(2000);
x:=x+1  
until x=300;
end.

 

And the result was as follow

 

CHR 200 is È but in the game, it pressed up

CHR 203 is: Ë but in the game, it pressed left

CHR 205 is: Í but in the game, it pressed right

CHR 208 is: Ð but in the game, it pressed down

 

This is a long ways from what these values were in scar > 3.34

 

So the problem for me is solved but is it possible that this might be a bug in scar 3.40?

Edited by Joeyroyden
added scar version
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...