If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Show Desktop Icons - Hotkey
Any way to set up a hotkey for the "Show Desktop Icons" menu item? Thanks
|
Ads |
#2
|
|||
|
|||
"High" wrote in message
... Any way to set up a hotkey for the "Show Desktop Icons" menu item? Thanks If you mean the "Show Desktop" icon normally found on the Quick Launch bar, there is already a hotkey. It's Windows key + D. -- Ken Blake - Microsoft MVP Windows: Shell/User Please reply to the newsgroup |
#3
|
|||
|
|||
how do you make your own hotkeys?
"Ken Blake" wrote in message ... "High" wrote in message ... Any way to set up a hotkey for the "Show Desktop Icons" menu item? Thanks If you mean the "Show Desktop" icon normally found on the Quick Launch bar, there is already a hotkey. It's Windows key + D. -- Ken Blake - Microsoft MVP Windows: Shell/User Please reply to the newsgroup |
#4
|
|||
|
|||
"Steven Wabik" wrote in message
... how do you make your own hotkeys? If you want a hotkey to a shortcut, right-click on it, choose Properties, and do it there. -- Ken Blake - Microsoft MVP Windows: Shell/User Please reply to the newsgroup "Ken Blake" wrote in message ... "High" wrote in message ... Any way to set up a hotkey for the "Show Desktop Icons" menu item? Thanks If you mean the "Show Desktop" icon normally found on the Quick Launch bar, there is already a hotkey. It's Windows key + D. -- Ken Blake - Microsoft MVP Windows: Shell/User Please reply to the newsgroup |
#5
|
|||
|
|||
In ,
Steven Wabik had this to say: My reply is at the bottom of your sent message: how do you make your own hotkeys? Alternatively: Function Keys : http://kgiii.info/windows/all/general/functionkeys.html Galen -- "But there are always some lunatics about. It would be a dull world without them." Sherlock Holmes |
#6
|
|||
|
|||
Ken Blake wrote:
"High" wrote in message ... Any way to set up a hotkey for the "Show Desktop Icons" menu item? Thanks If you mean the "Show Desktop" icon normally found on the Quick Launch bar, there is already a hotkey. It's Windows key + D. No, the "show desktop icons" menu item in XP. Rightclick on the desktop expand "arrange icons by..." select "show desktop icons." This will make the icons disappear or re-appear. I use this often and would like to do it with one keystroke combination. Thanks again. |
#7
|
|||
|
|||
You'll need to use your noggin. You need to start somewhere bland so it =
doesn't matter what state you are in. I suggest Ctrl + Escape to start = at the Start Menu, then escape to close it, tab several time to putfocus = on desktop, send My Computer to select My Comp, Ctrl + space to unselect = whatever is selected, then Shift + F10 to get a context menu. This = should now work regardless if you last had an item selected or not on = the desktop.=20 Create a text file and paste these lines in and name it = WhateverYouWant.vbs. In this example it cuts and pastes between two = windows. See below for sendkeys docs.=20 set WshShell =3D WScript.CreateObject("WScript.=ADShell")=20 WshShell.SendKeys "%{TAB}^c%{TAB}^v"=20 [above sends Alt + Tab, Ctrl + C, Alt + Tab, then Ctrl + V]=20 Then set a shortcut to the scripts (right click it and choose Copy, go = to the Desktop, a sub folder of the desktop, or on the Start Menu = somewhere [right click Start and choose Open] and right click a blank = area and choose Paste Shortcut) and set a hotkey for the shortcut (see = help - but right click shortcut and choose Properties and look on the = general tab - a lot of keys aren't available).=20 You may want to know these additional commands.=20 WSHShell.Run("c:\command.exe", 0, True)=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=AD=3D=3D=3D=20 With Param 1 being the command, Param 2 the window style (see below), = and Param 3 a flag to indicate if to wait at this command untill the = program started has exited - True it does and false it doesn't. Look in = the Shortcut's Properties of the Start Menu shortcuts to see some = command lines. You can also put document names in and have the Open = command run on them.=20 Window Style=20 ------------------=20 0 Hides the window and activates another window.=20 1 Activates and displays a window. If the window is minimized or = maximized, the system restores it to its original size and position. An = application should specify this flag when displaying the window for the = first time.=20 2 Activates the window and displays it as a minimized window.=20 3 Activates the window and displays it as a maximized window.=20 4 Displays a window in its most recent size and position. The active = window remains active.=20 5 Activates the window and displays it in its current size and position. = 6 Minimizes the specified window and activates the next top-level window = in the Z order.=20 7 Displays the window as a minimized window. The active window remains = active.=20 8 Displays the window in its current state. The active window remains = active.=20 9 Activates and displays the window. If the window is minimized or = maximized, the system restores it to its original size and position. An = application should specify this flag when restoring a minimized window.=20 10 Sets the show-state based on the state of the program that started = the application.=20 WSHShell.AppActivate "window title"=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=20 In determining which application to activate, the specified title is = compared to the title string of each running application. If no exact = match exists, any application whose title string begins with title is = activated. If an application still cannot be found, any application = whose title string ends with title is activated. If more than one = instance of the application named by title exists, one instance is = arbitrarily activated.=20 Use this to switch between windows and to make sure your sendkeys go to = the right window.=20 WScript.Sleep 50=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 Sends your program to sleep for the milliseconds specified. Sometimes = you may need to do this to give the recieving program the ability to = process your commands (as you are blocking it from running by sending it = keystrokes) or more frequently to give a process enough time to = complete.=20 SendKeys Syntax=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 Sends one or more keystrokes to the active window (as if typed on the = keyboard).=20 object.SendKeys(string)Argumen=ADts=20 object=20 WshShell object.=20 string=20 String value indicating the keystroke(s) you want to send.=20 Remarks=20 Use the SendKeys method to send keystrokes to applications that have no = automation interface. Most keyboard characters are represented by a = single keystroke. Some keyboard characters are made up of combinations = of keystrokes (CTRL+SHIFT+HOME, for example). To send a single keyboard = character, send the character itself as the string argument. For = example, to send the letter x, send the string argument "x".=20 Note To send a space, send the string " ".=20 You can use SendKeys to send more than one keystroke at a time. To do = this, create a compound string argument that represents a sequence of = keystrokes by appending each keystroke in the sequence to the one before = it. For example, to send the keystrokes a, b, and c, you would send the = string argument "abc". The SendKeys method uses some characters as = modifiers of characters (instead of using their face-values). This set = of special characters consists of parentheses, brackets, braces, and = the:=20 a.. plus sign "+",=20 b.. caret "^",=20 c.. percent sign "%",=20 d.. and tilde "~"=20 Send these characters by enclosing them within braces "{}". For example, = to send the plus sign, send the string argument "{+}". Brackets "[ ]" = have no special meaning when used with SendKeys, but you must enclose = them within braces to accommodate applications that do give them a = special meaning (for dynamic data exchange (DDE) for example).=20 a.. To send bracket characters, send the string argument "{[}" for the = left bracket and "{]}" for the right one.=20 b.. To send brace characters, send the string argument "{{}" for the = left brace and "{}}" for the right one.=20 Some keystrokes do not generate characters (such as ENTER and TAB). Some = keystrokes represent actions (such as BACKSPACE and BREAK). To send = these kinds of keystrokes, send the arguments shown in the following = table:=20 Key Argument=20 BACKSPACE {BACKSPACE}, {BS}, or {BKSP}=20 BREAK {BREAK}=20 CAPS LOCK {CAPSLOCK}=20 DEL or DELETE {DELETE} or {DEL}=20 DOWN ARROW {DOWN}=20 END {END}=20 ENTER {ENTER} or ~=20 ESC {ESC}=20 HELP {HELP}=20 HOME {HOME}=20 INS or INSERT {INSERT} or {INS}=20 LEFT ARROW {LEFT}=20 NUM LOCK {NUMLOCK}=20 PAGE DOWN {PGDN}=20 PAGE UP {PGUP}=20 PRINT SCREEN {PRTSC}=20 RIGHT ARROW {RIGHT}=20 SCROLL LOCK {SCROLLLOCK}=20 TAB {TAB}=20 UP ARROW {UP}=20 F1 {F1}=20 F2 {F2}=20 F3 {F3}=20 F4 {F4}=20 F5 {F5}=20 F6 {F6}=20 F7 {F7}=20 F8 {F8}=20 F9 {F9}=20 F10 {F10}=20 F11 {F11}=20 F12 {F12}=20 F13 {F13}=20 F14 {F14}=20 F15 {F15}=20 F16 {F16}=20 To send keyboard characters that are comprised of a regular keystroke in = combination with a SHIFT, CTRL, or ALT, create a compound string = argument that represents the keystroke combination. You do this by = preceding the regular keystroke with one or more of the following = special characters:=20 Key Special Character=20 SHIFT +=20 CTRL ^=20 ALT %=20 Note When used this way, these special characters are not enclosed = within a set of braces.=20 To specify that a combination of SHIFT, CTRL, and ALT should be held = down while several other keys are pressed, create a compound string = argument with the modified keystrokes enclosed in parentheses. For = example, to send the keystroke combination that specifies that the SHIFT = key is held down while:=20 a.. e and c are pressed, send the string argument "+(ec)".=20 b.. e is pressed, followed by a lone c (with no SHIFT), send the = string argument "+ec".=20 You can use the SendKeys method to send a pattern of keystrokes that = consists of a single keystroke pressed several times in a row. To do = this, create a compound string argument that specifies the keystroke you = want to repeat, followed by the number of times you want it repeated. = You do this using a compound string argument of the form {keystroke = number}. For example, to send the letter "x" ten times, you would send = the string argument "{x 10}". Be sure to include a space between = keystroke and number.=20 Note The only keystroke pattern you can send is the kind that is = comprised of a single keystroke pressed several times. For example, you = can send "x" ten times, but you cannot do the same for "Ctrl+x".=20 Note You cannot send the PRINT SCREEN key {PRTSC} to an application. = --=20 -------------------------------------------------------------------------= ------------------------- http://webdiary.smh.com.au/archives/...nt/001075.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D "High" wrote in message = news Ken Blake wrote: "High" wrote in message=20 ... =20 =20 Any way to set up a hotkey for the "Show Desktop Icons" menu=20 item? Thanks =20 =20 =20 If you mean the "Show Desktop" icon normally found on the Quick=20 Launch bar, there is already a hotkey. It's Windows key + D. =20 =20 No, the "show desktop icons" menu item in XP. Rightclick on the desktop expand "arrange icons by..." select "show desktop icons." This will make the icons disappear or re-appear. I use this often and would like to do it with one keystroke = combination. Thanks again. |
#8
|
|||
|
|||
David Candy wrote:
You'll need to use your noggin. Thanks, Dave for your reply. I don't know if I have a noggin capable of figgerin all dat out. I just thought that a sub-menu item may have an ascii equivelant or somtin' that could be mapped to a keystroke combination but I ain't goin' through all that bulls**t just to save a couple of mouse clicks. It ain't that I don't wanna learn all that, it's just that I don't need or have the time to learn all that. Why don't you do it for me and reply with the exact instructions. Please? Pretty Please? |
#9
|
|||
|
|||
set WshShell =3D WScript.CreateObject("WScript.Shell")=20
WshShell.SendKeys "^{Esc}{Esc}{TAB}{TAB}{TAB}{TAB}My"=20 WScript.Sleep 1000=20 WshShell.SendKeys "^ " WScript.Sleep 500=20 WshShell.SendKeys "+{F10}" WScript.Sleep 500=20 WshShell.SendKeys "ID" Play around with the timing (the sleep time is in milliseconds). = Explorer is a bit slow at making menus. Also the number of tabs sent = depend on your taskbar layout. I have quick launch showing so I need 4 = tabs to get to the desktop (though Shift + tab is alway one back to = desktop). --=20 -------------------------------------------------------------------------= ------------------------- http://webdiary.smh.com.au/archives/...nt/001075.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D "High" wrote in message = ... David Candy wrote: You'll need to use your noggin. =20 Thanks, Dave for your reply. I don't know if I have a noggin capable of figgerin all dat out. I = just=20 thought that a sub-menu item may have an ascii equivelant or somtin'=20 that could be mapped to a keystroke combination but I ain't goin'=20 through all that bulls**t just to save a couple of mouse clicks. It=20 ain't that I don't wanna learn all that, it's just that I don't need = or=20 have the time to learn all that. Why don't you do it for me and reply=20 with the exact instructions. Please? Pretty Please? |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Duplicate icons on the desktop | Verse914 | General XP issues or comments | 1 | May 17th 05 02:45 PM |
Desktop icons are gone again. | PCOR | General XP issues or comments | 5 | February 26th 05 03:29 PM |
Desktop icons... with a twist. | Alphonse | The Basics | 2 | February 16th 05 04:11 PM |
no icons on the desktop! | marco | Windows XP Help and Support | 1 | February 13th 05 01:19 PM |
Unchecking "Show Desktop Icons" causes jagged background | ElSama | General XP issues or comments | 1 | January 26th 05 05:39 AM |