Wechat is an indispensable social software in our daily life. Many people have more than one Wechat, but they usually face a problem. They can only open one Wechat at the same time on the computer. Today I have nothing to do, so I wrote a The script that can open more WeChat, I used bat
the script at first, but bat
it needs to face the terminal, which is not suitable for ordinary people, so I learned and used it vbs
to realize it
- Double-click on the desktop
vbs程序
to open the input box and enter the number of WeChat to start - After confirming, enter the WeChat application address
- After determining the number of the first step in the loop, execute the start WeChat operation
Implementation ideas
- Need to open the input box and get the input quantity, here is
inputbox
the method - Enter the address of the WeChat application and get the result in the same
inputbox
way - use
For...to
loop WScript.Shell
The method usedRun
to start WeChatspecific code
Finally, save the code on the desktop, and modify the suffix to
.vbs
, double-click to run it directlyreward
vbs
Variables defined in can be useddim
CreateObject
Create an object by- Declare a function with
Sub
orFunction
Call
Call a function by- Not equal to symbol can use
<>
- The input box can use
inputbox
controls - The message box can use
msgbox
controls if
The conditional judgment mustend if
end with and is not case sensitive- epilogue
- If there is an error, I hope you can point it out. By the way, this thing is based on Microsoft, so it can only be
windows
used on the Internet~