Jump to content

How to interact with a menu item?


jrusse27

Recommended Posts

Learning whilst trying to make a balloon law runecrafting script, having some issues with interacting with the map to click on "entrana" after clicking fly on the assistant, the popup is always in the same position, so i just have this doing it now:

 

int x = random(206, 272);
int y = random(128, 146);
getMouse().move(x, y);
mouse.click(false);

also do not have the slightest idea what the boolean parameter i'm passing to mouse.click() does

any insight would be helpful, thanks.

Link to comment
Share on other sites

the boolean parameter is right click I believe.

mouse.click(false) left clicks

mouse.click(true) right clicks

as for interacting with the menu option, if you log in and bring that menu up in the osbot client and enter interface debugger mode, you'll have to mouse over the interface you wish to click and it'll tell you the parent and child Ids which u can then use in a line such as

interfaces.interactWithChild(int parentId, int ChildId, action)

eg

interfaces.interactWithChild(300,3,"Yes")

gl!

Link to comment
Share on other sites

the boolean parameter is right click I believe.

mouse.click(false) left clicks

mouse.click(true) right clicks

as for interacting with the menu option, if you log in and bring that menu up in the osbot client and enter interface debugger mode, you'll have to mouse over the interface you wish to click and it'll tell you the parent and child Ids which u can then use in a line such as

interfaces.interactWithChild(int parentId, int ChildId, action)

eg

interfaces.interactWithChild(300,3,"Yes")

gl!

 

How do you use the interface debugger?

When i try to load it says: Status: FAIL: You are not logged in!

Link to comment
Share on other sites

the boolean parameter is right click I believe.

mouse.click(false) left clicks

mouse.click(true) right clicks

as for interacting with the menu option, if you log in and bring that menu up in the osbot client and enter interface debugger mode, you'll have to mouse over the interface you wish to click and it'll tell you the parent and child Ids which u can then use in a line such as

interfaces.interactWithChild(int parentId, int ChildId, action)

eg

interfaces.interactWithChild(300,3,"Yes")

gl!

Thanks very much Apaec, alot of help! :D

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...