SRL Archive - RS3 Help

upCharsEx does not seem to detect text in the right click menu all the time.


adc

2015-05-21 03:44:24

This could be me using the wrong font (that would be nice, actually), but half the time this:

if mouseText(['an hide', 'Tan hide'], [upCharsEx], intToBox(0, 0, 799, 599), MOUSE_LEFT) then 


line of code evaluates to false even though the text is quite clearly there. It does seem to work occasionally, though, so I can't figure out whether I'm using the wrong font or if something else is set up incorrectly or what. I've attempted to run the code on full brightness, half brightness, and lowest brightness, switched between OpenGL and DirectX, all graphics settings lowest and so on. No dice.

Renzanity

2015-05-21 04:11:12

Hello,

I think the code that would be more appropriate for this is an SRL-6 function like so:


if isMouseOverText(['-enter NPC name here-'], 1000) then
chooseOption.select(['an hide', 'Tan hide']);

adc

2015-05-21 12:43:01

  if isMouseOverText(['Tanner'], 1000) then
begin
fastClick(MOUSE_RIGHT);
if chooseOption.select(['an hide', 'Tan hide'], 500) then
result := true;
end;

Thanks a bunch; this code seems to be working perfectly.