Log in

View Full Version : The best way to chose an option from right click menu?



solarwind
11-24-2006, 08:55 PM
Hi all, I'm working on my tutorial runner and I use the right click a lot. Currently, I use popup2 to chose the options, but that function misclicks a lot. Does anyone know of an alternative to popup2 that doesn't misclick?

bbri06
11-24-2006, 09:32 PM
well wat you could do is something like

mouse(a,b,2,2,false)
mouse(a-50,b-35,2,2,true)

something like that would work but u would just have to figure out the distance between the top of the popup box and the option. However i dont know if this would work better or worse then popup2 because i have never tried that.

WT-Fakawi
11-24-2006, 09:49 PM
function ChooseOption(x, y: Integer; txt: String): Boolean;
function PopUp2(x, y, rx, ry: Integer; Option: String): Boolean;
function FindText(var cx, cy: Integer; txt: String; font, xs, ys, xe, ye: Integer): Boolean;
function ClickText(Text: String; x1, y1, x2, y2: Integer): Boolean;
function ClickText2(txt: String; font, xs, ys, xe, ye: Integer; left: Boolean): Boolean;

solarwind
11-24-2006, 10:46 PM
function ChooseOption(x, y: Integer; txt: String): Boolean;
function PopUp2(x, y, rx, ry: Integer; Option: String): Boolean;
function FindText(var cx, cy: Integer; txt: String; font, xs, ys, xe, ye: Integer): Boolean;
function ClickText(Text: String; x1, y1, x2, y2: Integer): Boolean;
function ClickText2(txt: String; font, xs, ys, xe, ye: Integer; left: Boolean): Boolean;


Thanks WT! Ok, for me popup and popup2 fail half the time and misclick, ChoseOption seems like alternative. I'll try that. Thanks again!

drowningtrout
11-25-2006, 04:17 AM
hmm, strange I have never had a problem with popup. Are those other alternatives really better or does it just misclick for him?

Boreas
11-25-2006, 05:20 AM
I've had trouble with popup too. One time I even had to resort to a range of coords below the right click for a dragon slayer.

solarwind
11-25-2006, 06:45 PM
Hmmm.. I'll try choseoption or something and I'll make my own function if those don't work.