怎么样把VB代码改成autoit,(调用bartender)
Public BtApp As BarTender.ApplicationPublic BtFormat As BarTender.Format
Private Sub Command1_Click()
Set BtFormat = BtApp.Formats.Open("d:\kailide_1.btw")
BtFormat.SetNamedSubStringValue "code1", "S/N:11033000000011"
BtFormat.PrintOut
BtFormat.SetNamedSubStringValue "code1", "S/N:11033000000022"
BtFormat.PrintOut
BtFormat.Close (BarTender.BtSaveOptions.btDoNotSaveChanges)
End Sub
Private Sub Form_Load()
Set BtApp = CreateObject("BarTender.Application")
End Sub
Private Sub Form_Unload(Cancel As Integer)
BtApp.Quit
End Sub
Private Sub Text1_keypress(keyascii As Integer)
If keyascii = 13 Then Call Command1_Click
End Sub
页:
[1]