4.易语言基础知识总结
<p><span style="color: rgba(0, 0, 128, 1); font-size: 18px"><strong>一.易语言一个很初级的问题 :易语言运行执行exe文件的方法</strong></span></p><p><span style="color: rgba(0, 0, 128, 1); font-size: 18px"><strong>可以进行游戏的一键启动,软件的一键启动,方便控制操作。</strong></span></p>
<p><span style="color: rgba(0, 0, 128, 1)"><strong>基本函数</strong></span></p>
<div class="cnblogs_code">
<pre><span style="color: rgba(0, 0, 0, 1)">调用格式:
〈逻辑型〉
运行
(文本型
欲运行的命令行,逻辑型
是否等待程序运行完毕,〔整数型
被运行程序窗口显示方式〕)
</span>-<span style="color: rgba(0, 0, 0, 1)">
系统核心支持库</span>-><span style="color: rgba(0, 0, 0, 1)">系统处理
英文名称:run</span></pre>
</div>
<p><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 14px; white-space: pre-wrap">本命令运行指定的可执行文件或者外部命令。如果成功,返回真,否则返回假。本命令为初级命令。</span><br style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap"><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 14px; white-space: pre-wrap">参数<1>的名称为“欲运行的命令行”,类型为“文本型(text)”。</span><br style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap"><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 14px; white-space: pre-wrap">参数<2>的名称为“是否等待程序运行完毕”,类型为“逻辑型(bool)”,初始值为“假”。</span><br style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap"><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 14px; white-space: pre-wrap">参数<3>的名称为“被运行程序窗口显示方式”,类型为“整数型(int)”,可以被省略。参数值可以为以下常量之一:1、#隐藏窗口;</span><br style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap"><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 14px; white-space: pre-wrap">2、#普通激活;</span><br style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap"><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 14px; white-space: pre-wrap">3、#最小化激活;</span><br style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap"><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 14px; white-space: pre-wrap">4、#最大化激活;</span><br style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap"><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 14px; white-space: pre-wrap">5、#普通不激活;</span><br style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap"><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 14px; white-space: pre-wrap">6、#最小化不激活。如果省略本参数,默认为“普通激活”方式。</span><br style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap"><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 14px; white-space: pre-wrap">操作系统需求:</span><br style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap"><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 14px; white-space: pre-wrap">windows、linux</span><br style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap"><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 14px; white-space: pre-wrap">如:要执行test.exe则(假设此程序在c盘根目录下):</span><br style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap"><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 14px; white-space: pre-wrap">运行</span><br style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap"><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 14px; white-space: pre-wrap">("c:\test.exe",</span><br style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap"><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 14px; white-space: pre-wrap">假,</span><br style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap"><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 14px; white-space: pre-wrap">)</span></p>
<p><span style="color: rgba(77, 77, 77, 1); font-family: -apple-system, "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif, SimHei, SimSun; font-size: 16px; font-weight: bold">1、和程序同目录</span> </p>
<div class="cnblogs_code">
<pre>运行 (取运行目录 () + “\测试.exe”, 假, <span style="color: rgba(128, 0, 128, 1)">2</span>)</pre>
</div>
<p> <span style="font-size: 16px"><strong>2、不同目录</strong></span></p>
<div class="cnblogs_code">
<pre><span style="color: rgba(0, 0, 0, 1)">路径 = “E:\e\e\eFile\测试.exe”
运行 (路径, 假, </span><span style="color: rgba(128, 0, 128, 1)">2</span>) </pre>
</div>
<div class="article-info-box"><span style="font-size: 18px"><strong><span style="color: rgba(0, 0, 128, 1)"> 二.易语言的注释</span></strong></span></div>
<div class="article-info-box">
<p style="transition: margin 0.1s linear 0s, padding 0.1s linear 0s, width 0.1s linear 0s, height 0.1s linear 0s; margin: 0 0 16px; color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif; font-size: 16px; letter-spacing: 0.5px">输入 ’(回车键前面那个就是,笔记本和外界键盘基本都一样)</p>
<p style="transition: margin 0.1s linear 0s, padding 0.1s linear 0s, width 0.1s linear 0s, height 0.1s linear 0s; margin: 0 0 16px; color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif; font-size: 16px; letter-spacing: 0.5px"><strong style="transition: margin 0.1s linear 0s, padding 0.1s linear 0s, width 0.1s linear 0s, height 0.1s linear 0s">例如 ’百度经验</strong></p>
<p style="transition: margin 0.1s linear 0s, padding 0.1s linear 0s, width 0.1s linear 0s, height 0.1s linear 0s; margin: 0 0 16px; color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif; font-size: 16px; letter-spacing: 0.5px">一行注释一个 ’</p>
<h1 class="question-title js-ask-title" style="margin: 0; padding: 0; font-size: 26px; line-height: 40px; color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif"><span class="question-title-txt" style="margin: 0; padding: 0; display: inline-block; overflow-wrap: normal">三.易语言刚进去的窗口程序,控制台程序有什么不同,</span></h1>
<p><span class="question-title-txt" style="margin: 0; padding: 0; display: inline-block; overflow-wrap: normal"><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap">控制台那个一般情况下是用不到的,也基本很少人用,选用WINDOWS窗口程序 即可。</span><br style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap"><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap">那个控制台的窗体如同CMD批处理那个界面一样,因为我不怎么用它,不知该如何诠释它,一般用不上它,况且对于新人就更加用不上了。</span><br style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap"><span style="color: rgba(51, 51, 51, 1); font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", arial, sans-serif; font-size: 16px; white-space: pre-wrap">如非要清楚它的作用,建议百度搜索“易语言控制台例程” 能搜到许多,去看一下便知。</span></span> </p>
</div>
<h1 class="title">四.易语言如何修改图标?易语言修改图标步骤</h1>
<p>找到菜单栏的“文件”里面有一个配置。</p>
<p>在“配置”里面我们可以输入详细的程序作者信息,这些就不详细说明了,说修改图标。</p>
<p>点击“设置程序图标”,选择好图标文件就可以啦,图标文件格式必须是 ico文件的!</p>
<p>要是你没有,我们可以去简单的制作几个,我们先在百度搜索一下“ico图标转换”,随便进入一个转换的网站。</p>
<p>一般一个图标文件会同时包含3种大小:<br>查看方式为平铺的时候是48 x 48,<br>查看方式为图标的时候是32 x 32,<br>查看方式为列表的时候是16 x 16,<br><br>当然一般的话做一个32 x 32的图标就可以了...</p>
<p> http://www.ico51.cn/ </p>
<h1 class="title">五.基础知识的</h1>
<p><span style="font-size: 18px"><strong><span style="color: rgba(255, 0, 0, 1)">1.返回()</span> </strong></span>:可以结束条件判断.</p>
<p><span style="color: rgba(0, 0, 255, 1)"><strong><span style="font-size: 18px">2.编辑框的输入方式可以改为</span></strong></span><strong><span style="font-size: 18px">密码输入</span></strong><span style="color: rgba(0, 0, 255, 1)"><strong><span style="font-size: 18px">等.</span></strong></span></p>
<p><span style="color: rgba(0, 0, 255, 1)"><strong><span style="font-size: 18px">3.ctrl+L创建变量</span></strong></span></p>
<p><span style="color: rgba(0, 0, 255, 1)"><strong><span style="font-size: 18px"> 4.到文本 (取现行时间 ();</span></strong></span></p>
<p><span style="color: rgba(0, 0, 255, 1)"><strong><span style="font-size: 18px">5.函数写入:写到文件 (“E:\e\sid\image\” + 到文本 (取现行时间 ()) + “.png”, 图)</span></strong></span></p>
<p><span style="color: rgba(0, 0, 255, 1)"><strong><span style="font-size: 18px">6.截图:快照(,300,300)</span></strong></span></p>
<p><span style="color: rgba(0, 0, 255, 1)"><strong><span style="font-size: 18px">7.外形框设置成不同形状</span></strong></span></p>
<p><span style="color: rgba(0, 0, 255, 1)"><strong><span style="font-size: 18px">8.选择某个文件用 编辑框1.内容 = 浏览文件夹 (“选择路径”, 真)</span></strong></span></p>
<p><span style="color: rgba(0, 0, 255, 1)"><strong><span style="font-size: 18px">9.到文本()是转换数据类型的意思</span></strong></span></p>
<p> </p><br><br>
来源:https://www.cnblogs.com/lukelook/p/15435147.html
頁:
[1]