偶然想到如果以后忙于工作无暇社交,是否可以在微信上写一个脚本进行定时消息发送,通过查找资料找到一种简单的解决方案,应用此方案可以实行对指定用户的单方面定时消息发送
1.登录微信网页版
2.选择对应的联系人
3.打开Javascript console
4.输入脚本
脚本内容:
setInterval(function(){
if(new Date().toLocaleString().indexOf('2017/11/13 下午2:25:00')===0)
{
$('.edit_area').html('test script');
$(".edit_area").trigger($.Event("keydown", { keyCode: 13,ctrlKey: true}));
$('.btn_send').click();
}
},1000);
其中test script
处为想要发送的消息内容,时间格式使用new Date().toLocaleString();
来查看。