This sub move the cursor to the specified position for Pcom session[VBS]
时间:2015-09-18 ┊ 阅读:3,101 次 ┊ 标签: 开发 , 编程 , 分享
write this script just want to simplify our daily work, you can just copy and change it for your using, it can help you to move the cursor to anywhere you want when you use a pcom to access the as/400, do many thing for you. please share with all ones need it. thanks.
[PCOMM SCRIPT HEADER]
LANGUAGE=VBSCRIPT
DESCRIPTION=Your Script Name
[PCOMM SCRIPT SOURCE]
OPTION EXPLICIT
autECLSession.SetConnectionByName(ThisSessionName)
Sub MovCsr(Row, Col)
Dim i
If Row > 0 Then
For i = 1 To Row
autECLSession.autECLPS.Wait 100
autECLSession.autECLOIA.WaitForAppAvailable
autECLSession.autECLPS.SendKeys "[up]"
Next
End If
If Row < 0 Then
For i = 1 to Abs(Row)
autECLSession.autECLPS.Wait 100
autECLSession.autECLOIA.WaitForAppAvailable
autECLSession.autECLPS.SendKeys "[down]"
Next
End If
If Col > 0 Then
For i = 1 to Col
autECLSession.autECLPS.Wait 100
autECLSession.autECLOIA.WaitForAppAvailable
autECLSession.autECLPS.SendKeys "[left]"
Next
End If
If Col < 0 Then
For i = 1 to Abs(Col)
autECLSession.autECLPS.Wait 100
autECLSession.autECLOIA.WaitForAppAvailable
autECLSession.autECLPS.SendKeys "[right]"
Next
End If
End Sub
美图奉上,赏心悦目:
文章评论
相关文章
Whatsapp只能查看最近三天的聊天记录了怎么办?
今天突然发现电脑上的WhatsApp只能查看最近3天的聊天记录了,显示要查看3天前的记录请到手机上查看。很是吃惊,以前一直是所有记录都自动同步到电脑版的啊,不论换电脑了还是换手机了,聊天记录从来没丢过。
查询一翻也没有找出来原因,怎么也同步不过去。
电脑版app重新安装了,也不行。
有个方法说...
ValueError: Error getting directory
ssl证书过期了
明明自动renew的
然后看log已经好久没更新成功了
查半天是当前server不信任远程连接
只能自己改代码
报错:
21-12-17 13:01:11
Generate CSR...amkevin.csr
amkevin.csr generated.
/home/www...
网页路径中的'.'和'..'还有'./'和'../'区别
. 表示当前目录
.. 表示当前目录的上一级目录。
./表示当前目录下的某个文件或文件夹,视后面跟着的名字而定
../表示当前目录上一级目录的文件或文件夹,视后面跟着的名字而定。
例如:
文件夹 a
下面有 文件夹b c 和文件 d。
文件夹b下面有e.php 和文件f。
则e中的 . 表示...
Introduction to ILE RPG Activation Groups
Learn how activation groups can help your ILE RPG programs run more efficiently, how to specify the type of group to use, and closing and reclaimin...
popup.js怎么和content.js通信?[JQuery]
这两天为了实现一个谷歌浏览器插件功能,研究了半天怎么让插件来改特定网页里的特定字段的值,而这个值又来自popup的网页预先设定,下一步实现动态加载,可以让更多组实现便利。
目的很简单,我们有一个list,需要填到网页的某个字段,当然是好几个,这些值是设定好的,网页系统我们没法改,input想...