ItzMe Posted April 30, 2014 Posted April 30, 2014 The script I'm currently working on has a dialogue box that will occasionally pop up and I need to be able to click through it. Using the explorer I can put boxes around parts of the dialogue, but I really am unsure of what I'm supposed to be seeing and what information I need to grab. Could anyone give me a quick explanation?
Isolate Posted April 30, 2014 Posted April 30, 2014 The script I'm currently working on has a dialogue box that will occasionally pop up and I need to be able to click through it. Using the explorer I can put boxes around parts of the dialogue, but I really am unsure of what I'm supposed to be seeing and what information I need to grab. Could anyone give me a quick explanation? the interface debugger only shows information for known interface IDs you need to use the option 'interface' in the left hand list, then it will show the ID of what you hover over
Extreme Scripts Posted April 30, 2014 Posted April 30, 2014 When you hover over a part of the interface, it gives you parent (P) & child © info somewhere color coded on the screen. What you need to do is hover over the item you are trying to find the ID's of and look at the rectangle color that appears around this region. Then look at the corresponding color in the list of values given and that's your parent + child info for that interface. Hope this helps ^_^
ItzMe Posted April 30, 2014 Author Posted April 30, 2014 That was very helpful, thank you. Now my final question is in regards to the parameters I need to use when initializing my dialogue objects. The constructor given in the api is as follows: RS2Interface(org.osbot.engine.Bot bot, int id) I'm unsure of what the first parameter is. On a whim I tried: dialogueBox1 = new RS2Interface(bot, dialogueID1); without any errors. Is that what I should put there or is that something unrelated?
Extreme Scripts Posted April 30, 2014 Posted April 30, 2014 When you're using just the "parent" value, the like is as follows: RS2Interface inter = client.getInterface(parent_ID); When using parent & child values it's as follows: RS2InterfaceChild inter = client.getInterface(parent_ID).getChild(child_ID); Note: in both cases you can change the name of your interface I just used "inter" as an example to you ^_^
Extreme Scripts Posted April 30, 2014 Posted April 30, 2014 Fantastic, thank you. Glad I could have been of assistance ^_^