新手求教 如何让脚本长按shift键和鼠标左键

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: 新手求教 如何让脚本长按shift键和鼠标左键

Re: 新手求教 如何让脚本长按shift键和鼠标左键

by garry » 21 Apr 2024, 13:36

你好 HBK

Code: Select all

#Requires Autohotkey v1.1
;------------------------
~$+Lbutton::   ;- SHIFT + LBUTTON
Loop
 {
 GetKeyState,Lmouse,LButton,P
    If Lmouse = U
        break
 tooltip,LBUTTON PRESSED 鼠标左键 running....		
 }
tooltip 
return
;------------
esc::exitapp    ;- quit script with ESC
;============

新手求教 如何让脚本长按shift键和鼠标左键

by HBK » 21 Apr 2024, 04:01

自己试着写了写 发现按下运行键之后脚本会一直长按shift键和鼠标左键 没法停止

Top