SRL Archive - OSR Help

Working on non runescape script. HELP!!


DarkSeplep

2012-04-21 15:33:27

Oke i'm very new to scripting bots and all.
I'm trying to make a bot for a text based game called perfect-tuning.

And i ran into a prety mayor problem since i need to scroll the page to be able to find some buttons and stuff.
Also to make it more compatible with other setups i need to be able to scroll since not all screen size's are the same and all.
Anyway i'm not using any SRL procedures or functions everything is written within the script i'm making.


Procedure ScrollDown ;

begin
mMouse (0, 0); //Moves mouse to corner of webpage and clicks to make sure i dont have a dropdown window open.
KeyDown (40); //Holds ArrowDown to simulate a scroll down with keyboard.
Wait (2000) //Wait for 2seconds (should be enough time to scroll down)
KeyUp (40); //Releases the ArrowDown to stop scrolling down.
end;

I made this procedure to emulate a scroll down on the webpage.
Problem only is while KeyDown should hold the key down until KeyUp is called it only presses ArrowDown and doesnt hold it.

I know there is a ScrollMouse function but i have no idea how that works.

So instead of holding the ArrowDown for 2seconds it only presses it like PressKey does.

Any idea how to fix this?
Or a brief explanation on ScrollMouse so i can test that method.

Already thanks for your help

DarkSeplep

2012-04-21 19:32:16

Post can be closed, solved my problem with help from some irc users.