剪贴板中文问题
powershell吧
全部回复
仅看楼主
level 4
茸小伞Ö~
楼主
2023年05月08日 08点05分
1
level 4
茸小伞Ö~
楼主
曲线解决,使用powershell内置的cmdlet:
2023年05月19日 01点05分
2
level 4
茸小伞Ö~
楼主
$mes = @"
你好
在吗
吃了没
good morning
12点了
我妈来了,先拜拜
"@
$messages = $mes.Split("`n")
$ws = New-Object -ComObject wscript.shell
##留给切换到聊天的时间
sleep -Seconds 3; $messages | foreach {
$_ | scb;
$ws.SendKeys("^V^{enter}");
sleep -Seconds 1;
}
2023年05月19日 01点05分
3
level 4
茸小伞Ö~
楼主
2023年05月19日 01点05分
4
茸小伞Ö~
控制台缓冲区显示问题,没复制到贴吧,实际$mes里有个签这句
2023年05月19日 01点05分
level 4
茸小伞Ö~
楼主
哈哈,脚本发消息才是我的本意
2023年05月19日 01点05分
5
level 2
打,打个大西瓜
请问一下,为啥你的powershell右边有个➕,我的啥也没有
2023年06月25日 15点06分
6
茸小伞Ö~
WindowsTerminal
2023年06月27日 05点06分
1