RemoteAPI
Hm, maybe you should explain what exactly the app, you want to hook, do. Does the app create a bitmap, writes something on it and then display it? Its a image right (not in a screen)?
You could also use a Debugger, (e.g. http://ollydbg.de/) to search for procedure-imports of the exe which looks like a "drawtext"-procedure.
			
			
									
									You could also use a Debugger, (e.g. http://ollydbg.de/) to search for procedure-imports of the exe which looks like a "drawtext"-procedure.
irc://irc.freenode.org/#purebasic
						Re: RemoteAPI
dmoc,
i've been playing around some with the remoteapi thing myself. Don't have any code to show you and haven't done anything really with it yet but will when i get some time. My understanding and what i've seen so far with it is that is should allow you to define your own replacement functions for the api's to hook just about any api call. So if theres an api for it you should be able to define the hook in your injected .dll. Its seems also that any dll you build using it will also need the remoteapi calls/functions in it as well so don't forget those. What I did with some basic experimentation was take the existing samples and just change them to experiment with.
			
			
									
									
						i've been playing around some with the remoteapi thing myself. Don't have any code to show you and haven't done anything really with it yet but will when i get some time. My understanding and what i've seen so far with it is that is should allow you to define your own replacement functions for the api's to hook just about any api call. So if theres an api for it you should be able to define the hook in your injected .dll. Its seems also that any dll you build using it will also need the remoteapi calls/functions in it as well so don't forget those. What I did with some basic experimentation was take the existing samples and just change them to experiment with.
dmoc wrote:Anyone got an example of using RemoteAPI to grab text which is on a bitmap so not selectable? From what I can tell the RemoteAPI should allow me to hook into/ intercept winapi text routines, correct?
Thanks guys. I found an app that does what I need (TextCaptureX). Just thought it was do-able in PB (for maximum flexibility) but pulling the needed info together is a bit difficult and/or taking too much time. Maybe when I have more time I'll return to it.
PS: It's for automated testing so no specific app in mind
			
			
									
									
						PS: It's for automated testing so no specific app in mind

