script to use Left Click as Left Shift does not work correctly

家住魔仙堡 提交于 2020-01-05 05:49:31

问题


I've search AHK forums but couldn't solution.

The script I found on AHK to use LShift as LButton does not work correctly..when press & hold left shift and move the mouse pointer, it can't copy text exactly like as if click and hold left mouse. What I mean by exactly is.. press & hold left shift and move the mouse pointer copies the whole paragraph or section of text..not just the few words I wanted.

My first time here & newbie w/ AHK. Your time is appreciated.

~Lshift::  
Send {LButton}  
return  
F10::exitapp  

回答1:


you could try:

~Lshift::  
Send {LButton Down} ; Press the LButton key Down
KeyWait, LShift ; Wait for the LShift key to be lifted
Send {LButton Up} ; Release the LButton key
return

F10::exitapp  


来源:https://stackoverflow.com/questions/16722671/script-to-use-left-click-as-left-shift-does-not-work-correctly

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!