idiot Posted November 21, 2011 Share Posted November 21, 2011 (edited) up text is critical element of a script to check if cursor is in right position, however I have difficulties getting it work I tried functions rs_GetUpText, rs_GetCustomSizeUpText, rs_GetUpTextAt, but they returned nothing, now I am trying GetTextAtEx, it has a lot of parameters, that I poorly understand, mainly UpChars is there a tutorial how to set up and use this function? below is an example of the simplest script I was trying, what was I doing wrong? program get10uptexts; {.include OSI\OSI.scar} var n: integer; begin n:=10; repeat begin writeln(rs_GetUpText); wait(1000); n:=n-1; end; until n=0 end. Edited November 24, 2011 by idiot making the code look nice Quote Link to comment Share on other sites More sharing options...
FHannes Posted November 21, 2011 Share Posted November 21, 2011 If you're going to use OSI, you shouldn't use SCAR's OCR directly for most things. First check out this page on how to set up OSI in your script: http://wiki.scar-divi.com/osi/index.php?title=Basic_RS2_OSI_Usage#Defines_and_Including After that you can use the OCR wrappers defined in OSI: https://github.com/OSI1/OSI1/blob/master/RS2/Core/Text.scar#L34 Quote Link to comment Share on other sites More sharing options...
Wanted Posted November 22, 2011 Share Posted November 22, 2011 {$DEFINE RS2} {.include OSI\OSI.scar} begin SetUpOSI; ActivateClient; Wait(1000); WriteLn(GetUpText); end. That works perfectly, try it out. Quote Link to comment Share on other sites More sharing options...
idiot Posted November 23, 2011 Author Share Posted November 23, 2011 may be something is wrong with settings on my computer because it did not work, i ll try to reinstall everything this is what I was getting, despite having uptext in top left conner: New client targeted (918340) Successfully compiled (484 ms) OSI RS2 routines enabled OSI RS2 color random detection and solving disabled Loaded RS2 Fonts: NPCChars, UpChars, SmallChars, StatChars, FriendChars, LoginChars, XPChars Successfully executed (2355 ms) Quote Link to comment Share on other sites More sharing options...
FHannes Posted November 23, 2011 Share Posted November 23, 2011 You dragged the crosshair over the client? Quote Link to comment Share on other sites More sharing options...
Wanted Posted November 23, 2011 Share Posted November 23, 2011 may be something is wrong with settings on my computer because it did not work, i ll try to reinstall everything this is what I was getting, despite having uptext in top left conner: New client targeted (918340) Successfully compiled (484 ms) OSI RS2 routines enabled OSI RS2 color random detection and solving disabled Loaded RS2 Fonts: NPCChars, UpChars, SmallChars, StatChars, FriendChars, LoginChars, XPChars Successfully executed (2355 ms) Your OSI isn't up to date, I can tell because it isn't loading all the new font sets I uploaded to OSI. Install latest scar scar-divi.com Install latest OSI File -> Includes manager Quote Link to comment Share on other sites More sharing options...
idiot Posted November 24, 2011 Author Share Posted November 24, 2011 Wooooot!!!! I copied font files from OSI folder into Scar Divi folder and now it's working perfectly and very fast Now I can start working on my first script. Honestly, I need to go through tutorials Thanks again for helping me Quote Link to comment Share on other sites More sharing options...