位置:丁香财经网 >> 期货

用友uclient能干嘛(用友uu)

日期:2023年05月31日 11:23 浏览量:3


类似效果实例

#include "Swing.au3"

#include <Excel.au3>

#include <Array.au3>

shellexecute("C:\Users\Admin\AppData\Local\UClient\apps\121c9f01-b00e-366b-ae6b-52e4cdd0d056\Launcher.exe", "121c9f01-b00e-366b-ae6b-52e4cdd0d056")

Sleep(5000)

Opt("MouseCoordMode", 0)

Opt("SendKeyDelay", 20)

global $wintitle = "Yonyou NC - nc65:8080"

$winHandle = WinActivate($wintitle)

WinSetState($wintitle, "", @SW_MAXIMIZE)

$result = __isJavaWindow($winHandle)

Global $vmId

Global $ac

global $sName = "用户"

global $sRole = "label"

__getAccessibleContextFromHWND($winHandle, $vmID, $ac)

Sleep(500)

$re_ac = _JAB_getAccessibleContextByFindAll($vmId, $ac, $sName, $sRole)

_JAB_getIndexInParent($vmId, $re_ac)

$indexObject = __getAccessibleParentFromContext($vmId, $re_ac)

$username = __getAccessibleChildFromContext($vmId, $indexObject, 3)

$passwd = __getAccessibleChildFromContext($vmId, $indexObject, 5)

$loginBtn = __getAccessibleChildFromContext($vmId, $indexObject, 7)

__setTextContents($vmId, $username, "slwql")

__setTextContents($vmId, $passwd, "@365")

_JAB_singleAction($vmId, $loginBtn)

Sleep(600)

If WinExists("提示") Then

$hWnd=WinGetHandle("[ACTIVE]");

$ret=DllCall("user32.dll","long","LoadKeyboardLayout","str","08040804","int",1+0);

DllCall("user32.dll","ptr","SendMessage","hwnd",$hWnd,"int",0x50,"int",1,"int",$ret[0]);

Sleep(400)

WinActivate("提示")

Sleep(400)

Send("{Y}")

Sleep(400)

EndIf

Sleep(200)

$function_ac = _JAB_getAccessibleContextByFindAll($vmId, $ac, "财务会计", "page tab")

Sleep(200)

Send("{DOWN 5}")

Sleep(200)

$base_ac = _JAB_getAccessibleContextByFindAll($vmId, $ac, "基础档案及规则", "label")

Sleep(200)

$indexList = __getAccessibleParentFromContext($vmId, $base_ac)

Sleep(200)

$clickLabel = __getAccessibleChildFromContext($vmId, $indexList, 1)

Sleep(200)

_JAB_singleAction($vmId, $clickLabel)

Sleep(300)

$infoX = _JAB_getX($vmId, $clickLabel)

$infoY = _JAB_getY($vmId, $clickLabel)

Sleep(20)

$posx = $infoX + 280

Sleep(20)

$posy = $infoY + 20

Sleep(20)

MouseClick("left",$posx,$posy,1)

Sleep(200)

Send("{DOWN 10}")

Sleep(200)

Send("{ENTER}")

Sleep(100)

$searchBtn = _JAB_getAccessibleContextByFindAll($vmId, $ac, "查询", "push button")

Sleep(100)

Send("{F3}")

Sleep(600)

If WinExists("凭证查询") Then

$searchDialog = WinActivate("凭证查询")

Sleep(200)

$result = __isJavaWindow($searchDialog)

__getAccessibleContextFromHWND($searchDialog, $vmId, $ac)

Sleep(100)

$accountLabel = _JAB_getAccessibleContextByFindAll($vmId, $ac, "核算账簿", "label")

Sleep(40)

$accoutBtn = _JAB_getNextSibling($vmId, $accountLabel, 1)

Sleep(40)

$btn = __getAccessibleChildFromContext($vmId, $accoutBtn, 1)

Sleep(40)

_JAB_singleAction($vmId, $btn)

Sleep(100)

Send("{DOWN 2}")

Sleep(40)

Send("{RIGHT}")

Sleep(40)

Send("{DOWN}")

Sleep(40)

Send("{ENTER}")

Sleep(40)

$confirmBtn = _JAB_getAccessibleContextByFindAll($vmId, $ac, "确定", "push button")

Sleep(40)

_JAB_singleAction($vmId, $confirmBtn)

Sleep(600)

WinFlash("凭证查询")

EndIf

Sleep(100)

Send("{TAB 2}")

Sleep(100)

$result = __isJavaWindow($winHandle)

Sleep(40)

__getAccessibleContextFromHWND($winHandle, $vmId, $ac)

Sleep(40)

$page_tab = _JAB_getAccessibleContextByFindAll($vmId, $ac, "查询", "page tab")

