Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Simple Bookmarklet

    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:

    Code:
    javascript:var WshShell = WScript.CreateObject("WScript.Shell");WshShell.SendKeys("{W}");
    If anyone can help, it'd be greatly appreciated.

  • #2
    New to the CF scene
    Join Date
    Sep 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No one can help? I thought this would be a simple thing to do.

  • #3
    New to the CF scene
    Join Date
    Sep 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    bump


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •