0

我想将鼠标按钮映射到我按下的最后一个数字键。

我考虑过使用变量来跟踪最后按下的数字键。

我试过了

{  
   "from":{  
      "key_code":"0"
   },
   "to":[  
      {  
         "set_variable":{  
            "name":"last_number",
            "value":"0"
         }
      },
      {  
         "key_code":"0"
      }
   ],
   "type":"basic"
},
...
{  
   "conditions":[  
      {  
         "name":"last_number",
         "type":"variable_if",
         "value":"0"
      }
   ],
   "from":{  
      "modifiers":{  
         "optional":[  
            "any"
         ]
      },
      "pointing_button":"button4"
   },
   "to":[  
      {  
         "key_code":"0"
      }
   ],
   "type":"basic"
},
...

但是鼠标按钮从不输出任何东西

4

1 回答 1

0

值必须是数字,更改"0"0固定它

于 2019-03-05T00:11:45.393 回答