polto Posted June 16, 2006 Share Posted June 16, 2006 I'm a newB and I'm trying to learn more about AutoIt...I try to convert this code from .au3 to .exe, but it doesn't work. The error is: Line 0 (File "Path file.."):$B_oIE1 = ObjCreate("Shell.Explorer.2")$B_oIE1 = ^ERRORError: Unknown function name.The code is:#include <GuiConstants.au3> GUICreate("Object Test", 614, 370) GUISetFont(9, 400, -1, "Verdana") $B_oIE1 = ObjCreate("Shell.Explorer.2") $Breaktime = GUICtrlCreateObj($B_oIE1, -1, -1, 500, 370) $html = "about:CONGRADULATIONS!!! - You have passed, Level I Basic Exam......... To Show Autoit can be Fun Too!!!..... Please Press *Enter Break*" & @CR $B_oIE1.navigate ( $html) $BrkStart = GUICtrlCreateButton("Vai", 515, 300, 80, 25) $BrkEnd = GUICtrlCreateButton("Esci", 515, 330, 80, 25) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Or $msg = $BrkEnd Then Exit EndIf If $msg = $BrkStart Then $B_oIE1.navigate ('http://www.google.com') EndIf WEndCan anyone helps me? Link to comment Share on other sites More sharing options...
Nomad Posted June 16, 2006 Share Posted June 16, 2006 I'm a newB and I'm trying to learn more about AutoIt...I try to convert this code from .au3 to .exe, but it doesn't work. The error is: Line 0 (File "Path file.."): $B_oIE1 = ObjCreate("Shell.Explorer.2") $B_oIE1 = ^ERROR Error: Unknown function name. The code is: #include <GuiConstants.au3> GUICreate("Object Test", 614, 370) GUISetFont(9, 400, -1, "Verdana") $B_oIE1 = ObjCreate("Shell.Explorer.2") $Breaktime = GUICtrlCreateObj($B_oIE1, -1, -1, 500, 370) $html = "about:CONGRADULATIONS!!! - You have passed, Level I Basic Exam......... To Show Autoit can be Fun Too!!!..... Please Press *Enter Break*" & @CR $B_oIE1.navigate ( $html) $BrkStart = GUICtrlCreateButton("Vai", 515, 300, 80, 25) $BrkEnd = GUICtrlCreateButton("Esci", 515, 330, 80, 25) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Or $msg = $BrkEnd Then Exit EndIf If $msg = $BrkStart Then $B_oIE1.navigate ('http://www.google.com') EndIf WEnd Can anyone helps me? I believe you need the beta release to use ObjCreate. Link to comment Share on other sites More sharing options...
Xenobiologist Posted June 16, 2006 Share Posted June 16, 2006 Hi,yeah! Definately needs beta.http://www.autoitscript.com/autoit3/files/beta/autoit/So long,Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
polto Posted June 16, 2006 Author Share Posted June 16, 2006 Hi,yeah! Definately needs beta.http://www.autoitscript.com/autoit3/files/beta/autoit/So long,MegaI have already installed beta version.. Maybe the "Compile Script to .exe" doesn't see the beta version, but only the original version..It's possible? How can I solve? Link to comment Share on other sites More sharing options...
Xenobiologist Posted June 16, 2006 Share Posted June 16, 2006 (edited) HI, you have to use beta compile! It is easier using Scite. There are options for beta run and beta compile. (You can also toggle to beta.) So long, Mega Edited June 16, 2006 by th.meger Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
polto Posted June 16, 2006 Author Share Posted June 16, 2006 I have already installed beta version.. Maybe the "Compile Script to .exe" doesn't see the beta version, but only the original version..It's possible? How can I solve?I understand my error, but the problem is the same..I launched "Compile Script to .exe" and not "Compile(beta) Script to .exe"...But now the error is:Error: Unable to execute upx.exe to compress stub fileWhy? Link to comment Share on other sites More sharing options...
Nomad Posted June 16, 2006 Share Posted June 16, 2006 I understand my error, but the problem is the same..I launched "Compile Script to .exe" and not "Compile(beta) Script to .exe"...But now the error is:Error: Unable to execute upx.exe to compress stub fileWhy? When I first installed beta, I already had the production version and I couldn't get anything to work right until I re-installed SciTe. Since then everything has been great. Try re-installing SciTe and see if that helps.Nomad Link to comment Share on other sites More sharing options...
polto Posted June 16, 2006 Author Share Posted June 16, 2006 When I first installed beta, I already had the production version and I couldn't get anything to work right until I re-installed SciTe. Since then everything has been great. Try re-installing SciTe and see if that helps.Nomad Solved! I installed the beta version from zip files, without the file upx.exe..Now, after installing the beta versione from the setup file, I got it...Many thanks to all, really..great forum Link to comment Share on other sites More sharing options...
Nomad Posted June 16, 2006 Share Posted June 16, 2006 @Jon < I am so looking forward to the next release...Lar. Why? Is the next release going to have it all in the production? That would be nice. Link to comment Share on other sites More sharing options...
Nomad Posted June 16, 2006 Share Posted June 16, 2006 Solved! I installed the beta version from zip files, without the file upx.exe..Now, after installing the beta versione from the setup file, I got it...Many thanks to all, really..great forum No problem. I much prefer the beta anyway. It has many more options and I need a lot of the functions which can't be used in the production. I haven't had any stability issues that I can think of either. Enjoy. 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