AutoHotKey script for keyboards lacking media keys


 Share

Recommended Posts

Denis W.

I have a keyboard that lacks media keys - play/pause, back, forward, stop, and volume control keys. But I can't be arsed to buy a new keyboard, and frankly I'm tired of clicking on controls on my desktop to change the volume (and besides, Windows 8 is the first Windows with a OSD built-in - finally).

So I found this sample AutoHotKey script and modified it for my needs. Code is below. For the uber lazy I've also attached a compiled exe. The below comments should easily tell you what the keyboard combinations are ;)

Drop a shortcut in %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup to start upon login.

;; Virtual Media Keys
;; Based on http://frugalcoder.us/post/2011/10/07/Mapping-windows-volume-for-keyboards-without-media-keys.aspx
;; Map WIN + F5 to <<
#F5::Send {Media_Prev}
;; Map WIN + F6 to Play/Pause
#F6::Send {Media_Play_Pause}
;; Map WIN + F7 to >>
#F7::Send {Media_Next}
;; Map WIN + F8 to Stop
#F8::Send {Media_Stop}
;; Map WIN + F9 to Volume Down
#F9::Send {Volume_Down}
;; Map WIN + F10 to Volume Up
#F10::Send {Volume_Up}
;; Map WIN + F11 to toggle mute
#F11::Send {Volume_Mute}

Virtual Media Keys.zip

Link to post
Share on other sites

houlty

I happened to do exactly the same thing the other day when i received my Filco. I use Ctrl+Alt+Arrow keys for different functions though.

One thing i am looking to do is setup an OSD for the volume control, there's a few already out there that just need modifying to suit.

Link to post
Share on other sites

