user5594 Posted October 10, 2014 Posted October 10, 2014 I have a Logitech G500 and I was wondering if is possible to simulate the mouse wheel being pushed to the left. For example I am trying to make: F11 activates Mouse wheel left being held and F12 deactivates it. Any help? Thanks a lot guys!
Bert Posted October 10, 2014 Posted October 10, 2014 For what app do you need this? The Vollatran project My blog: http://www.vollysinterestingshit.com/
user5594 Posted October 10, 2014 Author Posted October 10, 2014 For what app do you need this? I'm using a left click spamming macro setup with Logitech, but I need a two keyboard keys to start and stop it. I can't figure out how to get this done from the Logitech Gaming Software
13lack13lade Posted October 10, 2014 Posted October 10, 2014 HotKeySet in the helpfile is what you are after.
user5594 Posted October 10, 2014 Author Posted October 10, 2014 HotKeySet in the helpfile is what you are after. How do I find the HotKeySet("{***}" of the left mouse wheel button?
13lack13lade Posted October 10, 2014 Posted October 10, 2014 (edited) Sorry im not too sure what you mean by pressing it to the left... does it have another button pushing it to hte left rather than down? i doubt that would be the case but i only know Razer mice (my choice for gaming) If you are simply trying to press the mouse wheel button rather than scrolling the command and key you would want would be MouseDown("middle") - otherwise you would need to find out which button is actually being pressed in user32.dll possibly.. i could be wrong but thats just what i gathered from _IsPressed. Here i made this, it should hold mousewheel button pressed in. i haven't tested but should work f1 to start f2 to pause f3 to exit #include <Misc.au3> HotKeySet("{F1}", "Test") ;f1 to start HotKeySet("{F3}", "Terminate") ;press f3 to terminate the script func Test() MouseDown( "middle") do until _IsPressed("71") ;f2 button will release button however script will still run doing nothing MouseDown( "middle") endfunc Func Terminate() Exit EndFunc Edited October 10, 2014 by 13lack13lade
user5594 Posted October 10, 2014 Author Posted October 10, 2014 Sorry im not too sure what you mean by pressing it to the left... does it have another button pushing it to hte left rather than down? i doubt that would be the case but i only know Razer mice (my choice for gaming) If you are simply trying to press the mouse wheel button rather than scrolling the command and key you would want would be MouseDown("middle") - otherwise you would need to find out which button is actually being pressed in user32.dll possibly.. i could be wrong but thats just what i gathered from _IsPressed. Here i made this, it should hold mousewheel button pressed in. i haven't tested but should work f1 to start f2 to pause f3 to exit HotKeySet("{F1}", "Test") ;f1 to start HotKeySet("{F3}", "Terminate") ;press f3 to terminate the script func Test() MouseDown( "middle") do until _IsPressed("71") ;f2 button will release button however script will still run doing nothing MouseDown( "middle") endfunc Func Terminate() Exit EndFunc The mouse wheel can be click in, pushed to the left, or pushed to the right. '>
13lack13lade Posted October 10, 2014 Posted October 10, 2014 gotcha, so many buttons!!! unfortunately this is a little above my head, but im a complete noob im sure some one here will be able to assist you.
Blue_Drache Posted October 13, 2014 Posted October 13, 2014 What software are you using this on? Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now