Program to emulate keypress


Recommended Posts

Hi all. Not sure if this request belongs in this forum but here goes ...

I need to find a program (or write a script or batch file) that can emulate the user pressing specific key sequences on the keyboard.

Here's why :

I have a Microsoft keyboard with a collection of "multimedia" keys such as play, stop, skip etc.

The keyboard came with software to control media applications but not all of the buttons are allocated to the proper function.

What I need is to press (for example) the "play" button and the key-sequence CTRL-SHIFT-P be sent to windows. The existing software does not allow me to do this.

But I can set any of the keys to load a specific program when pressed. So I thought if I can write a small program to generate the keyboard emulation I will just allocate that key to load that program....

Any suggestions?

TIA

Link to comment
https://www.neowin.net/forum/topic/366410-program-to-emulate-keypress/
Share on other sites

Thanks I had a look at AutoIT.

I think the program and the scripting language is a bit beyond me...

That's not to say I'm lazy or dumb, it just seems a very complicated way to tackle the problem.

In fact I think my original question was badly worded. In fact what I need is a program to re-assign or re-map the keyboard.

So when I press (for example) the fast-forward key it sends CTRL-SHIFT-F to Windows. I've found a few programs to do this but none work quite well enough. The major problem is identifying the button I'm pressing. Since most keyboards do not have the keys in question, the mapping programs do not allow me to select them to re-assign them!

Still looking....

AutoIT is what your looking for - its NOT difficult to use, and has a recording function to record your mouse and keyboard movements.. On the other hand, if your keyboard has special media keys.. Then IT should have came with some software to allow for mapping of these keys..

For example MS has the intellitype software for their keyboards;

IntelliType Pro software enables you to customize the unique features of your Microsoft? keyboard to fit your needs. With IntelliType software, you canreassign many of the keys to open a program, file, or Web page, or to perform commands>, such as Find, Show Desktop, or other application-specific functions

Heres another idea - how about if you want "CTRL-SHIFT-P be sent to windows" how about you press "CTRL-SHIFT-P";)) How many nanoseconds of thought or effort do you feel you will be saving by mapping this keystroke to one key just pressing the keys you want?

Whoa BudMan take it easy.

In fact I do have IntelliType software installed, and it's a microsoft keyboard. But its functionality does not allow me to do what I need.

I'm running MCE 2005 (Microsoft) and the intellitype software is set up for windows media player, not MCE. I have tried to re-program the keys using this software but it only allows me to either disable the key, or choose from presets (none of which work with MCE) or launch a program.

I did actually try to solve the problem myself before I asked and note that none of the options "Open a program" "Open a file" "Open a web page" "Find" Show Desktop" etc. are actually useful for pausing or rewinding.

And yes I can learn all the key-sequences and in fact I have. But my mother has not, neither has my wife or 6 year old son. My friends and guests would rather press the play button than learn half a dozen key sequences and after all-they are only visiting for the day. They quite rightly think they should be able to press the pause button and the program will pause. Otherwise why bother having the pause button at all?

Take it easy?? About what dude? I was making a joke, and pointed out that your keyboard should of came with software to control its extra keys.. And that AutoIT would allow you to do ANYTHING you could do with the keyboard and mouse - and assign it to keys, etc..

Here since it seems your all to lazy to type a few keyboard buttons or use the mouse ;) <--- Take it easy = JOKE! ;)

http://www.microsoft.com/windowsxp/using/m...ew_04dec13.mspx

Control Media Playback with Voice Commands

Does not your Remote Control for your MCE do what you want? How about the special remote keybord for MCE, I would think it designed to handle all the special features of MCE with just a few keystrokes..

Perhaps I'm uptight because of a few hours frustration getting this thing working.

The Windows media keyboard for MCE has some serious flaws. The worst is that it works by infra-red, so the range is very limited and if line-of sight is not maintained (read cup of coffee in the way) it does not work.

So I got a bluetooth keyboard instead. Works just about anywhere.

I just finished writing a script with AutoHotKey and it works!

I also downloaded AutoIT and it seems a very capable program. It will take a while to learn its finer details but I think I could make good use of it.

Well I've got a script going now under AutoHotKey so I'll continue with this, but thanks for the other suggestion of AutoIT because it may be just what I need to do a few other odd-jobs.

And yep the Windows remote can handle just about all the tasks but sometimes the keyboard is best, especially when you want to enter text. So I figured if I've got the keyboard I might as well get all its various buttons working. Not essential but I'd get sick of explaining to visitors why only selected buttons work. No way to impress a visitor.

