简体   繁体   English

如何在AutoHotKey中将鼠标左键映射到左移键?

[英]How to map mouse left click to left shift key in AutoHotKey?

I need to map mouse left click to left SHIFT key and mouse right click to left ALT key for better productivity :P. 我需要将鼠标左键映射到左SHIFT键,将鼠标右键映射到左ALT键,以提高生产力:P。

But I DO NOT want to block any of key combinations like CTRL + SHIFT , SHIFT + CTRL etc. 但是我不想阻止任何组合 ,例如CTRL + SHIFTSHIFT + CTRL等。

So far, I'm able to get Alt + Tab functionality with ( LAlt & *::Suspend, On ). 到目前为止,我已经可以通过( LAlt & *::Suspend, On )获得Alt + Tab功能。
But can't make it work for shift key. 但是不能使其用于Shift键。

Issue's I need to resolve: 问题我需要解决:

1) not able to type in uppercase with shift + any_key 1)无法使用shift + any_key输入大写字母
2) key combinations not working like ctrl + shift + any_key or shift + ctrl + any_key 2)组合键无法正常使用,如Ctrl + shift + any_keyshift + Ctrl + any_key

Here's my script so far: 到目前为止,这是我的脚本:

LAlt & *::Suspend, On
LShift::LButton
LAlt::RButton

Holding LEFT SHIFT key simulates the left click hold which is great and would like to keep it this way. 按住LEFT SHIFT键可以模拟左键按住,这很不错,并且希望保持这种方式。

See modifier symbols about the tilde prefix ( ~ ) in particular. 请参见有关代字号前缀( ~ )的修饰符

~LShift::LButton

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在单击鼠标左键时禁用按住Alt键,Control键和Shift键的功能 - How to disable the pressing/holding down of the Alt key, Control Key, and Shift Key when the left mouse button is clicked AutoHotKey LWin + Shift +向左/向右移动+ Home / End - AutoHotKey LWin + Shift + Left/Right to Shift + Home/End Windows - Map 与鼠标左键操作相同的键盘键 - Windows - Map a Keyboard Key to the Same Action as Left Mouse Button c++ - 在C ++中按下左键并释放左键时如何获取鼠标光标坐标? - How to Get Mouse Cursor Cordinates when left click is pressed and when left click is released in C++? 如何使用autohotkey停靠左侧的窗口? - How to dock a window the the left using autohotkey? 如何在左右单击系统范围内更改鼠标光标? - How to change mouse cursor on left and right click system wide? 如何模仿表格中心的[Ctrl +左键单击鼠标]或打开另一个程序并输入一个单词? - How Imitate a [Ctrl+Left mouse click] on the center of the form or open another program and type in a word? 自动热键现在是否有办法在鼠标单击和触摸屏单击之间 - is there a way in autohotkey to now between a mouse click and touchscreen click 无法映射LAlt +自动热键中的任何键 - Cannot map LAlt + any key in autohotkey 左键无法在带有contextmenustrip的notifyicon上工作 - Left click not working on notifyicon with contextmenustrip
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM