Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 08-29-2006, 09:44 AM   #1
Kryptonic
Junior Member
 
Join Date: Jul 2005
Posts: 6
Exclamation GetWindowText

ooooook guys heres a little tinker for ya!

im trying to read some fields from Flash FXP (in c#) using the Windows User32 API...

GetWindowText is what il be using...

so i use Microsoft Spy++ to get the Handle for one of the input boxes, lets say for arguments sake its 4134644.. (thats the handle to the text box...)

Spy++ reports this as an EDIT class, good so far!

so i use GetWindowText to try get the text from the text box.... empty string??
mmmmm so im stratching my head... i know ill test my code and use:

static extern int GetWindowTextLength(IntPtr hWnd)

this has got to work! i should get a length back now!! NOPE! nothing is coming back from ANY EDIT class field

HOWEVER if i use GetWindowText on anything else, Labels, Window Titles it works!!

What am i doing wrong here? Am i using the wrong API call to get data from an Edit Field?

its driving me mad!!! lol
Kryptonic is offline  
 

Tags
api, edit, fxp, getwindowtext, text


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:35 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)