使用剪贴板 [英] Working with clipboard

查看:109
本文介绍了使用剪贴板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几周前我发布了一篇关于我正在编写的加密程序的文章。我现在几乎把它作为一个翻译程序。我想使用系统范围的热键来复制,运行加扰器,并粘贴到文本的任何地方,同时还继续添加到保存在主页表单中的日志。我正在使用mclhotkey作为系统范围的热键,但我不熟悉VB6中的剪贴板。


这是我编码所输入的任何输入的代码。

展开 | 选择 | Wrap | 行号

解决方案


sl = Len(uinput.Text)



尝试这个,对于初学者。

展开 | 选择 | Wrap | 行号


我不明白,它应该做什么呢?




试试这个,对于初学者来说。

展开 | 选择 | Wrap | 行号



我不明白,它应该做什么呢?



它正在检查剪贴板上是否有实际文本。如果有,它会将该文本检索到变量 sl


I posted a few weeks ago about an encryption program I was writing. I now have it working almost as a translator program. I want to use system wide hotkeys to be able to copy, run through the scrambler, and paste over wherever the text was, while also continue to add to the log kept in the home form. I am using mclhotkey for the systemwide hotkeys, but I am not familiar with the clipboard in VB6.

This is the code I have to encode whatever input is entered.

Expand|Select|Wrap|Line Numbers

解决方案

sl = Len(uinput.Text)

Try this, for starters.

Expand|Select|Wrap|Line Numbers


I dont understand, what is it supposed to be doing then?



Try this, for starters.

Expand|Select|Wrap|Line Numbers


I dont understand, what is it supposed to be doing then?

It''s checking that there is actually text on the clipboard. If there is, it retrieves that text into variable sl.


这篇关于使用剪贴板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