SRL Archive - Development

Simba script - hopping worlds - CTRL+Shift+Right arrow - doesn't work?


whysomanyys

2021-03-03 10:14:30

Hi,

My apologies if this is in the incorrect section.

I have the following script to hop worlds:


Procedure HopToNextWorld();
Begin
//hold CTRL
KeyDown(VK_CONTROL);
CustomWait(msBaseWait,500);
//hold SHIFT
KeyDown(VK_SHIFT);
CustomWait(msBaseWait,500);
//hold RIGHT ARROW
KeyDown(VK_RIGHT);
CustomWait(msBaseWait,100);
//release RIGHT ARROW
KeyUp(VK_RIGHT);
CustomWait(msBaseWait + 250,500);


//release CTRL
KeyUp(VK_CONTROL);
CustomWait(msBaseWait,500);
//hold SHIFT
KeyUp(VK_SHIFT);
CustomWait(msBaseWait + 250,500);

Wait(5500);
End;

It used to work fine, but now it only turns right and the action of holding down both Shift and Control and then the right arrow to hop to the next world doesn't register.

EDIT 1:
-I will try to run this script on my other computer to see if this issue persists.
-This particular script has a few BMPs and DTMs that weren't released. I wonder if I have to clear Simba cache?

Thank you

footballjds

2021-03-04 19:09:44

i've also had issues with keyDown not holding keys down.