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 


@window() problem

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Fri May 10, 2002 10:32 am    Post subject: @window() problem Reply with quote

I am having trouble making the @WINDOWS() function work properly.

For example, the following code does not return me to the parent but returns an empty string instead of the parent!

Code:
wait 3
%b = @winactive(i)
%%url_address = @window(%b,child)
info @window(%%url_address,owner)


What am i doing wrong?

Thanks,

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Fri May 10, 2002 12:37 pm    Post subject: Reply with quote

You might try using a WAIT after each line, or maybe
WAIT ".5" (if you use OPTION DECIMALSEP, ".").

Some of the window access functions are a tad slow,
and VDS will sometimes outrun them.

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Fri May 10, 2002 10:32 pm    Post subject: Reply with quote

Thanks for that Mac but no good!

I didn't put a wait for the @WINDOW(..,FIRST) and @WINDOW(..,LAST) and these 2 work fine. So why won't the @WINDOW(..,OWNER) work? grrrrrrr Confused Confused Confused

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat May 11, 2002 5:20 am    Post subject: Reply with quote

Hmmm... this is kinda strange. I can't even get the
CHILD parameter to work correctly...

In a VDS prog with a child dialog, it picks up the first
element (button, etc.) instead of the child window.
I tried with both windows open, and either of them
active several times...

OWNER also returns an empty value for me.

Any ideas anybody?

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sat May 11, 2002 5:52 am    Post subject: Reply with quote

Thanks for trying Mac, and great to see that i'm not the only one with that problem.

I placed a similar post at the VDS forum and am waiting to see what they suggest.

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Sat May 18, 2002 12:24 am    Post subject: Reply with quote

This simply must be a bug in VDS. There's nothing more I could add...

Tommy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sat May 18, 2002 12:28 am    Post subject: Reply with quote

thanks Tommy,

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Sat May 18, 2002 2:34 am    Post subject: Reply with quote

Try this one:

http://www.vdsworld.com/files/vdswin.zip

The simple source code is included.

Syntax:

@DWINDOW(PARENT,<window identifier>)
Returns the window identifier of the parent window.

@DWINDOW(VERSION)
Returns the DLL's version number (1.0).

Please note that this DLL returns the parent window's identifier which actually may not be the same as a window's owner.

Tommy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sat May 18, 2002 6:07 am    Post subject: Reply with quote

thanks Tommy - i can't check it out at the moment but i'll certainly do so in the following week.

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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