| View previous topic :: View next topic |
| Author |
Message |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Dec 28, 2002 2:53 pm Post subject: What does Windows Spy do, what I can't do? |
|
|
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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Dec 28, 2002 3:02 pm Post subject: |
|
|
You could use:
| Code: | | info @wintext(@winatpoint(986,752)) |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Dec 28, 2002 3:32 pm Post subject: |
|
|
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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Dec 28, 2002 6:42 pm Post subject: |
|
|
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 |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Sat Dec 28, 2002 7:27 pm Post subject: |
|
|
| Why would you want this? Do you want to get the time, or something else? |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Dec 28, 2002 7:42 pm Post subject: |
|
|
| 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 |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Sat Dec 28, 2002 7:48 pm Post subject: |
|
|
| 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
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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Dec 28, 2002 7:52 pm Post subject: |
|
|
| Well, I can't find if I use the winlist function.... |
|
| Back to top |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Sat Dec 28, 2002 8:01 pm Post subject: |
|
|
You can get the position of the taskbar (of Windows XP, that is ) 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 )
Last edited by Tsunami1988 on Sat Dec 28, 2002 8:47 pm; edited 6 times in total |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Dec 28, 2002 8:09 pm Post subject: |
|
|
| Well, that's a start! Hope it's also usable on other systems.... |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Dec 28, 2002 8:14 pm Post subject: |
|
|
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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Dec 28, 2002 8:21 pm Post subject: |
|
|
Mac, over here all icons have this class name: ToolbarWindow32. Think it's different for all OS or something....  |
|
| Back to top |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Sat Dec 28, 2002 8:27 pm Post subject: |
|
|
| Skit3000 wrote: | Mac, over here all icons have this class name: ToolbarWindow32. Think it's different for all OS or something....  |
What's your OS? |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Dec 28, 2002 8:31 pm Post subject: |
|
|
| Oops, forgot to tell.... It's Windows XP Home edition... |
|
| Back to top |
|
 |
|