新人求助,为什么这个简单的命令用sendinput就不行?

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: 新人求助,为什么这个简单的命令用sendinput就不行?

Re: 新人求助,为什么这个简单的命令用sendinput就不行?

by aamii » 12 Jul 2018, 00:21

sendinput 与send都没有问题吧
不过,上面的代码,最好避免alt组合热键

新人求助,为什么这个简单的命令用sendinput就不行?

by junjiefu » 20 May 2018, 01:17

Code: Select all

!g::
send ^c
sleep 500
ss=https://www.google.com/search?q=%clipboard%&ie=utf-8&oe=utf-8
run %ss%
return
一个最最简单的命令,按alt+g,复制当前选中内容并用google搜索。
为什么用send ^c可以,而改成sendinput ^c就不行呢?

Top