View Full Version : Simple Bookmarklet

09-06-2008, 04:55 AM
Hey guys,

I'm trying to make a relatively simple bookmarklet, but am having difficulties doing it (note that I have limited knowledge of JavaScript, so I am forced to rely on learning from other examples and such).

Basically, what I'm trying to do is send a key (either w, a, s, or d) to the current window.

I'm at the poitn where I'm pretty sure I have to use the VB function SendKeys to get thsi done, but that's where I get stuck. This is what I've come up with:

javascript:var WshShell = WScript.CreateObject("WScript.Shell");WshShell.SendKeys("{W}");

If anyone can help, it'd be greatly appreciated.

09-07-2008, 01:01 AM
No one can help? I thought this would be a simple thing to do.

09-08-2008, 06:49 AM
bump :)