twenty_sleven Posted February 18, 2012 Share Posted February 18, 2012 So, I feel like an idiot. I've been trying to find a way to access data from a textbox... say, and email. I know it's not as hard as reading those transparent boxes like those in RS or w/e. Any help? Thanks Quote Link to comment Share on other sites More sharing options...
rsutton Posted February 18, 2012 Share Posted February 18, 2012 (edited) VariableName := Textboxname.text Writeln(VariableName); Edited February 18, 2012 by rsutton Quote Link to comment Share on other sites More sharing options...
twenty_sleven Posted February 18, 2012 Author Share Posted February 18, 2012 ...okay, how do I declare a textbox...? I have my email showing on the inbox page, I want to be able to read the contact name of the person ... Sorry, couldn't find the function on this. Quote Link to comment Share on other sites More sharing options...
rsutton Posted February 19, 2012 Share Posted February 19, 2012 Oh on a website you mean? ya you need to get the type of text.... make a text database.... search for text in a box rec paramiters Quote Link to comment Share on other sites More sharing options...
twenty_sleven Posted February 19, 2012 Author Share Posted February 19, 2012 ...I looked all over the place, Foo (some function) doesn't exist in 3.31 (from what I can tell) and I tried looking through database in the tutorials they were all in SQL... don't think thats the direction, neither. Quote Link to comment Share on other sites More sharing options...
rsutton Posted February 19, 2012 Share Posted February 19, 2012 Ya, to be honest. Wanted or freddy needs to respond to this because I have not had to, nor know how to create a Text database. A Tutorial of any sort would be needed by either of them. Sorry bud but until I am able to understand how to do the text database I cannot help you and I doubt you will beable to get it working unless they respond to this to help. No worries, they are pretty good on responding within 12 hours Quote Link to comment Share on other sites More sharing options...
twenty_sleven Posted February 19, 2012 Author Share Posted February 19, 2012 Yes they are. Thank the Lord! Quote Link to comment Share on other sites More sharing options...
twenty_sleven Posted February 21, 2012 Author Share Posted February 21, 2012 Bump, I know it's third on the list, but it seems a post by someone ending with a post by that same persons makes the topic seem like they don't need help... (I still do ) Quote Link to comment Share on other sites More sharing options...
FHannes Posted February 21, 2012 Share Posted February 21, 2012 Disable font smoothing, load the correct font to read with SCAR's LoadCharsFromFont2 and read the text using the OCR functions. Quote Link to comment Share on other sites More sharing options...
rsutton Posted February 21, 2012 Share Posted February 21, 2012 freddy, that was a poor way of explaining how to make your own text and work with it lol. Quote Link to comment Share on other sites More sharing options...
FHannes Posted February 22, 2012 Share Posted February 22, 2012 freddy, that was a poor way of explaining how to make your own text and work with it lol. Go ahead and do a better job. All of the documentation required is in the (old) manual. If he's stuck he can ask follow-up questions. The best way of learning things is by figuring them out yourself. Quote Link to comment Share on other sites More sharing options...
twenty_sleven Posted February 22, 2012 Author Share Posted February 22, 2012 Okay awesome, I think I got the start of this down... I understand disabling font smoothing and Scar's LoadCharsFromFontSet2 function... I only have 2 questions. First, where are the OCR functions for SCAR? Second, if the email page has multiple types of (for example) Times New Roman and the email's content is the same size and font type, how would I differentiate? Thanks! Quote Link to comment Share on other sites More sharing options...
FHannes Posted February 22, 2012 Share Posted February 22, 2012 You need to load each font you want to read separately, you have to know in advance which you'll have to use and where. Each time you call LoadCharsFromFontSet2, it returns an Integer, this value is an identifier for the font, similar to how bitmaps are represented by an Integer. You use this value as the "Chars" parameter for "GetTextAtEx". The coordinates to get the text at can be a bit tricky, they're basically the top left point of the rectangle that contains the first character. This point will be the same for every character that is placed first in the box, but it may take some searching to find it. Quote Link to comment Share on other sites More sharing options...
twenty_sleven Posted March 3, 2012 Author Share Posted March 3, 2012 Okay, getting steady progress on it... (but I still need help!) ClickMouse(35,175,true); Wait(2000); //Clicks into notepad document with a small string typed up in it.. ClickMouse(453,83,true); Wait(2000); //Clicks onto the notepad document... WriteLn(LoadCharsFromFont2('Lucida Console',10,false,false,false,false)); WriteLn(LoadCharsFromFont2('Lucida Console',10,false,false,false,false)); //Returns 0 then 1..? WriteLn(LoadCharsFromFont2(sTextBox,10,false,false,false,false)); //Returns LoadChars failed - folder "" does not exist // followed by a 2 //GetTextAtEx(x:LongInt, y: LongInt, Tolerance: LongInt, Chars: LongInt, CheckShadow: False, CheckOutline : False, Minspacing: Long, MaxSpacing: Long, TextColor: Long, TextLength: Long, Strict: Bool,Range:Byte); //So I know the parameters.. WriteLn(GetTextAtEx(66,43,100,0,false,false,1,10,0,50,false,255)); //Returns... @@@@@@@@@@@@@@@@@@@@@@@@@@@@ Wait(1500); ClickMouse(30,135,true); Few things, I tried Lucidia Console because I knew that is the default font for notepad. Tried using an empty string value & the font just to experiment. Also not sure what typical values for min & max spacing are, as well as what "Strict" means and what a typical range should be. Quote Link to comment Share on other sites More sharing options...
FHannes Posted March 3, 2012 Share Posted March 3, 2012 Min and max spacing are the minmum and maximum number of spaces that will be found in your text, as for Strict, I'm not entirely sure, check the old manual. Quote Link to comment Share on other sites More sharing options...
twenty_sleven Posted March 3, 2012 Author Share Posted March 3, 2012 Okay, and was I using the LoadCharsFromFont properly? Seems like a longInt would be "longer" than 0 1 or 2.. :? Quote Link to comment Share on other sites More sharing options...
FHannes Posted March 3, 2012 Share Posted March 3, 2012 What do you mean longer than 0, 1 or 2? LongInt is an [wiki=Integer]Integer[/wiki] Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted March 4, 2012 Share Posted March 4, 2012 I think he meant when examining the value he was expecting a larger number from an address. Instead you get a reference count (1, 2, etc) rather than the actual address. Quote Link to comment Share on other sites More sharing options...
twenty_sleven Posted March 4, 2012 Author Share Posted March 4, 2012 Thanks Bixby, yeah I thought Lucida Console would be a certain number... not just 1 2 or 0. Thanks Quote Link to comment Share on other sites More sharing options...
twenty_sleven Posted March 6, 2012 Author Share Posted March 6, 2012 So, sorry to be redundant, does anyone know why that output was caused and what my error was? Quote Link to comment Share on other sites More sharing options...
FHannes Posted March 6, 2012 Share Posted March 6, 2012 So, sorry to be redundant, does anyone know why that output was caused and what my error was? What output? Quote Link to comment Share on other sites More sharing options...
twenty_sleven Posted March 7, 2012 Author Share Posted March 7, 2012 all of them. I just don't understand why I get "1,2,3" then - @@@@@@@@@@@@@@@@ Quote Link to comment Share on other sites More sharing options...
FHannes Posted March 7, 2012 Share Posted March 7, 2012 They're just identifiers for the font you loaded? Quote Link to comment Share on other sites More sharing options...