In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
In Automation, programs are often needed to interact with the clipboard, and an input is still being used on the keyboard. If there is a lot of content, isn't it too slow to use the paste copy of the clipboard, so fast,so easy … Specifically, you need to call the objects and methods of Microsoft Forms 2.0 Object Library to easily set and obtain the contents of the clipboard. Here are two functions to set and get the contents of the clipboard. Call ~ directly when needed.
'operating clipboardFunction setClipboard (str)' setting clipboard's content Dim Form, TextBox Set Form = CreateObject ("Forms.Form.1") Set TextBox = Form.Controls.Add ("Forms.TextBox.1"). Object TextBox.MultiLine = True TextBox.Text = str TextBox.SelStart = 0 TextBox.SelLength = TextBox.TextLength TextBox.CopyEnd FunctionFunction getClipboard 'getting clipboard's content Dim Form TextBox Set Form = CreateObject ("Forms.Form.1") Set TextBox = Form.Controls.Add ("Forms.TextBox.1"). Object TextBox.MultiLine = True If TextBox.CanPaste Then TextBox.Paste getClipboard = TextBox.Text End IfEnd Function
More method reference links: http://demon.tw/programming/vbs-clipboard.html
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.