SRL Archive - Help and Support

popup function


BraK

2006-03-22 00:31:50

need a lil explanation on how to use this function


function ClickOption(s: String; i: Integer): Boolean;
function PopUp(Option: string): Boolean;
function PopUp2(x, y, rx, ry: Integer; Option: string): Boolean;
function ChooseOption(txt: String): Boolean;


i don't really know much about functions

XxKanexX

2006-03-22 00:40:24

Clickoption, will return true if it clicks it.
Eg:

if(Clickoption('something', 0))then
writeln('Clicked "Something"');

Popup & Popup2 - Don't know what they are..
Choose option is the same as Clickoption, (I think) ;)

BraK

2006-03-22 00:42:56

hmm thanks you gave me something to think on

phantombmx

2006-03-22 11:14:54

this is from the srl manual

function ClickOption(s: String; i: Integer): Boolean;
-
Clicks Option in Specified Area (1 for Main Screen, 2 Inventory,
3 for Chat Window), returns True if text was found

function PopUp(Option: string): Boolean;
-
Finds Popup menu, then clicks Option

function PopUp2(x, y, rx, ry: Integer; Option: string): Boolean;
-
Right clicks on coords, then Clicks on Option in Popup menu

function ChooseOption(txt: String): Boolean;
-
Finds Popup menu, then clicks on it.


PopUp2 would probably be most effective.. I would use it for a shop window or something that is always in the same spot..

hope that helps

XxKanexX

2006-03-22 15:54:43

From: phantombmx
this is from the srl manual

function ClickOption(s: String; i: Integer): Boolean;
-
Clicks Option in Specified Area (1 for Main Screen, 2 Inventory,
3 for Chat Window), returns True if text was found

function PopUp(Option: string): Boolean;
-
Finds Popup menu, then clicks Option

function PopUp2(x, y, rx, ry: Integer; Option: string): Boolean;
-
Right clicks on coords, then Clicks on Option in Popup menu

function ChooseOption(txt: String): Boolean;
-
Finds Popup menu, then clicks on it.


PopUp2 would probably be most effective.. I would use it for a shop window or something that is always in the same spot..

hope that helps

If you don't undertsand the manual, Brak:
It will right click on specified co-ordinates and click an option if it's there. Just like cancel or walk here. :)