如何判断鼠标是否点击。

使用问题 · 846 次浏览
bi8bo 创建于 2024-08-01 10:02

我想判断鼠标是否左键点击,点击则变量 a置为1,否则为0.


y_n 2024-08-01 10:19 :


回复内容
沉没的白鲸 2024-08-01 10:24
#1

动作内部可以通过等待按键模块判断 等待按键 - Quicker

https://getquicker.net/kc/help/doc/waitkeyboard

EC10010 2024-08-01 10:28
#2

用“等待按键”模块等待所有按键,判断按下的按键名是否为LButton。

以下是所有按键名:

A,Add,Alt,Apps,Attn,B,Back,BrowserBack,BrowserFavorites,BrowserForward,BrowserHome,BrowserRefresh,BrowserSearch,BrowserStop,C,Cancel,Capital,CapsLock,Clear,Control,ControlKey,Crsel,D,D0,D1,D2,D3,D4,D5,D6,D7,D8,D9,Decimal,Delete,Divide,Down,E,End,Enter,EraseEof,Escape,Execute,Exsel,F,F1,F10,F11,F12,F13,F14,F15,F16,F17,F18,F19,F2,F20,F21,F22,F23,F24,F3,F4,F5,F6,F7,F8,F9,FinalMode,G,H,HanguelMode,HangulMode,HanjaMode,Help,Home,I,IMEAccept,IMEAceept,IMEConvert,IMEModeChange,IMENonconvert,Insert,J,JunjaMode,K,KanaMode,KanjiMode,KeyCode,L,LaunchApplication1,LaunchApplication2,LaunchMail,LButton,LControlKey,Left,LineFeed,LMenu,LShiftKey,LWin,M,MButton,MediaNextTrack,MediaPlayPause,MediaPreviousTrack,MediaStop,Menu,Modifiers,Multiply,N,Next,NoName,None,NumLock,NumPad0,NumPad1,NumPad2,NumPad3,NumPad4,NumPad5,NumPad6,NumPad7,NumPad8,NumPad9,O,Oem1,Oem102,Oem2,Oem3,Oem4,Oem5,Oem6,Oem7,Oem8,OemBackslash,OemClear,OemCloseBrackets,Oemcomma,OemMinus,OemOpenBrackets,OemPeriod,OemPipe,Oemplus,OemQuestion,OemQuotes,OemSemicolon,Oemtilde,P,Pa1,Packet,PageDown,PageUp,Pause,Play,Print,PrintScreen,Prior,ProcessKey,Q,R,RButton,RControlKey,Return,Right,RMenu,RShiftKey,RWin,S,Scroll,Select,SelectMedia,Separator,Shift,ShiftKey,Sleep,Snapshot,Space,Subtract,T,Tab,U,Up,V,VolumeDown,VolumeMute,VolumeUp,W,X,XButton1,XButton2,Y,Z,Zoom,wheel
回复主贴