Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. How to fires F11 key automatically [modified]

How to fires F11 key automatically [modified]

Scheduled Pinned Locked Moved Web Development
questiontutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vishnu Narayan Mishra
    wrote on last edited by
    #1

    Hi To all forums members, I want to know that Is there is any to fires any key press event? e.g. I have to fires F11 key on a button click :^) . How can i do this? After firing the F11 key current window get automatically resize to Full screen.. I have to used it where I have to capture only the current window body not the whole screen which also includes browser menus. Thanks

    Vishnu Narayan Mishra Software Engineer

    modified on Wednesday, March 19, 2008 6:12 AM

    L 1 Reply Last reply
    0
    • V Vishnu Narayan Mishra

      Hi To all forums members, I want to know that Is there is any to fires any key press event? e.g. I have to fires F11 key on a button click :^) . How can i do this? After firing the F11 key current window get automatically resize to Full screen.. I have to used it where I have to capture only the current window body not the whole screen which also includes browser menus. Thanks

      Vishnu Narayan Mishra Software Engineer

      modified on Wednesday, March 19, 2008 6:12 AM

      L Offline
      L Offline
      Laddie
      wrote on last edited by
      #2

      function getCode(){ var unicode=event.keyCode? event.keyCode : event.charCode alert(unicode) } F11 - 122

      Thanks Laddie Kindly rate if the answer was helpful

      V 1 Reply Last reply
      0
      • L Laddie

        function getCode(){ var unicode=event.keyCode? event.keyCode : event.charCode alert(unicode) } F11 - 122

        Thanks Laddie Kindly rate if the answer was helpful

        V Offline
        V Offline
        Vishnu Narayan Mishra
        wrote on last edited by
        #3

        hi Laddie Thanks to reply me, The function you told me it tells which event pressed by user but Actually I have to fires the event of key F11(Which maxmises the current window).Suppose when the user press a button then F11 key of keyboard runs automatically and maximises the cureent window, so that I can capture current window.

        Vishnu Narayan Mishra Software Engineer

        modified on Wednesday, March 19, 2008 6:31 AM

        J 1 Reply Last reply
        0
        • V Vishnu Narayan Mishra

          hi Laddie Thanks to reply me, The function you told me it tells which event pressed by user but Actually I have to fires the event of key F11(Which maxmises the current window).Suppose when the user press a button then F11 key of keyboard runs automatically and maximises the cureent window, so that I can capture current window.

          Vishnu Narayan Mishra Software Engineer

          modified on Wednesday, March 19, 2008 6:31 AM

          J Offline
          J Offline
          Johnny
          wrote on last edited by
          #4

          F11 doesnt maximise the window on my computer. Relying on this may be a mistake I would be very surprised if you could send fake keyboard presses from inside a browser - think of the mischief you could cause by having a script automatically close down your machine.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups