cainn82 Posted April 24, 2008 Share Posted April 24, 2008 I want to make a script that would get text form inside a program and find it on my price list then display the text and the price in the chat box. I can make it display the text in the chat box but getting the text and the price is where im stuck. Link to comment Share on other sites More sharing options...
Zedna Posted April 24, 2008 Share Posted April 24, 2008 Use AU3Info.exe to clarify what kind of control contains your text. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
longtex Posted April 24, 2008 Share Posted April 24, 2008 Use AU3Info.exe to clarify what kind of control contains your text.Is there a way to find controls in non-autoscript window? Nobody needs a job. Not much, anyway. Before you need a job, there's a lot of other stuff you need. More or less in order of how badly you need them: AIR, WATER, FOOD, SHELTER, CLOTHING, COMPANIONSHIP, and ACTIVITY. You've been led to believe you need money to "pay" someone else to provide those for you - all but AIR, so far. How long is it going to be before you have to "pay" for AIR, too? Link to comment Share on other sites More sharing options...
DarkMatter Posted April 24, 2008 Share Posted April 24, 2008 Do what Zenda said... Use AU3Info.exe to identify the controls in any application window. [sub]Quantum mechanics: The dreams stuff is made of[/sub] Link to comment Share on other sites More sharing options...
cainn82 Posted April 24, 2008 Author Share Posted April 24, 2008 so if i use autoinfo it will tell me what window the text is in then i can program it to get the txt? What i want to do is when some one picks a card i want the script to get the card name find it in my price list then tell the card name and the price for said card. I am completely stumped on how to do this. Link to comment Share on other sites More sharing options...
longtex Posted April 24, 2008 Share Posted April 24, 2008 (edited) Do what Zenda said... Use AU3Info.exe to identify the controls in any application window.Thanks!It sort of works... I'm looking at a PuTTY window, and I put the mouse in the "Host Name or IP Address" box. It looks reasonable - says it's Class: Edit, Name Edit1, ID 1044... all probably okay... but for "text" it shows blanks, while in the PuTTY window that box shows the domain name. What am I missing?EDIT: Never mind... the "text" field there is apparently the CAPTION of the control, not the CONTENT. I used controlgettext with the windowtitle "PuTTY" and control ID "Edit1" and it returned the domain name... so far, so good!Thanks!! Edited April 24, 2008 by longtex Nobody needs a job. Not much, anyway. Before you need a job, there's a lot of other stuff you need. More or less in order of how badly you need them: AIR, WATER, FOOD, SHELTER, CLOTHING, COMPANIONSHIP, and ACTIVITY. You've been led to believe you need money to "pay" someone else to provide those for you - all but AIR, so far. How long is it going to be before you have to "pay" for AIR, too? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 24, 2008 Moderators Share Posted April 24, 2008 so if i use autoinfo it will tell me what window the text is in then i can program it to get the txt? What i want to do is when some one picks a card i want the script to get the card name find it in my price list then tell the card name and the price for said card. I am completely stumped on how to do this.What exactly is this for? The text on the screen, is it a graphic (ie.. a pic) "text" or is it actually control text? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
cainn82 Posted April 24, 2008 Author Share Posted April 24, 2008 no its for magic the gathering online when someone takes a card in a trade it puts the name of the card in txt form at the bottom of the screen in a box called player takes. What i want to do is get that text check it agenst my price list and display a price for the card. then i will program my script to take the amount in tickets and completle the trade. Link to comment Share on other sites More sharing options...
Zedna Posted April 24, 2008 Share Posted April 24, 2008 Post screenshot. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
cainn82 Posted April 24, 2008 Author Share Posted April 24, 2008 will do the second i get home Link to comment Share on other sites More sharing options...
cainn82 Posted April 24, 2008 Author Share Posted April 24, 2008 ok here is the image, I want to get the text at the bottom of the screen where the hard to see arrow is pointing lol. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted April 24, 2008 Share Posted April 24, 2008 The problem with games is that very few usees standard windows controls, have you checked if AU3Info.exe can see any controls??? If it can't you could use some sort of OCR but that is very tricky. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
cainn82 Posted April 24, 2008 Author Share Posted April 24, 2008 lol i still really new to auto it here is what is in the autoinfo title Magic Online v3.0.9.2 class WindowsForms10.window.8.app.0.33c0d9d position 128, 0 size 1024, 766 style 0x160B0000 exstyle 0x00050000 handle 0x000702EA now it shows this info no matter where i click on the app Link to comment Share on other sites More sharing options...
Zedna Posted April 25, 2008 Share Posted April 25, 2008 Here you can use only these ways: - OCR (optical characters recognition) - read values from application's memory Both ways are very complicated. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
cainn82 Posted April 25, 2008 Author Share Posted April 25, 2008 thanks the ocr will be tough but i will look into learn how to use the ocr Link to comment Share on other sites More sharing options...
cainn82 Posted April 25, 2008 Author Share Posted April 25, 2008 I have a question i know in C++ you can tell it something like in winexists at (x,y) then do your code after wards is there something like this in autoit and can this work? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now