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 


Clip Desktop

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Wed Feb 05, 2003 7:43 pm    Post subject: Clip Desktop Reply with quote

Is there any way using VDS (with or without a DLL) that the desktop screen area can be clipped? By clipped, I mean the same what the windows task bar (when ontop and not autohide) clips the screen so when a window is maximized the task bar stays in view. Know what I mean? Confused

Thanks,

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Garrett
Moderator Team


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

PostPosted: Wed Feb 05, 2003 8:41 pm    Post subject: Reply with quote

I've been wanting to know this one for a long time also. Tried figuring it
out, but haven't had any luck over the last few years.

-Garrett
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Wed Feb 05, 2003 8:45 pm    Post subject: Reply with quote

Well, If I find anything, I'll let you know! Smile
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mac
Professional Member
Professional Member


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

PostPosted: Thu Feb 06, 2003 2:15 am    Post subject: Reply with quote

If the taskbar is showing, ya should be able to search for
either the taskbar or the systray. These examples check
for "tray" in the @winatpoint() window class name.

These search top to bottom - the top example trips on the
first title containing "tray", the second trips on the last one
(which might not be so good if the user has the taskbar at
the top of the screen).

If ya know the actual class names of different OS taskbars
or systrays, ya could put those in a list and check %%target
against them with the FIRST example.

If the taskbar is NOT showing (or is partially covered) you'll
wind up with the same size as the current app. But at least
you won't be the only one... Wink

Maybe it'll give ya some ideas...
__________________________________________________________________________________________________________________________
Code:

rem -- This one gets FIRST title (top to  bottom) that contains "tray" --
%x = @pred(@sysinfo(SCREENWIDTH))
%y = 0
REPEAT
  %%target = @winclass(@winexists(@winatpoint(%x, %y)))
  if @greater(@pos("tray", %%target), 0)
     %%systray_top = %y
  end
  %y = @succ(%y)
UNTIL %%systray_top @greater(%y, @sysinfo(SCREENHEIGHT))
INFO Class name = %%target@tab()@cr()@cr()SysTray top should be at %%systray_top@tab()


rem -- This one gets LAST title (top to  bottom) that contains "tray" --
%x = @pred(@sysinfo(SCREENWIDTH))
%y = 0
REPEAT
  %%target = @winclass(@winexists(@winatpoint(%x, %y)))
  if @both(@greater(@pos("tray", %%target), 0), @not(@equal(%%oldtarget,%%target)))
     %%systray_top = %y
     %%oldtarget = %%target
  end
  %y = @succ(%y)
UNTIL @greater(%y, @sysinfo(SCREENHEIGHT))
INFO Class name = %%oldtarget@tab()@cr()@cr()SysTray top should be at %%systray_top@tab()

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
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