| View previous topic :: View next topic |
| Author |
Message |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Dec 28, 2002 8:32 pm Post subject: |
|
|
| Skit3000 wrote: |
Mac, over here all icons have this class name: ToolbarWindow32. Think it's different for all OS or something....
|
Have ya tried it? You said Window Spy showed a clock
class, so I just thought ya just wanted to know if it was
over the clock...
Cheers, Mac  _________________ 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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Dec 28, 2002 8:37 pm Post subject: |
|
|
| Well, I want to know if the mouse is over the clock or over the icons. But for that, I need the position of them both.... |
|
| Back to top |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Sat Dec 28, 2002 8:44 pm Post subject: |
|
|
You are a very lucky man Windows 98 uses the same class name for the taskbar as XP, so you have very much chance the OS's between them do too. Maybe someone who can verify it on Windows 95? (and other OS's, to make sure ) |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Dec 28, 2002 8:59 pm Post subject: |
|
|
Windows 95B - OSR2
Clock: TrayClockWClass
SysTray: TrayNotifyWnd
Taskbar: SysTabControl32
Cheers, Mac  _________________ 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 |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Sat Dec 28, 2002 9:14 pm Post subject: |
|
|
| Mac wrote: | Windows 95B - OSR2
Clock: TrayClockWClass
SysTray: TrayNotifyWnd
Taskbar: SysTabControl32
Cheers, Mac  |
On Windows 95 4.00.950 (I don't know which version that is ) I get the same as 98 and XP.
I see #SysTabControl32, but I'm pretty sure that's not the taskbar. |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Dec 28, 2002 9:35 pm Post subject: |
|
|
I used the VDS spy tool I wrote. Window Spy
gives the whole family tree...
Cheers, Mac  _________________ 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 |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 765 Location: Eastman, GA
|
Posted: Tue Jan 07, 2003 5:11 pm Post subject: |
|
|
I'm a little late with this. Sorry but I was thinking about this today and came up with a solution!
| Code: |
%%tray = @winexists(#Shell_TrayWnd)
%%button = @window(%%tray,Child)
%%Notify = @window(%%button,Next)
%%clock = @window(%%Notify,Child)
%%wintext = @wintext(%%clock)
info %%wintext
|
NodNarb
PS Let me know if it doesn't work with some versions. |
|
| Back to top |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Tue Jan 07, 2003 5:14 pm Post subject: |
|
|
| cnodnarb wrote: | I'm a little late with this. Sorry but I was thinking about this today and came up with a solution!
| Code: |
%%tray = @winexists(#Shell_TrayWnd)
%%button = @window(%%tray,Child)
%%Notify = @window(%%button,Next)
%%clock = @window(%%Notify,Child)
%%wintext = @wintext(%%clock)
info %%wintext
|
NodNarb
PS Let me know if it doesn't work with some versions. |
It doesn't work for me (WinXP Pro). It goes wrong when the script gets to "%%clock = @window(%%Notify,Child)". |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 765 Location: Eastman, GA
|
Posted: Tue Jan 07, 2003 6:08 pm Post subject: |
|
|
This is kind of a guess...tell me if it works or use winspy and see what I'm doing wrong maybe.
Updated 12:15 pm
| Code: |
%%tray = @winexists(#Shell_TrayWnd)
%%next = @window(%%tray,Child)
if @equal(@winclass(%%next),TrayNotifyWnd)
%%clock = @window(%%next,Child)
%%wintext = @wintext(%%clock)
goto wintext
end
repeat
%%next = @window(%%next,Next)
until @equal(@winclass(%%next,TrayNotifyWnd))
%%clock = @window(%%next,Child)
%%wintext = @wintext(%%clock)
:wintext
info %%wintext
|
NodNarb |
|
| Back to top |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Tue Jan 07, 2003 6:21 pm Post subject: |
|
|
| cnodnarb wrote: | This is kind of a guess...tell me if it works or use winspy and see what I'm doing wrong maybe.
| Code: |
%%tray = @winexists(#Shell_TrayWnd)
%%next = @window(%%tray,Child)
if @equal(@winclass(%%next),TrayNotifyWnd)
%%wintext = @wintext(%%next)
goto wintext
end
repeat
%%next = @window(%%next,Next)
until @equal(@winclass(%%next,TrayNotifyWnd))
%%clock = @window(%%next,Child)
%%wintext = @wintext(%%clock)
:wintext
info %%wintext
|
NodNarb |
This doesn't work eather. I think the problem is that you can't use @WINTEXT() (see first post(s)). @WINTEXT(@WINATPOINT(X,Y)) should work. |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Wed Jan 08, 2003 7:27 am Post subject: |
|
|
| cnodnarb wrote: | I'm a little late with this. Sorry but I was thinking about this today and came up with a solution!
| Code: |
%%tray = @winexists(#Shell_TrayWnd)
%%button = @window(%%tray,Child)
%%Notify = @window(%%button,Next)
%%clock = @window(%%Notify,Child)
%%wintext = @wintext(%%clock)
info %%wintext
|
NodNarb
PS Let me know if it doesn't work with some versions. |
Hey NodNarb. Good thinking on this one. It's runs fine with me - WinXP Home/VDS3.
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Jan 08, 2003 11:31 am Post subject: |
|
|
Works fine on XP Professional and VDS 4.5  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Wed Jan 08, 2003 2:06 pm Post subject: |
|
|
Why does it work for everyone, except me? I have WinXP Pro and VDS 3.51. |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Wed Jan 08, 2003 3:14 pm Post subject: |
|
|
| Works for me too... Only thing left is to get the X and Y position of it, and of other trayicons.... |
|
| Back to top |
|
 |
cnodnarb Professional Member


Joined: 11 Sep 2002 Posts: 765 Location: Eastman, GA
|
Posted: Wed Jan 08, 2003 4:12 pm Post subject: |
|
|
Fot the clock this works...should be simple mathematics after that I hope...I think taskicons take up a uniform amount of space but I'm not sure about various font size settings and windows systems.
| Code: |
%%tray = @winexists(#Shell_TrayWnd)
%%button = @window(%%tray,Child)
%%Notify = @window(%%button,Next)
%%clock = @window(%%Notify,Child)
info @winpos(%%clock,TL)
%%wintext = @wintext(%%clock)
info %%wintext
|
NodNarb |
|
| Back to top |
|
 |
|