Sleep(40)

$table_header = _JAB_getAccessibleContextByFindAll($vmId, $page_tab, "出纳", "label")

Sleep(40)

$table = _JAB_getTableFromColumn($vmId, $table_header)

Sleep(40)

$count = _JAB_getTableRowCount($vmId, $table)

Sleep(300)

Send("{DOWN 20}")

Sleep(200)

$cardBtn = _JAB_getAccessibleContextByFindAll($vmId, $page_tab, "卡片显示", "push button")

Sleep(200)

_JAB_singleAction($vmId, $cardBtn)

Sleep(400)

Send("{TAB 1}")

Sleep(400)

$backBtn = _JAB_getAccessibleContextByFindAll($vmId, $page_tab, "返回", "push button")

Sleep(400)

MouseMove(16, 249, 10)

Sleep(40)

__getAccessibleContextWithFocus($winHandle, $vmId, $ac)

Sleep(40)

$iTableHeadCount = _JAB_getTableColumnCount($vmId, $ac)

$iTableRowCount = _JAB_getTableRowCount($vmId, $ac)

Sleep(400)

Local $oExcel = _Excel_Open()

Local $sFilePath = "D:\test.xls"

Local $oWorkbook = _Excel_BookOpen($oExcel, $sFilePath)

Local $oSheet = $oWorkbook.Sheets(1)

Sleep(400)

;Local $tableHeads[12] = ["分录号", "摘要", "科目", "辅助核算", "币种", "原币", "组织本币(借方)", "组织本币(贷方)", "集团本币(借方)", "集团本币(贷方)", "全局本币(借方)", "全局本币(贷方)"]

;$file = FileOpen("C:\data.txt", 1)

For $i = 0 To $iTableRowCount - 1

Local $tableData[12]

For $j = 0 To $iTableHeadCount - 1

Local $tableCell = _JAB_getTableCellTextValue($vmId, $ac, $i, $j)

Local $cellValue = StringRegExpReplace($tableCell, '<[/!]*?[^<>]*?>', '')

Sleep(20)

;_ArrayAdd($tableData, $tableCell)

$oSheet.Range("A2").Offset($i, $j).Value = $cellValue

$oSheet.Range("A:L").Columns.AutoFit

;FileWriteL ine($file, $tableHeads[$j] &@TAB &":" & $tableCell & @CRLF)

;If $j = 11 Then

; FileWriteLine($file, $tableCell & @CRLF & "===================================================================")

;EndIf

Next

Next

Sleep(400)

_Excel_BookSave($oWorkbook)

Sleep(400)

_Excel_BookClose($oWorkbook)

_Excel_Close($oExcel)

;FileClose($file)

Sleep(400)

WinClose($wintitle)

推荐阅读

ice期货交易所(洲际交易所(ICEUS)对金融服务公司Black Knight(BKFSUS)的估值为131亿美元)
路由器mac(路由器mac克隆怎么设置)
上海纸黄金macd(上海纸黄金今日价钱多少)
股指期货分时线与MACD线和均?期货分时图的均线是多少日均线
macd共振玩转期货(macd指标共振周期)
国债期货 black model,国债期货开户门槛
小圆点怎么打(excel小圆点怎么打)
电脑错误代码0x80071AC3(电脑错误代码0x80072f8f-0x20000)
错误代码0x80071ac3什么意思(错误代码0x80071a30)
梦幻西游mac版本怎么安装(macos 梦幻西游)
用友uclient能干嘛(用友uu)文档下载: PDF DOC TXT
文章来源: 潇潇
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至405936398@qq.com 举报,一经查实,本站将立刻删除。
相关资讯
红枣会(红枣会过敏吗)
红枣会(红枣会过敏吗) 2023-05-31

) Then$hWnd=WinGetHandle(&#34

北京市如何计算缴纳社保基数(北京社保基数计算公式)
北京市如何计算缴纳社保基数(北京社保基数计算公式) 2023-05-31

) Then$hWnd=WinGetHandle(&#34

泸州宝光药业集团有限公司(泸州市宝光药业有限公司)
泸州宝光药业集团有限公司(泸州市宝光药业有限公司) 2023-05-31

) Then$hWnd=WinGetHandle(&#34

中国元宇宙(元宇宙在中国开辟全新领域)
中国元宇宙(元宇宙在中国开辟全新领域) 2023-05-31

) Then$hWnd=WinGetHandle(&#34

15年8月份上海公司牌照
15年8月份上海公司牌照 2023-05-31

) Then$hWnd=WinGetHandle(&#34

中国建设银行苏州分行(中国建设银行苏州分行待遇)
中国建设银行苏州分行(中国建设银行苏州分行待遇) 2023-05-31

) Then$hWnd=WinGetHandle(&#34