Jump to content
Sign in to follow this  
bmoore45

Viewing data written to memory?

Recommended Posts

bmoore45

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 by bmoore45

Share this post


Link to post
Share on other sites
bmoore45

Hi mph, no it is in a program running on my PC though if that helps.

Share this post


Link to post
Share on other sites
bmoore45

EDIT: found out

Edited by bmoore45

Share this post


Link to post
Share on other sites
monoscout999

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)

Share this post


Link to post
Share on other sites
bmoore45

>>>>>>>>>>( Window Title & Class )<<<<<<<<<<<

RevPro Main

ahk_class #32770

>>>>>>>>>>>>( Mouse Position )<<<<<<<<<<<<<

On Screen: 1537, 399 (less often used)

In Active Window: 969, 1250

>>>>>>>>>( Now Under Mouse Cursor )<<<<<<<<

ClassNN: RevProListClass1

Text:

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 )<<<<

Go

Reset

>>>>( TitleMatchMode=slow Hidden Text )<<<<

File

Options

Quit

Its 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 :mellow:

Edited by bmoore45

Share this post


Link to post
Share on other sites
monoscout999

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

Share this post


Link to post
Share on other sites
bmoore45

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...

Share this post


Link to post
Share on other sites
JohnOne

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.

Share this post


Link to post
Share on other sites
bmoore45

thanks John, I've dled CheatEngine and will have a play and see if this will help me achieve what I need to.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.