forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Determining Text of Non-VDS Control?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Tue Aug 17, 2004 4:05 pm    Post subject: Determining Text of Non-VDS Control? Reply with quote

Hi All,

Would anyone happen to have an example demonstrating how to obtain the text of a non-VDS control? For example, in a non-VDS dialog, it would be neat to be able to click on a button and retrieve the name/text of the control (in Windows Spy fashion) for use within a VDS application...

Thanks,

- Boo


Last edited by Boo on Tue Aug 17, 2004 4:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Aug 17, 2004 4:12 pm    Post subject: Reply with quote

You can use @wintext() to obtain the text of any control. However I'm not
sure as how to get the handle of the control.

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Tue Aug 17, 2004 4:42 pm    Post subject: Reply with quote

Hi FreezingFire,

Yeppers.

However, I need to be able to obtain the text from a specific button (for example) at a specific point on the screen. The @wintext() function allows me to grab the text from the main window, but I need the text from a smaller control (i.e. child window)....

I need to determine the control (child window) from a mouse click, then process the text...

Thanks,

- Boo
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Aug 17, 2004 5:07 pm    Post subject: Reply with quote

Maybe this is what you need?

Code:
DIALOG CREATE,New Dialog,-1,0,240,160
  DIALOG ADD,EDIT,EDIT1,23,17,180,19,EDIT1
  DIALOG ADD,EDIT,EDIT2,54,16,180,19,EDIT2
  DIALOG SHOW

repeat
  wait 0.001
  dialog set,edit1,@winatpoint(@mousepos(x),@mousepos(y))
  dialog set,edit2,@wintext(@winatpoint(@mousepos(x),@mousepos(y)))
until @event()

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Tue Aug 17, 2004 5:16 pm    Post subject: Reply with quote

Hi Skit3000,

Yeppers, I know how to do this. (But thanks.)

Problem is, this does not actually identify the child windows of specific buttons. Try running your Web browser, then run your code, and then place your pointer over buttons. It will show toolbars, but not specific buttons.

Am I crazy, or is this even possible?

Thanks,

Keith "Boo" L.
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Tue Aug 17, 2004 7:01 pm    Post subject: Reply with quote

Are you talking about form buttons on a web page in the browser window?

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Boo
Valued Contributor
Valued Contributor


Joined: 31 Oct 2003
Posts: 599
Location: Gulf Breeze, Florida USA

PostPosted: Tue Aug 17, 2004 8:32 pm    Post subject: Reply with quote

Yeppers, as well as toolbar buttons, BHO (Browser Help Object) buttons, etc. (Of course, I am referring to buttons with text--not bitmaps. Although even with graphical buttons, it would be nice to be able to identify the child window for the control--if it is even possible...
Back to top
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Wed Aug 18, 2004 6:45 am    Post subject: Reply with quote

You can get the handle (ID) of controls which are true windows only. BHO toolbar buttons,elements on a form in a browser element etc are not supported. These elements usually have a different (OLE/COM) interface to control them. To control a button/Edit box on a webpage U can use a BHO interface for example.
_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group