Jump to content

kra55

Active Members
  • Posts

    35
  • Joined

  • Last visited

Everything posted by kra55

  1. Hey Everyone, I had asked a question the other day about some string manipulation and the possibility of pulling hidden text from a program..... Ok so when I use the Auto info tool I open a particular program and select the title bar at the top. I then go to the hidden text tab in Auto info and this shows most of the text on the current window displayed for this program. I am wanting to know if there is a function to pull this hidden text as this will enable me to be lazy and not have to learn how to manipulate certain controls on the window to get the text I want. Personally I would find it easier to pull this text load it into a VAR then search the giant string for the information I need..... Is this going to be possible? or do I have to pull the information I require from each individual control on the window?????? Thanking you in advance .... If this question is not clear please advised. Usually I would have a reply by now and my understanding is this should be a simple yes or no answer for an experienced user.....Thank you..
  2. So are you saying that i cannot simply pull this info from the Hidden text and have to find the window/control the information is located in? And the code you have provided is a example for locating child windows?
  3. Ok so i have sorted out searching the string once it is loaded into a variable.....If at all possible can somone please advise how i pull hidden text based on the window summary above. I belive once i know how to do this i should be all good - Thank you for pointing me in the right direction so far ;This is a test - Once "Acct Info:" has been found ;I then know "Acct Info:" + 123456 will always be 17 chars ;Declare test string.... Dim $Adddet = "bla bla bla bla Acct Info: 123456 asdasdasd" ;Find location of acct info and remove one to ensure is correct number $result = StringInStr($Adddet, "Acct Info:") $result = $result - 1 MsgBox(0, "Search result:", $result) ;Remove all chars before "Acct Info:" now that we know where it is.... $Adddet = StringTrimLeft ( $Adddet, $result ) MsgBox(0, "Search result:", $Adddet) ;Get total length of string ;As we know "Acct Info:" + 123456 will be 17 chars we then remove 17 from total $len = StringLen($Adddet) $len = $len - 17 ;We now use the leftovers to trim the excess chars which leaves us with the result we want :) $Adddet = StringTrimRight ( $Adddet, $len ) MsgBox(0, "Search result:", $Adddet)
  4. Thank you for you response. At this time I do not have any scripting other then a gui I have been working on. It simply calls winactivate "Account Info" as I am modifying a existing script that was pulling text from controls. Once again I have never pulled text from hidden text areas. I will now look into string manipulation as im guessing once I figure out how to pull the info from the hidden area. I will then be able to store it in a variable and work on the search/copy from there. Below I have provided a summary of the window as I am unsure what you mean by the type of the window. If it could be advised how to pull the hidden text im sure I can read around to find the string information.........In saying this feel free to advise how I would go about finding "Acct ID:" then storing the following 6 or 7 characters as it would obviously make things easier. Tho once again i will start reading up more on strings...Thank you.
  5. Search Hidden Text then copy the 8 letters after the word found... So far I have managed to go though controls searching for text and store them in variables for a later time....... I now need to select a window which is easy In this window there is a bunch of hidden text not assigned to a control. I am unsure how I go about searching this text for a particular word as I have only stored the full text previously and not used hidden text.... Once this word has been found I would then like for the 8 characters following this word to be copied. I apologize if there is a tutorial for this I have looked around and been unable to find what I am looking for..... If a couple examples could be provided or if I could be pointed in the direction of a tutorial that will tech me this it would be much appreciated...Thank you. Also is it possible to download the autoit documentation as i am unable to view any help files on the network i am on as i belive they use an external webpage? and i do not always have internet access
  6. Thank you soooooo much
  7. Hey Everyone resolved the last issue .... So with the following code for some reason i cant join the strings...... As it is atm it will display 0 is the msg box if i remove the second gettext it will get the text from Edit one. So based on this i feel the second gettext is the issue but i dont know exactly what i am doing wrong..... Thank you in advance
  8. Hey Everyone Firstly I will apologize for my stupid question I have had a hunt around for a solution but probably just suck at searching I have used scripts done in Autoit for a couple of years now but never really bothered to code anything of my own. I now have an issue where I am trying to copy text from a few different greyed out text and combo box's.....I can pull the text from textbox's using the ControlGetText but I am unable to use this for the combo box's....The window tool shows there is visible text but I am still having issues. Just looking for any solutions to get around this..... Any help would be much appreciated....
  9. i dont really have to highlight it just my crappy explanation i have tried to read though the helpfiles but hanvt found much i will look up IE functions now ty for the help
  10. Bassically im trying to automate certain aspect of a online text based MMO. Im really stuck trying to find probly what is a simple command so figured i would annoy every one. i would like to be able to search for text then have the mouse highlight it and click once. After this i can work my way around the if and whiles etc when i need to i have played with some basic java Another area would be once it has found the search text how to highlight a certain ammount of text next to it..... couple of examples i would like it to search the webpage i am currently on for energy then be able to check if i have full energy..... Energy: 20/150 I would like to be able to search for certain items to check if they are instock and if they are click on manage Weapons Loaned? Manage Magnum In Stock Manage Magnum out Manage Any help would be much appreciated
×
×
  • Create New...