Lufia_Maxim
09-06-2008, 03: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.
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.