Page 1 of 1

Posted: Tue Feb 11, 2003 9:36 pm
by BackupUser
Restored from previous forum. Originally posted by MrVainSCL.

Hi,
is there any way on WinNT4 with 1000th opened windows/appz to jump direct to the desktop like the feature in the taskbar since Win98 i think!? Maybe there is any way to find windowname of desktop or so...!? I dont know. Thanks for any help or codesnips.


greetz
MrVainSCL! aka Thorsten

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX9.0, SB AWE64, Win2000 + all Updates...

Posted: Tue Feb 11, 2003 10:10 pm
by BackupUser
Restored from previous forum. Originally posted by PB.

> Maybe there is any way to find windowname of desktop or so...!?

r=FindWindow_(0,"Program Manager") ; r = Handle of Desktop.

I know somebody will say to use GetDesktopWindow_() but this returns
a different handle to the above, and in my experience the version
above is the actual Desktop. For example, trying to set the focus
to GetDesktopWindow_() doesn't work, but it does with the above, on
all versions of Windows.

Posted: Tue Feb 11, 2003 10:42 pm
by BackupUser
Restored from previous forum. Originally posted by MrVainSCL.

Many thx PB, i am very happy about your help! I will test it tomorrow @ work! Thx again! :wink:

Edited:
Mhhhhh... seems i make any mistake!? I find the window but cant bring the desktop to front... I think i saw somewhere long time ago an api command to bring all appz/windows to background (so the desktop was in front too).. i will take a clother look and hope i will find it out :wink:

greetz
MrVainSCL! aka Thorsten

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX9.0, SB AWE64, Win2000 + all Updates...

Posted: Tue Feb 11, 2003 11:54 pm
by BackupUser
Restored from previous forum. Originally posted by PB.

> I find the window but cant bring the desktop to front...

I don't think you can actually bring it to the front. You can give
it the focus, but not put it on top of other open windows. Not that
I know of, anyway.

As for the "feature" in Win98 that you spoke of: if you mean the
"Show Desktop" feature, then I've already beaten you to it:

http://tinyurl.com/5qou

:)

Posted: Wed Feb 12, 2003 12:07 am
by BackupUser
Restored from previous forum. Originally posted by MrVainSCL.
As for the "feature" in Win98 that you spoke of: if you mean the
"Show Desktop" feature, then I've already beaten you to it:

http://www.bowlay.com/showmydt.htm
Hi PB,
seems there is really no way to bring destkop to screen, even if you know the handle. I will check some more stuff.. Maybe there is ayn way!?

Ohhhh, very nice tool... i think that would do nearly the same job as i need for a program in the company. I have to search again this #minimize #maximize window stuff :wink: Anyway many thanks for help and keep on ya nice work! :wink:

PS: I only know "CascadeWindows_(...)" - but thats not what i want for all windows, hehe... Seems i have to use "ShowWindow_(WindowID,#SW_MINIMIZE)" and have to get every window and its id first..!? I will take a clother look to it... thx mate


greetz
MrVainSCL! aka Thorsten

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX9.0, SB AWE64, Win2000 + all Updates...

Posted: Wed Feb 12, 2003 12:49 pm
by BackupUser
Restored from previous forum. Originally posted by tranquil.

@MrVain:

it should work if you bring these:

Code: Select all

[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop
in a .scr File and execute this. Dont know if this works on NT. Never tried.

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
System: Windows 2000 Server, 512 MB Ram, GeForce4200 TI 128 MB DDR, Hercules Theater 6.1 DTS Sound
System 2: Mobile Pentium 4 2.4GHz 512 MB DDR GeForce4 420-32, Windows XP Home

Posted: Wed Feb 12, 2003 6:08 pm
by BackupUser
Restored from previous forum. Originally posted by MrVainSCL.

HI mike,
how should i execute a .scr file if its something like a batch file?
Mhhhhh... I need a routine to include in a program (exe) :wink:

Btw, when you are back from empire, would be nice when you can phone or icq me. Thx

greetz
MrVainSCL! aka Thorsten

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX9.0, SB AWE64, Win2000 + all Updates...

Posted: Wed Feb 12, 2003 7:19 pm
by BackupUser
Restored from previous forum. Originally posted by ricardo.

Press Windows Key + D
or
Windows Key + M

and ALL the windows will be minimized showing the desktop only.

Maybe SendaKey could be used to get this same behavior


Best Regards

Ricardo

Dont cry for me Argentina...

Posted: Wed Feb 12, 2003 9:43 pm
by BackupUser
Restored from previous forum. Originally posted by PB.

> Windows Key + D or Windows Key + M
> and ALL the windows will be minimized showing the desktop only.

Win+D doesn't work on NT4, and Win+M doesn't minimize all windows
either (such as "Display Properties", or PowerDVD's windows).

Posted: Wed Feb 12, 2003 9:45 pm
by BackupUser
Restored from previous forum. Originally posted by PB.

> how should i execute a .scr file if its something like a batch file?

SCR is just the same as EXE, so just treat it like an EXE.

Posted: Wed Feb 12, 2003 9:49 pm
by BackupUser
Restored from previous forum. Originally posted by MrVainSCL.

I havent had the time to check and really start coding, due fact of a lot other work. I am very busy! I think and will try to solve the problem with routines like:

"ShowWindow_(WindowID,#SW_MINIMIZE)"

first i will get every window handy, its size and position - save this infos to list/aray and instead using maximize i will show every window with SetWindowPos_() or however the command was... Maybe this is the right way... hope i have some time tomorrow to test it out...

greetz
MrVainSCL! aka Thorsten

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX9.0, SB AWE64, Win2000 + all Updates...

Posted: Wed Feb 12, 2003 9:49 pm
by BackupUser
Restored from previous forum. Originally posted by PB.

> Dont know if this works on NT. Never tried.

Doesn't seem to work on anything... Win 95, 98 and 2000 all say that
the file is not a valid Win32 application...

Posted: Wed Feb 12, 2003 9:53 pm
by BackupUser
Restored from previous forum. Originally posted by MrVainSCL.

Mhhhh.. PB, i dont want your source of ya nice tool, but can you give me only a hint how it could be possible... :wink:

I really tought ya prog works on this way... mhhh

greetz
MrVainSCL! aka Thorsten

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX9.0, SB AWE64, Win2000 + all Updates...

Posted: Thu Feb 13, 2003 3:01 am
by BackupUser
Restored from previous forum. Originally posted by ricardo.
Originally posted by PB

> Windows Key + D or Windows Key + M
> and ALL the windows will be minimized showing the desktop only.

Win+D doesn't work on NT4, and Win+M doesn't minimize all windows
either (such as "Display Properties", or PowerDVD's windows).
But there should be some shortcut to minimize all windows!
Otherwise... change your OS :)

Check this link:

http://www.experts-exchange.com/Operati ... 68721.html

If there is an answer its there !

Best Regards

Ricardo

Dont cry for me Argentina...

Posted: Thu Feb 13, 2003 4:06 am
by BackupUser
Restored from previous forum. Originally posted by PB.

> But there should be some shortcut to minimize all windows!

There isn't. That's why I wrote my app. No matter what OS you use,
I can show you an app that won't minimize with a Windows hotkey. :)