Simple Keystroke Docklet

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]
1,287 views 1 replies
Reply #1 Top
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