1.

Solve : Assigning Mouse Buttons to other purposes.?

Answer»

I would like to know how I could use a Batch file to assign the Left or Right mouse click function to something else (Like assign Right Mouse click to open Task Manager).

Also, I would like to know how to create hot-keys on the keyboard by changing a key to execute a file instead of serving it's initial purpose (Ex. Set the "[" key to open up my default browser). I know their are programs out there to do this but I am more interested on learning to do it through a Batch file.

I am more interest in learning how to do it just so I can expand my knowledge rather then actually make use of it. I have been searching through Google and Forums trying to figure it out and still can't get it to work. I FOUND a few examples for the hot-keys on the keyboard but it didn't work correctly for me.

THANK you for any and all help.yes it is possible to do this in batch except you need a 3rd party program called GetKey which comes with a bunch of other MS-DOS Apps that work with batch files to create menus, tones, and the detecting which key on the keyboard was pressed.
heres the website to download it.
http://ourworld.compuserve.com/homepages/ken/
i strongly recommend reading the help document that came with it, because it is kinda hard to reconginize it.

Quote

I would like to know how I could use a Batch file to assign the Left or Right mouse click function to something else (Like assign Right Mouse click to open Task Manager).
this is not possible in batch files, and there arent any 3rd party PROGS that i know of that can detect Mouse clicks.

Oh, Well that's disappointing.

Aren't there commands like this:

Rundll32 user32,SwapMouseButton
Rundll32 mouse,disable

You can disable the mouse or even swap the functions of the mouse buttons yet you can't assign them to execute a file

Hmm, Well thank you very much for your response. I appreciate it no that is possible in batch
Quote
Rundll32 user32,SwapMouseButton
Rundll32 mouse,disable

but im saying that you cant assign mouse presses as hot keys.Alright,

Well do you think it would be possible with VBS?im not an expert on VB, but PROBABLY so.Quote
You can disable the mouse or even swap the functions of the mouse buttons yet you can't assign them to execute a file

I can't imagine why you'd want to do this. Might be very frustrating when left-clicking and some program pops-up and starts executing instead of the normal operations of the mouse event.

Does your mouse software support assigning a button to a file? If so, a VBScript could mimic the mouse presses although in most cases it's easier to use the GUI.

VBScript can create shortcuts where you can assign hotkeys. It might be possible to create a SHORTCUT in a directory other than the desktop (keep it invisible). The hotkey assignments should still be valid.

Edit: not too sure about that last sentence; in fact the shortcut might have to be on the desktop for the hotkey sequence to work.

I use a Logitech G5 mouse as well as the G15 keyboard. I have programmable keys on the keyboard with a GUI but the mouse does not have one.

As I said in the initial post I am more interested in learning to see if it is possible and how to do it rather then actually doing it. Just curiosity. May come in handy down the road.

Thank you for your responses


Discussion

No Comment Found