Simple Keystroke Docklet

Wednesday, February 8, 2006 by art4mad | Discussion: ObjectDock

I am running the latest ObjectDock Plus, Windows XP pro SP2

I have been searching for a simple docklet that will do no more than simulate a single keystroke in Windows XP. My purpose is to use it to simluate pressing the "F8" key, which will launch the "Heads Up Display" of Yahoo Widget (formerly Konspose). I was planning on using a Mac OS X "Dashboard" icon with it, thereby simluating the dashboard feature of Mac OS X. Is there such a docklet? I have zero experience with scripts or such to try and make one myself. Any help would be appreciated!

Thanks,

Tom
[email protected]
ZubaZ
Reply #1 Wednesday, February 8, 2006 9:53 PM
I'd use a vbs script. But it has it's own issues.

What to call? Unless you specify an app, this script will target whatever is in focus.
How hast to call it? The script runs faster than any GUI. So you might need a wait in there.

A sample to start you off:
Create a txt file.

Paste in the following:
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "explorer.exe"
Wscript.Sleep 5000
objShell.AppActivate "Explorer"
objShell.SendKeys "{F1}"


Rename it to a vbs file
drag it to your dock

It'll send F1 to explorer.


Posted via WinCustomize Browser/Stardock Central

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01