Ken_Chen Posted 2 hours ago Share Posted 2 hours ago As the title, I got problems about SAP connection. #include <AutoItConstants.au3> #include <MsgBoxConstants.au3> #include <SAP.au3> #include <SAPGUI.au3> #include <WinAPIFiles.au3> Local $SAPFunc = 0, $Connection = 0, $SAPConnection = 0 Global $ReadTableFunc = 0, $Param = 0, $Table = 0 $SAPFunc = ObjCreate("SAP.Functions.Unicode") If Not IsObj($SAPFunc) Then $error_num = 4 MsgBox($MB_OK, "SAPFunc Error", "SAPFunc Create Error" & $error_num) EndIf things go well if I trigger Go(F5). I have to transfer the script into an .exe file so I use Build(F7). The file I build(F7) cannot create SAP Functions while the SAP functions create successfully if I use Compile( Ctrl+F7 ). Differcen between Compile and Build says a GUI will show up using Compile but there is nothing after I compile and I still get my .exe file. Q1. Is there any difference between files made by Build and Compile Q2. Why doesn't the GUI appear BTW, should I upgrade the editor to full version of SciTE Link to comment Share on other sites More sharing options...
ioa747 Posted 2 hours ago Share Posted 2 hours ago (edited) 13 minutes ago, Ken_Chen said: BTW, should I upgrade the editor to full version of SciTE probably. You have more to gain than to lose p.s. I don't know about about SAP connection. Edited 2 hours ago by ioa747 I know that I know nothing Link to comment Share on other sites More sharing options...
Ken_Chen Posted 2 hours ago Author Share Posted 2 hours ago 2 minutes ago, ioa747 said: probably. You have more to gain than to lose I am wondering that the include directory and User.propertities will be reset or not🤔 Link to comment Share on other sites More sharing options...
ioa747 Posted 2 hours ago Share Posted 2 hours ago (edited) by all means make a backup of the folder C:\Users\ioa757\AppData\Local\AutoIt v3\SciTE the C:\Program Files (x86)\AutoIt3\Include directory remains untouched Edited 2 hours ago by ioa747 I know that I know nothing Link to comment Share on other sites More sharing options...
Ken_Chen Posted 1 hour ago Author Share Posted 1 hour ago 1 hour ago, Ken_Chen said: As the title, I got problems about SAP connection. #include <AutoItConstants.au3> #include <MsgBoxConstants.au3> #include <SAP.au3> #include <SAPGUI.au3> #include <WinAPIFiles.au3> Local $SAPFunc = 0, $Connection = 0, $SAPConnection = 0 Global $ReadTableFunc = 0, $Param = 0, $Table = 0 $SAPFunc = ObjCreate("SAP.Functions.Unicode") If Not IsObj($SAPFunc) Then $error_num = 4 MsgBox($MB_OK, "SAPFunc Error", "SAPFunc Create Error" & $error_num) EndIf things go well if I trigger Go(F5). I have to transfer the script into an .exe file so I use Build(F7). The file I build(F7) cannot create SAP Functions while the SAP functions create successfully if I use Compile( Ctrl+F7 ). Differcen between Compile and Build says a GUI will show up using Compile but there is nothing after I compile and I still get my .exe file. Q1. Is there any difference between files made by Build and Compile Q2. Why doesn't the GUI appear BTW, should I upgrade the editor to full version of SciTE I convert the script to .exe via the Aut2Exe and notice that the SAP Functions wiil fail if I choose x64 On the other hand, SAP Functions create successfully if I don't check this option. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now