I understand the title of the thread is simple and could even insult somebody, but here's my problem, and I hope there is someone good out there to ask for help.
My mouse has a faulty middle click, so I searched for alternatives, and about a month ago, I came across Autohotscripts. I can assign the middle click with any button, but as I got more into it, I came to need another keyboard for shortcuts (they are really great!), and I use HIDmacros for the second keyboard.
I cannot understand how to map a button on the second keyboard with the middle click. As you can imagine, I do not know visual basic or scripting. I gave my best, but as I am approaching to learn VBscript online for understanding how to set it by myself (wish me luck), I thought to ask for help here.
In my limited understanding of scripting, I tried many different commands, but I am already conscious of the illogical editing... I tried copying code found with the use of Google, but I cannot understand it, and fix it when I get the errors.
My humble attempts were directed to find some GetCursorPosition command, for which I used HIDMacros.GetAxis Mouse1, X and another for Y. But I failed (I don't know how) to set proper variables in HIDmacros
I tried different approaches, but the gist of what I tried playing more with was
Code: Select all
dx = HIDMacros.GetAxis Mouse1, X
dy = HIDMacros.GetAxis Mouse1, Y
HIDMacros.MouseClick dx, dy, 2
I just want to push a button, get thecursor position and send a middle click where the cursor actually is, so to emulate the middle click (or any other click, scripting wise). I have to use the button as a general command, mostly for browsing (I know I could use other built-in hotkeys, but I would lose the middle click, and I find the middle click to be an easy concept that I want nurture and protect for the best of Humanity). I am already aware that some emulation may not work in such programs like Exels or other (I found this argument while searching), but I don't care for that, or at least, it is not a top priority right now. I am a middle click addicted person. I need it and cannot find a way to get my dose!
I am really stressed out, please help.
