home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2005 May
/
PCWorld_2005-05_cd.bin
/
software
/
vyzkuste
/
zastupci
/
zastupci.exe
/
pcwWinScreen.vbs
< prev
Wrap
Text File
|
2005-03-13
|
2KB
|
60 lines
Set MyArgs=wscript.arguments
set MyShell=CreateObject("Wscript.Shell")
set MyFiles=CreateObject("Scripting.FileSystemObject")
Set AppShell = Wscript.CreateObject ("Shell.Application")
on error resume next
modus=MyArgs(0)
select case modus
case "-Minimize"
AppShell.MinimizeAll
case "-UndoMinimize"
AppShell.UndoMinimizeAll
case "-Cascade"
AppShell.CascadeWindows
case "-TileVertically"
AppShell.TileVertically
case else
verz=MyShell.SpecialFolders("Startmenu") & "\Programy\WinScreen"
MyFiles.CreateFolder(verz)
thisScript=Wscript.ScriptFullname
set thisscript=MyFiles.GetFile(thisScript)
thisscript.copy(verz & "\pcwWinScreen.vbs")
set link=MyShell.CreateShortcut(verz & "\Min.lnk")
link.TargetPath=verz & "\pcwWinScreen.VBS"
link.arguments="-Minimize"
link.Hotkey="CTRL+Alt+EXT+Down"
link.save
set link=MyShell.CreateShortcut(verz & "\MinUndo.lnk")
link.TargetPath=verz & "\pcwWinScreen.VBS"
link.arguments="-UndoMinimize"
link.Hotkey="CTRL+Alt+EXT+Up"
link.save
set link=MyShell.CreateShortcut(verz & "\Cascade.lnk")
link.TargetPath=verz & "\pcwWinScreen.VBS"
link.arguments="-Cascade"
link.Hotkey="CTRL+Alt+EXT+Left"
link.save
set link=MyShell.CreateShortcut(verz & "\Tile.lnk")
link.TargetPath=verz & "\pcwWinScreen.VBS"
link.arguments="-TileVertically"
link.Hotkey="CTRL+Alt+EXT+Right"
link.save
msgbox "NovΘ klßvesovΘ zkratky: " & verz & chr(13) &_
"CTRL-ALT-Üipka dol∙" & chr(9) & " Minimalizovat vÜe" & chr(13) &_
"CTRL-ALT-Üipka nahoru" & chr(9) & "Undo k minimalizovßnφ" & chr(13) &_
"CTRL-ALT-Üipka vlevo" & chr(9) & "KaskßdovΘ uspo°ßdßnφ oken" & chr(13) &_
"CTRL-ALT-Üipka vpravo" & chr(9) & "Okna pod sebou" & chr(13)
end select