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 


What does Windows Spy do, what I can't do?
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Skit3000
Admin Team


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

PostPosted: Sat Dec 28, 2002 2:53 pm    Post subject: What does Windows Spy do, what I can't do? Reply with quote

Hi all,

When I click on the Windows Clock with the Windows Spy tool, it says something like this:
%196672 #TrayClockWClass "15:47".
But if I use the @wintext() function to get the current time it gives an error...

Am I doing something wrong, or is it a bug in VDS???

Code:
info @wintext(#TrayClockWClass)


Btw. I also try to get the Class Name with the Windows Identifier, but that didn't work too...

Code:
info @winclass(Windows Identifier retreived by the Windows Spy)
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Dec 28, 2002 3:02 pm    Post subject: Reply with quote

You could use:

Code:
info @wintext(@winatpoint(986,752))

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


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

PostPosted: Sat Dec 28, 2002 3:32 pm    Post subject: Reply with quote

That solution came up to my mind too, but it isn't very usefull when using on other PCs because of the X & Y positions...

I tried to get them with @winpos(), but that also returned nothing. And the thing I want to do is to see if the mouse is over the Windows Clock, so I can make a sort of mouseover event for that one, and for other Taskicons... So in that case is the only thing you haven't got, the X and Y position of the clock...
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Dec 28, 2002 6:42 pm    Post subject: Reply with quote

You could try another approach such as subtracting ten from the screen
width and height:

Code:
%x = @diff(@sysinfo(screenwidth),10)
%y = @diff(@sysinfo(screenheight),10)
info @wintext(@winatpoint(%x,%y))

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


Joined: 15 Aug 2002
Posts: 70
Location: The Netherlands

PostPosted: Sat Dec 28, 2002 7:27 pm    Post subject: Reply with quote

Why would you want this? Do you want to get the time, or something else?
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Skit3000
Admin Team


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

PostPosted: Sat Dec 28, 2002 7:42 pm    Post subject: Reply with quote

I want to make a kind of mouseover routine that checks if the mouse is over a Taskicon or the Windows Clock...
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Sat Dec 28, 2002 7:48 pm    Post subject: Reply with quote

FreezingFire wrote:
You could try another approach such as subtracting ten from the screen
width and height:

Code:
%x = @diff(@sysinfo(screenwidth),10)
%y = @diff(@sysinfo(screenheight),10)
info @wintext(@winatpoint(%x,%y))


Only if the system tray is at the bottom of the screen of course Smile
If you could find out the taskbar position(bottom, top or side) you could then do subtracting based on that though. Looks like Skit tried the @wintext() approach with no results, so even that won't help I guess.

Could WINLIST be used and search through the list for TrayClock?

One more thing to take into account is that in XP the clock can be disabled. You might have to check the registry to see if it is even showing on the users system.

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
Skit3000
Admin Team


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

PostPosted: Sat Dec 28, 2002 7:52 pm    Post subject: Reply with quote

Well, I can't find if I use the winlist function....
Back to top
View user's profile Send private message
Tsunami1988
Contributor
Contributor


Joined: 15 Aug 2002
Posts: 70
Location: The Netherlands

PostPosted: Sat Dec 28, 2002 8:01 pm    Post subject: Reply with quote

You can get the position of the taskbar (of Windows XP, that is Smile) by using this:

Code:
%%TaskbarX = @WINPOS(#Shell_TrayWnd,L)
%%TaskbarY = @WINPOS(#Shell_TrayWnd,T)

%%ClockX = @DIFF(@SUM(%%TaskbarX,@WINPOS(#Shell_TrayWnd,W)),10)
%%ClockY = @DIFF(@SUM(%%TaskbarY,@WINPOS(#Shell_TrayWnd,H)),10)

INFO @WINTEXT(@WINATPOINT(%%ClockX,%%ClockY))


I have finished it now (see code above Smile)


Last edited by Tsunami1988 on Sat Dec 28, 2002 8:47 pm; edited 6 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Skit3000
Admin Team


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

PostPosted: Sat Dec 28, 2002 8:09 pm    Post subject: Reply with quote

Well, that's a start! Hope it's also usable on other systems....
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


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

PostPosted: Sat Dec 28, 2002 8:13 pm    Post subject: Reply with quote

You can monitor @mouspos(XY) like this spy tool does:

http://www.vdsworld.com/forum/viewtopic.php?t=450

It shows the clock (TrayClockWClass ), but shows all icons
as the same (TrayNotifyWnd)... Wink

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
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Dec 28, 2002 8:14 pm    Post subject: Reply with quote

This should work with the taskbar on the top or bottom of the screen:

Code:
%X = @diff(@sysinfo(screenwidth),10)
%Y = @sum(@WINPOS(#Shell_TrayWnd,T),5)
INFO @wintext(@winatpoint(%x,%y))

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


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

PostPosted: Sat Dec 28, 2002 8:21 pm    Post subject: Reply with quote

Mac, over here all icons have this class name: ToolbarWindow32. Think it's different for all OS or something.... Sad
Back to top
View user's profile Send private message
Tsunami1988
Contributor
Contributor


Joined: 15 Aug 2002
Posts: 70
Location: The Netherlands

PostPosted: Sat Dec 28, 2002 8:27 pm    Post subject: Reply with quote

Skit3000 wrote:
Mac, over here all icons have this class name: ToolbarWindow32. Think it's different for all OS or something.... Sad

What's your OS?
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Skit3000
Admin Team


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

PostPosted: Sat Dec 28, 2002 8:31 pm    Post subject: Reply with quote

Oops, forgot to tell.... It's Windows XP Home edition...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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