Get the text of a control in a seperate process

Questions about programming languages and debugging
Post Reply
User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Get the text of a control in a seperate process

Post by Gogeta70 »

I've been working on trying to get the text of the address bar of firefox, but it's not working very well.

It seems that the text box for the address bar is a custom control, and it won't respond to the WM_GETTEXT message. I got the window handle for firefox, and then used EnumChildWindows() to get the handle of each control, and sent each control a WM_GETTEXT message. None of them returned any text.

Is there any other way to get the text of the address bar in firefox?
¯\_(ツ)_/¯ It works on my machine...

User avatar
Lundis
Distorter of Reality
Distorter of Reality
Posts: 543
Joined: 22 Aug 2008, 16:00
15
Location: Deadlock of Awesome
Contact:

Re: Get the text of a control in a seperate process

Post by Lundis »

Firefox uses GTK, so I guess that you'd have to use dbus to communicate with it. Then again, I'm just guessing.

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Re: Get the text of a control in a seperate process

Post by Gogeta70 »

Thanks, i'll look into it.
¯\_(ツ)_/¯ It works on my machine...

Post Reply