This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By indospot
      Razer introduces the Huntsman V2 Analog keyboard with pressure-sensitive switches
      by João Carrasqueira

      Razer has announced a new member of the Hunstman family of keyboards, the Hunstman V2 Analog. Unlike most traditional keyboards, this new version has analog key switches, allowing for different levels of pressure to be detected, which the company claims can improve the precision of gaming controls.

      Razer calls the new switches Analog Optical Switches because they're based on its existing switches that use light to detect keystrokes more quickly and without physical contact. That concept holds up in this new concept, but now, the switches can not only detect when light is passing through the switch, they can also detect how much is passing through, thus detecting how far the keys are being pressed. Plus, because they're still light-based and no contact happens for keystrokes to register, Razer claims longevity of up to 100 million keystrokes for the switches.





      The analog switches mean that, in games, you won't necessarily be limited to 8-direction movement with the WASD keys, but instead get more precise 360-degree control similar to what a controller's analog stick allows. This can be beneficial for certain games that rely on the added level of precision, such as racing games. On top of that, the analog switches allow users to customize the actuation point between 1.5mm and 3.6mm, and even set up dual actuation steps, so keys have two different functions depending on how hard you press them.

      Aside from the new switches, the Hunstman V2 Analog also packs doubleshot PBT keycaps, which are supposedly more durable than the ABS keycaps Razer typically uses. The new keycaps are available for regional layouts including the UK, German, French, Nordic, Russian, Spanish, and Japanese, in addition to the U.S.

      Additionally, the keyboard has a braided cable and comes with an adapter that allows it to plug into USB Type-A or Type-C ports based on your preference. It also supports USB 3.0 passthrough with a second cable. And of course, it wouldn't be a gaming keyboard without RGB, so it supports Razer Chroma.

      To round things out, the Huntsman V2 Analog packs the same features as its predecessors, including a digital dial for media controls, programmable keys, storage for up to five keybinding profiles, N-key rollover, and a 1000Hz polling rate.

      The Razer Huntsman V2 Analog is available today from Razer for $249.99/€269.99, and other resellers will have it from February 9.

      If you're looking for something completely different, Razer also announced the new Thunderbolt 4 Dock Chroma, with four Thunderbolt 4 ports (one of which used to connect to the PC), three USB type-A ports, Ethernet, 3.5mm combo audio, SD card reader, and barrel connector for power. It can drive up to two 4K displays at 60Hz and it also supports passthrough charging.

      If you don't need as powerful of a setup, there's also the new Laptop Stand Chroma V2, which turns a USB Type-C port into a hub with two USB Type-C ports (one exclusively for power delivery), two USB Type-A ports, and an HDMI port, while also raising the laptop to a more comfortable position. It can drive up to two QHD displays at 60Hz, or two FHD displays at 120Hz.

      As the names suggest, both of these support Chroma RGB lighting to add more flair to your setup. Both are supposedly available for pre-order today, with the Thunderbolt 4 Dock Chroma costing $329.99/€329.99, and the Laptop Stand Chroma V2 commanding a price of $149.99/€129.99. However, the latter is currently marked as being out of stock.

    • By Steven P.
      Razer accessories at Amazon and Best Buy are up to 50% off
      by Steven Parker



      Razer has kicked off its Black Friday and Cyber Monday deals with a bunch of accessories at up to 50% off. The deals are live now and will remain available until November 28th at 11:59 PT. We've compiled all of the deals below.

      Amazon deals

      DeathAdder v2 Gaming Mouse (MSRP $69.99) 21% off @ $54.99 Ornata V2 (MSRP $99.99) 30% off @ $69.99 Naga Trinity Wired MMO Mouse (MSRP $99.99) 30% off @ $69.99 Basilisk X Hyperspeed Wireless Gaming Mouse (MSRP $59.99) 33% off @ $39.99 Kraken Tournament Edition Wired Headset - Black (MSRP $99.99) 45% off @ $54.99 Kraken Gaming Headset- Black (MSRP $79.99) 30% off @ $49.99 Kraken Kitty RGB USB Gaming Headset - Quartz Pink (MSRP $149.99) 30% off @ $109.99 Goliathus Chroma Gaming Mouse Mat Extended (MSRP $59.99) 17% off @ $49.99 Huntsman Tournament Edition TKL Keyboard - Black (MSRP $129.99) 23% off @ $99.99 You can also check out a dedicated page for Razer Featured Products deals on Amazon.

      Best Buy deals

      Razer Nommo Chroma - 2.0 Gaming Speaker (MSRP $149.99) 13% off @ $129.99 Razer Kraken X Usb (MSRP $59.99) 33% off @ $39.99 Razer Kraken Ultimate (MSRP $129.99) 46% off @ $69.99 Kraken X White Gaming Headset (MSRP $49.99) 30% off @ $34.99 Razer Kraken Kitty Chroma USB Gaming Headphones Quartz (MSRP $149.99) 33% off @ $99.99 Razer Kraken Kitty Chroma USB Gaming Headphones (MSRP $149.99) 33% off @ $99.99 Razer Kraken X Overear Headphones (MSRP $49.99) 30% off @ $34.99 Razer Kraken Headphones Quartz Pink (MSRP $79.99) 38% off @ $49.99 Razer - Kraken Wired Stereo Gaming Headset (MSRP $79.99) 38% off @ $49.99 Razer Nari Ultimate - Wireless Gaming Headphones (MSRP $199.99) 25% off @ $149.99 Razer Kraken Tournament Edition Wired Headphones (MSRP $99.99) 45% off @ $54.99 Razer Ornata V2 Mecha-Membrane Gaming Keyboard (MSRP $99.99) 30% off @ $69.99 Razer Blackwidow Elite Green Switch Keyboard (MSRP $169.99) 50% off @ $84.99 Razer Huntsman Elite Opto-Mechanical Keyboard (MSRP $199.99) 15% off @ $169.99 Razer Viper Mini Wired Gaming Mouse (MSRP $39.99) 25% off @ $29.99 Razer Basilisk V2 - Ergonomic Wired Gaming Mouse (MSRP $79.99) 19% off @ $64.99 Razer Basilisk X Hyperspeed Wireless Ergo Gaming Mouse (MSRP $59.99) 33% off @ $39.99 Razer Viper Ultimate Wireless Gaming Mouse & Charge Dock (MSRP $149.99) 33% off @ $99.99 Razer Viper - Ambidextrous Wired Gaming Mouse (MSRP $79.99) 50% off @ $39.99 Razer Naga Trinity - Optical Wired Gaming Mouse (MSRP $99.99) 30% off @ $69.99 That's all of the Razer gear that's on offer for now, check back on Friday where we'll also have a bunch of Amazon Deal of the Day offers from Razer.

      As an Amazon Associate, Neowin may earn commission from qualifying purchases.

    • By indospot
      Razer introduces the BlackWidow V3 wired keyboard in two variants
      by João Carrasqueira

      Two weeks ago, Razer introduced a new range of wireless accessories, which included the BlackShark V2 Pro headset, the DeathAdder V2 Pro mouse, and BlackWidow V3 Pro keyboard. While the first two products were new wireless versions of existing products, Razer didn't have a wired version of the BlackWidow V3 Pro. That changes today, as the company has announced the BlackWidow V3.

      Like the BlackWidow V3 Pro, the new keyboard feature Doubleshot ABS keycaps, which have thicker sidewalls that make the keys more durable. Additionally, the doubleshot molding process makes it so that letters are engraved in the keycap, rather than printed, so the letters won't wear away, even with "thousands of hours of use".

      Additionally, the Razer mechanical switches have been improved with additional side walls for increased stability. The switches also have a new a transparent housing, which lets light shine through more easily, thus making the RGB backlight brighter compared to previous models. As for the switches themselves, the keyboard can be had with Razer Green switches, which have more of a clicky feel, or Razer Yellow switches, which are linear.

      One thing that's noticeably different from the BlackWidow V3 Pro is the media controls. Instead of a set of buttons, the wired version uses a single button and a roller, which can be used to adjust volume, skip tracks, scroll, adjust brightness, and so on. The BlackWidow V3 also offers cable routing options in the chassis, and it includes a wrist rest, at least in the full-size variant.

      We say this because the Razer BlackWidow V3 is also available in a tenkeyless configuration, which ditches the numpad and the media controls that would sit above it. Additionally, this variant doesn't include a wrist rest, and only the U.S keyboard layout features Doubleshot ABS keycaps, while the full-size variant has them in more regional layouts.

      Otherwise, the two variants feature most of the same features. Both have N-key rollover, 1000Hz ultrapolling, Razer Chroma lighting, and so on.

      The new keyboards are available today. The full-size version costs $139.99 in the United States or €149.99 in Europe, making it nearly $100 cheaper than the wireless version. Meanwhile, the tenkeyless layout comes in at $99.99, or €109.99.

    • By eRajesh
      The best hidden Gboard features that you must know about
      by Rajesh Pandey



      Gboard is one of the most popular keyboards for Android devices right there and rightfully so because of the sheer number of innovative features it packs. The keyboard is also a perfect example of how virtual keyboards for today's smartphones are more than just a keyboard with the amount of functionality they pack.

      If you have been using Gboard only for typing out messages and emails so far, you have been using it wrong then. You can use the keyboard for quick Google search, translations, adding GIFs, and do so much more. Below is a look at some useful Gboard features that you might not know about and which will help improve your overall typing experience.

      If you use SwiftKey, you can read about some of its hidden features here.

      Custom mini stickers

      Forget emoji and GIFs. You can create custom "minis" stickers based on you in Gboard as well. Simply tap the sticker button in Gboard's toolbar, scroll to the right in the toolbar and tap on the cog (Settings) button. Then go to the Browse tab and select the option to create your custom "minis" in the banner at the top. You will then have to click a selfie and then wait for a few seconds for Gboard to create the custom mini stickers.

      Quickly add punctuations

      You can quickly add punctuations other than a comma or full stop by simply long pressing on the full stop button. A list of the most common punctuations will then pop up and you can slide your finger to select the one you want to use.



      Switch to one-handed layout

      The displays on Android smartphones are getting taller and wider which makes one-handed typing on them a frustrating experience. Gboard does come with a one-handed layout that you can use in such situations though. You can easily activate one-handed mode in Gboard by long-pressing the "," button and then dragging your finger to the second icon you see. Once activated, you have the option of moving the keyboard to the left or right edge of the display as per your requirement.



      Delete words using a gesture

      Want to quickly delete a word or a sentence that you just typed? No need to repeatedly press the backspace button. Instead, you can just swipe to the left from the backspace button to select the text you want to delete. The longer you swipe, the more words will get selected and they will be automatically deleted once you lift your finger from the display.

      In case you change your mind and want to keep the sentence or word you just deleted, Gboard will automatically show you the deleted word or sentence as a suggestion.

      Translate text easily

      With Google Translate integration in Gboard, you can easily translate text on the fly without having to leave the current chat window or text compose window. Simply tap the Google Translate icon in the Gboard toolbar and proceed to enter the word or sentence that you want to convert. Gboard can automatically detect the language that you are entering and convert it into a language you want, though you can select the input language manually as well.



      Use the keyboard as a trackpad

      You can use Gboard as a trackpad as well to quickly move the cursor where you want while formatting or editing text. On iPhone, you need to long-press on the spacebar and then drag your finger around to move the cursor. Gboard has a similar implementation as well. Simply long-press on the spacebar and then drag your finger around to turn the keyboard into a virtual trackpad and move the cursor around easily.

      Add fractions easily

      Want to quickly add a fraction? Simply long-press on the number and Gboard will show a list of common fractions that you can add easily.



      What are some of your favorite Gboard tips and tricks? Drop a comment and let us know!

    • By News Staff
      Save 19% off the Gotek Voyage Ergonomic Bluetooth Keyboard
      by Steven Parker

      Today's highlighted deal comes via our Gear + Gadgets section of the Neowin Deals store, where you can save 19% off this Gotek Voyage Ergonomic Bluetooth Keyboard. Get work done no matter where you are with this keyboard's bluetooth connectivity, V-shape design and 166° angle.

      What's the deal?
      Sending a long email message, editing a detailed document, or taking notes at conference sessions? With your compact companion Universal Foldable Bluetooth Keyboard, you can get more done on your tablet or smartphone no matter where you are. The ergonomic design of this V-Shaped Bluetooth Keyboard with a 166° angle gives you the most comfortable typing experience. This design helps create a natural typing position and minimizes pressure on your hands and wrists so you can be productive for longer periods of time. What's more, it adopts a scissor mechanism beneath each key, which ensures a quick response for efficient typing. The full-size keyset also provides an excellent sense of touch, making on-the-go typing a breeze.

      Built-in rechargeable battery supports 40-hour continuous working & 30-day standby Stand supports devices with screen size up to 13 inches Wireless connection is automatically turned on once keyboard is opened & turned off when folded Impeccably works with all Bluetooth supported devices Ergonomic with V-shape & 166 degrees angled design Specs
      Color: black Finish: matte Materials: PC, PU Product dimensions: 0.2"H x 13"L x 4"W Weight: 6.2 oz Bluetooth 4.0 Distance: 32.8 ft Battery: 110mAh lithium battery Operating time: 40 hours Standby time: 30 days Charging time: 2 hours Key lifespan: 3 million clicks V-shaped w/ 166° angle Scissor mechanism beneath each key Full-size keyset Super slim & lightweight Foldable & portable Manufacturer's 1-year limited warranty Good to know
      Ships To US Expected Delivery: Feb 3 - Feb 10 15-day return policy in original undamaged packaging For a full description, specs, and terms, click here.

      What's the benefit?
      This Gotek Voyage Ergonomic Bluetooth Keyboard normally costs $89, but you can pick it up for just $71.99 for a limited time - that represents a saving of $17.01 (91%) off!

      You can also add optional 1 or 2 year warranty to extend the included 1-year of warranty.

      >> Click here to purchase or learn more <<
      See all discounted Gear + Gadgets on offer. This is a time-limited deal.

      Save even more!
      Stick with Neowin Deals and earn credit or even deeper discounts.

      Check out our recent deals here or on the Neowin Deals site. For every $25 spent, you get $1 credit added to your Neowin Deals account. Refer the deal for $10 credit via social media or email and if it results in a purchase of at least $10, you'll get $10 credit added to your account. 10% off for first-time buyers: be sure not to dismiss the popup offer to subscribe to email updates on the deals page in order to profit! Not for you?
      If this offer doesn't interest you, why not check out our giveaways on the Neowin Deals website? There's also a bunch of freebies you can check out here.

      Miscellany and the fine print!
      In some cases, such as with Online Courses, a store credit refund within 15 days of purchase is possible if you are unhappy with it; this does not apply to all deals, so please do check the terms on the page before making a purchase.

      Check our other recent deals, before they expire, or our preferred partner software for Private Internet Access and NordVPN deals.

      How can I disable these posts? Click here.

      Disclosure: This is a StackCommerce deal or giveaway in partnership with Neowin; an account at StackCommerce is required to participate in any deals or giveaways. For a full description of StackCommerce's privacy guidelines, go here. Neowin benefits from shared revenue of each sale made through our branded deals site, and it all goes toward the running costs. *Values or percentages mentioned above are subject to StackCommerce's own determination of retail pricing.