bmoore45 Posted August 15, 2011 Share Posted August 15, 2011 (edited) Hi guys, I'm having trouble with a script. Basically I can't use normal controlgettext or any commands like that because the control is custom and returns an empty string when I send those queries. How can I view what a program is writing to memory? Whether the control is custom or not it has to maintain a string or list of strings somewhere in memory. Can anyone post some suggested reading/links to find out more on this topic? I would google this myself but frankly I don't know the proper definition of what I am looking for. Also any other suggestions are welcome. Thankyou guys, Ben Edited August 15, 2011 by bmoore45 Link to comment Share on other sites More sharing options...
Bert Posted August 15, 2011 Share Posted August 15, 2011 Is the stuff you are trying to read in a web window? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
bmoore45 Posted August 15, 2011 Author Share Posted August 15, 2011 Hi mph, no it is in a program running on my PC though if that helps. Link to comment Share on other sites More sharing options...
Bert Posted August 15, 2011 Share Posted August 15, 2011 OK, is it written in Java? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Bert Posted August 15, 2011 Share Posted August 15, 2011 I'm trying to find out what language it is designed in. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
bmoore45 Posted August 15, 2011 Author Share Posted August 15, 2011 (edited) EDIT: found out Edited August 15, 2011 by bmoore45 Link to comment Share on other sites More sharing options...
bmoore45 Posted August 15, 2011 Author Share Posted August 15, 2011 C++ and MFC Link to comment Share on other sites More sharing options...
monoscout999 Posted August 15, 2011 Share Posted August 15, 2011 what you do want to do with the control, also post the autoit windows info tool results about the control , and a little description of the control(because maybe the control is insidea rebar or a toolbar or something and is not the same manipulate in these cases that in the most common cases like buttons) Link to comment Share on other sites More sharing options...
bmoore45 Posted August 15, 2011 Author Share Posted August 15, 2011 (edited) >>>>>>>>>>( Window Title & Class )<<<<<<<<<<<RevPro Mainahk_class #32770>>>>>>>>>>>>( Mouse Position )<<<<<<<<<<<<<On Screen: 1537, 399 (less often used)In Active Window: 969, 1250>>>>>>>>>( Now Under Mouse Cursor )<<<<<<<<ClassNN: RevProListClass1Text:Color: 0xF0F0F0 (Blue=F0 Green=F0 Red=F0) >>>>>>>>>>( Active Window Position )<<<<<<<<<<left: 568 top: -851 width: 1024 height: 730>>>>>>>>>>>( Status Bar Text )<<<<<<<<<<>>>>>>>>>>>( Visible Window Text )<<<<<<<<<<<>>>>>>>>>>>( Hidden Window Text )<<<<<<<<<<<>>>>( TitleMatchMode=slow Visible Text )<<<<GoReset>>>>( TitleMatchMode=slow Hidden Text )<<<<FileOptionsQuitIts just a basic window with data printed in the List control. The List control is in the same window, not a toolbar or anything. All I want to do is be able to copy the data in the control to the clipboard or a text file. Thanks for taking the time guys, I appreciate it Edited August 15, 2011 by bmoore45 Link to comment Share on other sites More sharing options...
Bert Posted August 15, 2011 Share Posted August 15, 2011 Have you tried ControlGetText? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
monoscout999 Posted August 15, 2011 Share Posted August 15, 2011 the control part of the there, is this because that part never shou up? controlgettext will not get any text from that, maybe you can send some keys strokes that do the job of select the text and copy to the clipboard. try This should select the text in a windows WinActivate("RevPro Main") controlsend("RevPro Main","","","^+{END}") ; correct the title if this title is wrong Or this WinActivate("RevPro Main") $ControlClasNN = ControlGetFocus("RevPro Main") controlsend("RevPro Main","","[CLASSNN:"&ControlClasNN &"]","^+{END}") I never do any test with these scripts but you can try Link to comment Share on other sites More sharing options...
bmoore45 Posted August 16, 2011 Author Share Posted August 16, 2011 the control part of the there, is this because that part never shou up? controlgettext will not get any text from that, maybe you can send some keys strokes that do the job of select the text and copy to the clipboard. try This should select the text in a windows WinActivate("RevPro Main") controlsend("RevPro Main","","","^+{END}") ; correct the title if this title is wrong Or this WinActivate("RevPro Main") $ControlClasNN = ControlGetFocus("RevPro Main") controlsend("RevPro Main","","[CLASSNN:"&ControlClasNN &"]","^+{END}") I never do any test with these scripts but you can try Yeah controlgettext and keystroke sending etc doesn't work with the window, basically the only way to access the data would probably be to take a screenshot and OCR the data but that is slower/less reliable than what I was looking for... Link to comment Share on other sites More sharing options...
JohnOne Posted August 16, 2011 Share Posted August 16, 2011 There are memory UDFs about the forums, you might want to read those threads. I tried something similar once but dont have the scripts anymore, but it goes something like this. Find the memory address of the var with something like cheat engine, and its offset (whole other thing you have to learn how to find it) Get base address of your application (Memory function) Read process memory at base address + offset of your application (Memory function) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
bmoore45 Posted August 16, 2011 Author Share Posted August 16, 2011 thanks John, I've dled CheatEngine and will have a play and see if this will help me achieve what I need to. 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