按键精灵EXCEL读取循环问题
读取EXCEL表1里A1和B1到另一个软件分别对应的两点处一只读取下去A2B2A3B3A4B4..........................我应该怎么加循环Hwnd...
读取EXCEL表1里A1和B1到另一个软件分别对应的两点处
一只读取下去A2 B2 A3 B3 A4 B4..........................
我应该怎么加循环
Hwnd = Plugin.Window.Find(0, "1.xlsx - EXCEL")
dim a,b,
Call Plugin.Office.OpenXls("E:\按键精灵2014\1.xlsx")
a = Plugin.Office.ReadXls(1,1,1)
b = Plugin.Office.ReadXls(1,1,2)
Call Plugin.Office.CloseXls()
Hwnd = Plugin.Window.MousePoint()
Call Plugin.Bkgnd.LeftClick(Hwnd, 569, 151)
Call Plugin.Window.SendString(Hwnd, a)
Call Plugin.Bkgnd.LeftClick(Hwnd, 640, 152)
Call Plugin.Window.SendString(Hwnd, b)
两点处的坐标不变 展开
一只读取下去A2 B2 A3 B3 A4 B4..........................
我应该怎么加循环
Hwnd = Plugin.Window.Find(0, "1.xlsx - EXCEL")
dim a,b,
Call Plugin.Office.OpenXls("E:\按键精灵2014\1.xlsx")
a = Plugin.Office.ReadXls(1,1,1)
b = Plugin.Office.ReadXls(1,1,2)
Call Plugin.Office.CloseXls()
Hwnd = Plugin.Window.MousePoint()
Call Plugin.Bkgnd.LeftClick(Hwnd, 569, 151)
Call Plugin.Window.SendString(Hwnd, a)
Call Plugin.Bkgnd.LeftClick(Hwnd, 640, 152)
Call Plugin.Window.SendString(Hwnd, b)
两点处的坐标不变 展开
2个回答
展开全部
Hwnd = Plugin.Window.Find(0, "1.xlsx - EXCEL")
dim a,b
Call Plugin.Office.OpenXls("E:\按键精灵2014\1.xlsx")
For i = 1 To 100
a = Plugin.Office.ReadXls(1,i,1)
b = Plugin.Office.ReadXls(1,i,2)
Hwnd = Plugin.Window.MousePoint()
Call Plugin.Bkgnd.LeftClick(Hwnd, 569, 151)
Call Plugin.Window.SendString(Hwnd, a)
Call Plugin.Bkgnd.LeftClick(Hwnd, 640, 152)
Call Plugin.Window.SendString(Hwnd, b)
Next
Call Plugin.Office.CloseXls()
dim a,b
Call Plugin.Office.OpenXls("E:\按键精灵2014\1.xlsx")
For i = 1 To 100
a = Plugin.Office.ReadXls(1,i,1)
b = Plugin.Office.ReadXls(1,i,2)
Hwnd = Plugin.Window.MousePoint()
Call Plugin.Bkgnd.LeftClick(Hwnd, 569, 151)
Call Plugin.Window.SendString(Hwnd, a)
Call Plugin.Bkgnd.LeftClick(Hwnd, 640, 152)
Call Plugin.Window.SendString(Hwnd, b)
Next
Call Plugin.Office.CloseXls()
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询