Thanks both for your input.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Microsoft disables a key graphics feature in Edge by Paul Hill Microsoft has released its new security baseline for its Edge browser version 139, it includes the addition of one setting and the removal of one other. For those that are unaware, these security baselines allow admins to set an organization’s Edge browser settings to the default that Microsoft recommends at any one time. You can download the new package from the Security Compliance Toolkit. With this update, the company is enforcing the default to disable the EnableUnsafeSwiftShader policy. This will help to mitigate potential risks as malicious web content could exploit vulnerabilities in the renderer. SwiftShader is a software-based renderer that serves as a fallback for WebGL in environments without GPU acceleration, such as virtual machines. With Microsoft’s disabling of it, it seems as though this compatibility tool is now seen as a liability. The disabled SwiftShader was the most relevant in virtual machines which are widely used in enterprises, so this change poses the risk of causing a bit of disruption. While the move is a good one for security, those who it affects may want to deviate away from Microsoft’s security baselines. The security baseline announcement also mentions a new Edge for Business security connectors feature which is designed to integrate the browser with security software for DLP and authentication. Microsoft said that these connectors can close critical gaps in enterprise security. You can learn more on the feature’s landing page. Microsoft doesn’t seem to have made the change to SwiftShader due to existing vulnerabilities, instead the move seems to be a proactive security improvement. If you rely on it with your virtual machines, feel free to deviate away from Microsoft’s security baseline, but understand you’re no longer following the company’s security advice.
    • Edge 139 is out with big performance boost, password improvements, and more by Taras Buria Microsoft has released Edge 139 to all users in the Stable Channel. The latest version (139.0.3405.86) introduces some notable changes to the browser, performance improvements, and bug fixes. It also removes some of the existing features, as Microsoft strives to streamline the browser and its features. Microsoft Edge 139 brings a reworked Settings section, which is now built with WebUI2. This enables significant improvements in performance and responsiveness, which Microsoft recently detailed in a blog post. Additionally, Microsoft optimized Settings for a more cohesive user experience by simplifying the number of pages and reorganizing various options. Though it also disables an important graphics feature with this update. Wallet in Settings is discontinued. It now redirects users to the new "Passwords, Payment, and Personal Information" experience in settings. Speaking of passwords, the built-in password manager now has real-time notifications for compromised passwords. If one of your passwords is found in a known data breach, Edge will prompt you to take immediate action and create a new password. Other changes in Edge 139 include the following: Open external links in another profile when recommended by external applications. When Microsoft Edge is set as the default browser to open external links from applications, Microsoft Edge must determine which profile to open the links. Introducing a new policy that can enable/disable Microsoft 365 Copilot Chat in Edge for Business from showing in the toolbar. Edge for Business now has a dedicated policy, Microsoft365CopilotChatIconEnabled, to enable and disable Copilot in Edge from showing in the Edge toolbar. New Autofill Personal Information Settings Configuration. A web form field collection consent toggle will be available in Autofill settings (edge://settings/autofill/personalInfo). This allows users to consent to Microsoft Edge collecting web form field labels (e.g., "First Name," "Email") to improve Autofill suggestion accuracy. Web AI APIs for prompt and writing assistance. Microsoft Edge now implements the Writing Assistance APIs and the Prompt API (for Edge extensions) with a local language model, Phi-4-mini, that is built into the browser. These easy-to-use JavaScript APIs are made available via Edge flags (set to Enabled, by default only for the Summarizer and Prompt API for extensions) so that sites and extensions can apply AI capabilities on the web. Enhancements to Performance and Secure network. Browser essentials is now separated into two distinct experiences (Performance and Secure Network) - both available from the Settings and more menu (“…” on the menu bar). Reset Microsoft Edge enterprise sync. For users having problems syncing browsing data across other signed-in devices, they can reset sync data from the Microsoft servers via Edge Settings edge://settings/profiles/sync/reset. Update to Microsoft AutoUpdate policy. The MAUEnabled policy allowed admins to continue using Microsoft AutoUpdate on macOS. Finally, Edge 139 contains eight security fixes for vulnerabilities originating from Chromium. Microsoft also published a security guideline with details about a key graphics feature, which is now disabled. You can update to Microsoft Edge 139 by heading to edge://settings/help. By the way, if you uninstalled the browser and do not know how to get it back, check out this guide.
  • Recent Achievements

    • Week One Done
      harveycoleman123 earned a badge
      Week One Done
    • First Post
      EzraNougat earned a badge
      First Post
    • One Month Later
      westDvina earned a badge
      One Month Later
    • Community Regular
      Bern@rd went up a rank
      Community Regular
    • Week One Done
      Joey Solo earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      667
    2. 2
      +FloatingFatMan
      196
    3. 3
      ATLien_0
      154
    4. 4
      Xenon
      132
    5. 5
      wakjak
      102
  • Tell a friend

    Love Neowin? Tell a friend!