True ;) > Matt >> What if the Manufacturer of that third party software changes their >> layout? or changes TStatusBar to TEnhancedStatusBar, then your code >> stops >> working. >> > > Hell we work with that everyday, its one of the joys of working with > Microsoft, There > are no guarantees > >> Matt. >> >> >>>> Yes you are correct, you will need either the class name OR the name >>>> of >>>> the >>>> control. >>>> So, to do that, you use something like Spy++ which comes with Visual >>>> Studio, >>>> or download for free windose from Greatis software which will give yo >>>> that >>>> information. >>>> >>>> Trust me, this definitly works on NON Delphi apps too..... The getting >>>> info >>>> from controls on a non delphi app. that is. >>>> >>>> >>>> Jeremy >>>> >>>> -----Original Message----- >>>> From: Matthew Comb [mailto:[EMAIL PROTECTED] >>>> Sent: 30 July 2007 22:36 >>>> To: [EMAIL PROTECTED]; 'NZ Borland Developers Group - Delphi List' >>>> Subject: RE: [DUG] Pulling status bar text off another application >>>> >>>> Correct me if I am wrong it's been a while, but you require the >>>> windows >>>> class name in order to use FindWindowsEx ? >>>> >>>> Your two calls use 'TfmMain' and 'TStatusbar' which are Delphi >>>> specific. >>>> >>>> It's worthwhile keeping this in mind when thinking about 'ANY browser >>>> and >>>> ANY app' >>>> >>>> Your code won't work for any browser consistently. >>>> >>>> Only way you can achieve that is by using a common interface. >>>> >>>> Of course if you know the application you are wanting to connect to >>>> and >>>> can >>>> determine these classnames then you don't have to worry. >>>> >>>> Matt. >>>> >>>> -----Original Message----- >>>> From: [EMAIL PROTECTED] >>>> [mailto:[EMAIL PROTECTED] >>>> On >>>> Behalf Of Jeremy Coulter >>>> Sent: Monday, 30 July 2007 7:32 p.m. >>>> To: 'NZ Borland Developers Group - Delphi List' >>>> Subject: RE: [DUG] Pulling status bar text off another application >>>> >>>> Nope, not at all. If you LOOK at the code you will seeit uses >>>> "FindWindowEx" >>>> to find a child control. It could be a VB textbox for all it cares. >>>> Infact, I have uses FindWindowEx to actually access a disabled textbox >>>> ina >>>> vb app, and change it to being enabled....so I could copy the text >>>> from >>>> it >>>> and paste it into my delphi app....cost I can nearly ALWAYS find a >>>> hack...hehhehe >>>> >>>> Jeremy p.s Matt, you firndigtal.com email bounced back when I >>>> replied. >>>> >>>> -----Original Message----- >>>> From: Matthew Comb [mailto:[EMAIL PROTECTED] >>>> Sent: 30 July 2007 19:06 >>>> To: [EMAIL PROTECTED]; 'NZ Borland Developers Group - Delphi List' >>>> Subject: RE: [DUG] Pulling status bar text off another application >>>> >>>> " It also means that Phil can support ANY browser, or ANY app. That >>>> has >>>> a >>>> statusbar." >>>> >>>> That was written in Delphi ? :) >>>> >>>> -----Original Message----- >>>> From: [EMAIL PROTECTED] >>>> [mailto:[EMAIL PROTECTED] >>>> On >>>> Behalf Of Jeremy Coulter >>>> Sent: Monday, 30 July 2007 7:03 p.m. >>>> To: 'NZ Borland Developers Group - Delphi List' >>>> Subject: RE: [DUG] Pulling status bar text off another application >>>> >>>> Did ANYONE apart from Phil take a look at the code I supplied?? >>>> My function does it is a LOT less complex manner that some of the >>>> ideas >>>> suggested thus far. >>>> It also means that Phil can support ANY browser, or ANY app. That has >>>> a >>>> statusbar. >>>> >>>> Jeremy >>>> >>>> -----Original Message----- >>>> From: [EMAIL PROTECTED] >>>> [mailto:[EMAIL PROTECTED] >>>> On >>>> Behalf Of Dennis Chuah >>>> Sent: 30 July 2007 18:49 >>>> To: NZ Borland Developers Group - Delphi List >>>> Subject: Re: [DUG] Pulling status bar text off another application >>>> >>>> >>>> Why don't you use automation to get access to the browser application >>>> object. From there you can use the HTML Dom to get access to the >>>> status >>>> bar >>>> text. >>>> >>>> ----- Original Message ----- >>>> From: "Phil Scadden" <[EMAIL PROTECTED]> >>>> To: <delphi@delphi.org.nz> >>>> Sent: Monday, July 30, 2007 2:57 PM >>>> Subject: [DUG] Pulling status bar text off another application >>>> >>>> >>>> >>>>> A webapp running in IE put text in the status bar that I would dearly >>>>> like to snaffle into another running application. Statusbar I think >>>>> is >>>>> a wincontrol so could be possible. Anyone with bright ideas on >>>>> discovering it? >>>>> >>>>> ---------------------------------------------------------- >>>>> Phil Scadden, GNS Science Ltd >>>>> 764 Cumberland St, Private Bag 1930, Dunedin, New Zealand Ph +64 3 >>>>> 4799663, fax +64 3 477 5232 >>>>> >>>>> _______________________________________________ >>>>> NZ Borland Developers Group - Delphi mailing list >>>>> Post: delphi@delphi.org.nz >>>>> Admin: http://delphi.org.nz/mailman/listinfo/delphi >>>>> Unsubscribe: send an email to [EMAIL PROTECTED] with >>>>> Subject: >>>>> unsubscribe >>>>> >>>>> >>>> _______________________________________________ >>>> NZ Borland Developers Group - Delphi mailing list >>>> Post: delphi@delphi.org.nz >>>> Admin: http://delphi.org.nz/mailman/listinfo/delphi >>>> Unsubscribe: send an email to [EMAIL PROTECTED] with >>>> Subject: >>>> unsubscribe >>>> >>>> No virus found in this incoming message. >>>> Checked by AVG Free Edition. >>>> Version: 7.5.476 / Virus Database: 269.10.19/917 - Release Date: >>>> 25/07/2007 >>>> 01:16 >>>> >>>> >>>> No virus found in this outgoing message. >>>> Checked by AVG Free Edition. >>>> Version: 7.5.476 / Virus Database: 269.10.19/917 - Release Date: >>>> 25/07/2007 >>>> 01:16 >>>> >>>> >>>> >>>> _______________________________________________ >>>> NZ Borland Developers Group - Delphi mailing list >>>> Post: delphi@delphi.org.nz >>>> Admin: http://delphi.org.nz/mailman/listinfo/delphi >>>> Unsubscribe: send an email to [EMAIL PROTECTED] with >>>> Subject: >>>> unsubscribe >>>> >>>> >>>> >>>> No virus found in this incoming message. >>>> Checked by AVG Free Edition. >>>> Version: 7.5.476 / Virus Database: 269.10.19/917 - Release Date: >>>> 25/07/2007 >>>> 01:16 >>>> >>>> >>>> No virus found in this outgoing message. >>>> Checked by AVG Free Edition. >>>> Version: 7.5.476 / Virus Database: 269.10.19/917 - Release Date: >>>> 25/07/2007 >>>> 01:16 >>>> >>>> >>>> >>>> _______________________________________________ >>>> NZ Borland Developers Group - Delphi mailing list >>>> Post: delphi@delphi.org.nz >>>> Admin: http://delphi.org.nz/mailman/listinfo/delphi >>>> Unsubscribe: send an email to [EMAIL PROTECTED] with >>>> Subject: >>>> unsubscribe >>>> >>>> >>>> >>>> No virus found in this incoming message. >>>> Checked by AVG Free Edition. >>>> Version: 7.5.476 / Virus Database: 269.10.19/917 - Release Date: >>>> 25/07/2007 >>>> 01:16 >>>> >>>> >>>> No virus found in this outgoing message. >>>> Checked by AVG Free Edition. >>>> Version: 7.5.476 / Virus Database: 269.10.19/917 - Release Date: >>>> 25/07/2007 >>>> 01:16 >>>> >>>> >>>> >>>> _______________________________________________ >>>> NZ Borland Developers Group - Delphi mailing list >>>> Post: delphi@delphi.org.nz >>>> Admin: http://delphi.org.nz/mailman/listinfo/delphi >>>> Unsubscribe: send an email to [EMAIL PROTECTED] with >>>> Subject: >>>> unsubscribe >>>> >>>> >>> _______________________________________________ >>> NZ Borland Developers Group - Delphi mailing list >>> Post: delphi@delphi.org.nz >>> Admin: http://delphi.org.nz/mailman/listinfo/delphi >>> Unsubscribe: send an email to [EMAIL PROTECTED] with >>> Subject: >>> unsubscribe >>> >>> >> >> >> _______________________________________________ >> NZ Borland Developers Group - Delphi mailing list >> Post: delphi@delphi.org.nz >> Admin: http://delphi.org.nz/mailman/listinfo/delphi >> Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: >> unsubscribe >> >> >> > > _______________________________________________ > NZ Borland Developers Group - Delphi mailing list > Post: delphi@delphi.org.nz > Admin: http://delphi.org.nz/mailman/listinfo/delphi > Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: > unsubscribe >
_______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe