View Full Version : How to get text from a windows dialog box into girder?
mhund
August 7th, 2004, 12:26 AM
Hi experts,
On my all-purpose-server I have installed i ISDN/CAPI Adapter. The driver Software has a system tray application controlling telephone calls. When a phone call comes in, a message box pops up displaying the calling number, which I would like to grap with girder.
Two questions:
1. How can I get the popup message box? It is not a own task which could be triggered by task create plugin, but it is related to the systray application
2. how can I get the text out of this box? it is not a graphic; you can mark and copy it into the clipboard, for example. I noticed the LUA Windows Function Plugin. But I am not sure if it fits my needs. I am not realy a programmer sofar, although I have a good imagination of it.
Thank in advance,
mhund
snesteg
August 7th, 2004, 03:12 AM
I have an old analog modem which i use for callerID only. I use the Serial Caller ID plugin http://www.girder.nl/serial.php?Link=577 to receive and display the calling number onscreen.
You may be able to use something similar but I'm not sure how it would affect your current driver and systray application..
Promixis
August 7th, 2004, 03:20 AM
If the window does not generate a create event then you will have to poll for it.
Using the Girder targeting tool and tell use the classname, title, and exe name of the window.
mhund
August 7th, 2004, 04:52 AM
I have an old analog modem which i use for callerID only. I use the Serial Caller ID plugin http://www.girder.nl/serial.php?Link=577 to receive and display the calling number onscreen.
You may be able to use something similar but I'm not sure how it would affect your current driver and systray application..
Hi,
this will not work for me, because I dont have analog phone signals. It is an ISDN Controller (German digital >Telephone). To control this I can only use this f***ing window...
mhund
Promixis
August 7th, 2004, 04:53 AM
If the window does not generate a create event then you will have to poll for it.
Using the Girder targeting tool and tell use the classname, title, and exe name of the window.
And?
mhund
August 7th, 2004, 05:06 AM
If the window does not generate a create event then you will have to poll for it.
Using the Girder targeting tool and tell use the classname, title, and exe name of the window.
Hi Mike,
what do you mean with pollling? Is this a Plugin or a LUA script? With the targeting tool I can focus this window. But how can I poll it frequently without having this machine do nothing else than polling this window (CPU-usage)? How could I get the number?
Title: CAPIControl
Class Name: Afx:400000:b:10011:6:300e9
Executable: Capictrl.exe
To give you an imagination of it:
http://hundweb.homeip.net/images/capicontrol.jpg
The Information I would like to have is the number on the right side ...
Thanks for your spent time,
mhund
Promixis
August 7th, 2004, 05:17 AM
Just eyeballing this, it should be doable...
But, you will need some programming....
Don't worry about polling. It really is light on the cpu.
You can setup a function using winluaex and a timer to check for the presence of that window every 0.5 to 1 second.
h = FindWindow (nil,"CAPIControl")
if h ~=0 then
print ("window found")
end
You will also need the lua windows function plugin.
Can you try targeting the text where the number is displayed...
mhund
August 7th, 2004, 05:37 AM
Can you try targeting the text where the number is displayed...
Hi Mike,
Playing around with the targeting tool, I can target several things. After selecting the CAPIControl.exe in the table "Running Tasks" I see different Child Objects in the underlying Table"Child Objects". There is one Child Objekt with handle 918550; its child name is the wanted number and the child class is "static". I think this is what you mean, isnt it? Is this handle number something uniqe for each single window or willthis handle be the same by every time this window appears?
Its very interesting for me to dive into this...
mhund
Promixis
August 7th, 2004, 05:40 AM
Window handles are never the same. We can use either the class name or window text to find the window we want.
You should have a close look at the lua windows function plugin documentation and the links on MSDN.
Probably what you will have to do is find the window then enumerate all the childwindows, picking the one you want. The plugin includes several examples.
From what you posted above, I would say its doable ;)
mhund
August 7th, 2004, 06:03 AM
From what you posted above, I would say its doable ;)
Thanks for help; I will do my very best ;-)
When its done, I will report ...
mhund
mhund
August 7th, 2004, 10:55 AM
Hi people,
I have found a solution for my request: As a shame for the programmers under you - I passed on programming and use a freeware tool, called DisplayCall http://www.lachenmann-net.de/displaycall/. This Tool adapts my CAPI interface and executes free definable applications at incomming calls. Actually you can distinguish between the different MSN (called number; well known under ISDN users). I have defined different event.exe Parameters following my needs.
So the best solution for me and recommendable for others.
Thanks for help,
mhund
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.