CreeTar Posted June 28, 2010 Share Posted June 28, 2010 Hello, I put some ConsoleWrite's into my script but I don't get any into the console of the SciTE. The first suspicion is that when I hit F5 the program is running but the console says already Exit code: 0 but the program is not yet exited >"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\xxxxx.au3" /autoit3dir "C:\Program Files (x86)\AutoIt3" /UserParams +>17:38:38 Starting AutoIt3Wrapper v.2.0.0.3 Environment(Language:0407 Keyboard:00000407 OS:WIN_VISTA/ CPU:X64 OS:X64) >Running AU3Check (1.54.14.0) from:C:\Program Files (x86)\AutoIt3 +>17:38:38 AU3Check ended.rc:0 >Running:(3.3.0.0):C:\Program Files (x86)\AutoIt3\autoit3_x64.exe "C:\Users\xxxxx.au3" +>17:38:38 AutoIT3.exe ended.rc:0 +>17:38:39 AutoIt3Wrapper Finished >Exit code: 0 Time: 1.837 The ConsoleWrite is before the first function of the script so i should have been in the console for sure. Is it some part of the SciTE Properties? #AutoIt3Wrapper_icon=i.ico #AutoIt3Wrapper_Compression=0 #AutoIt3Wrapper_Res_Comment=Execute this program #AutoIt3Wrapper_Res_Description=Analyze system #AutoIt3Wrapper_Res_Fileversion=0.30.0.18 #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y #AutoIt3Wrapper_Res_LegalCopyright=xxxxx #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator #AutoIt3Wrapper_Res_Icon_Add=cnp.ico #AutoIt3Wrapper_Res_Icon_Add=r.ico #AutoIt3Wrapper_Res_Icon_Add=c.ico AutoItSetOption("MustDeclareVars", 1) Any tips what might cause this problem? I checked also au3.properties but it seems fine ## Debug Output Options (to permanent change your selection copy them to SciTEUser.Properties and change it there # Debug MessageBox Option 2="All" 1="No @extended" 0="No @extended & @error". debug.msgbox.option=0 # Debug Console Option 3="All" 2="No SystemTime" 1="No SystemTime & Return" 0="No SystemTime, Return & Error". debug.console.option=1 # Debug Trace Option 3="All" 2="No SystemTime" 1="No SystemTime & Return" 0="No SystemTime, Return & Error". debug.trace.option=1 Cheers Link to comment Share on other sites More sharing options...
JohnOne Posted June 28, 2010 Share Posted June 28, 2010 Did the thought cross your mind (if only for a nano second) that your coding may be at fault? Because I assure you that consolewrite() works just fine. Show a reproducer that dosent work. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
UEZ Posted June 28, 2010 Share Posted June 28, 2010 Use #AutoIt3Wrapper_Change2CUI=y and console ouput can be seen now BR, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
CreeTar Posted June 28, 2010 Author Share Posted June 28, 2010 (edited) Use #AutoIt3Wrapper_Change2CUI=y and console ouput can be seen now BR, UEZ did not work unfortunately, must be something with my SciTE settings, my script always works If i remove #RequireAdmin it works, but how can that be? Script: #RequireAdmin #Region #AutoIt3Wrapper_Change2CUI=y #AutoIt3Wrapper_icon=i.ico #AutoIt3Wrapper_Compression=0 #AutoIt3Wrapper_Res_Comment=123 #AutoIt3Wrapper_Res_Description=345 #AutoIt3Wrapper_Res_Fileversion=0.30.0.21 #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y #AutoIt3Wrapper_Res_LegalCopyright=678 #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator #AutoIt3Wrapper_Res_Icon_Add=cnp.ico #AutoIt3Wrapper_Res_Icon_Add=r.ico #AutoIt3Wrapper_Res_Icon_Add=c.ico #EndRegion AutoItSetOption("MustDeclareVars", 1) ConsoleWrite("start Main()" & @CRLF) Exit Console >"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\xxx\xxx.au3" /autoit3dir "C:\Program Files (x86)\AutoIt3" /UserParams +>19:52:21 Starting AutoIt3Wrapper v.2.0.0.3 Environment(Language:0407 Keyboard:00000407 OS:WIN_VISTA/ CPU:X64 OS:X64) >Running AU3Check (1.54.14.0) from:C:\Program Files (x86)\AutoIt3 +>19:52:21 AU3Check ended.rc:0 >Running:(3.3.0.0):C:\Program Files (x86)\AutoIt3\autoit3_x64.exe "C:\Users\xxx\xxx.au3" +>19:52:21 AutoIT3.exe ended.rc:0 +>19:52:22 AutoIt3Wrapper Finished >Exit code: 0 Time: 1.628 Edited June 28, 2010 by CreeTar Link to comment Share on other sites More sharing options...
UEZ Posted June 28, 2010 Share Posted June 28, 2010 did not work unfortunately, must be something with my SciTE settings, my script always works If i remove #RequireAdmin it works, but how can that be? Script: #RequireAdmin #Region #AutoIt3Wrapper_Change2CUI=y #AutoIt3Wrapper_icon=i.ico #AutoIt3Wrapper_Compression=0 #AutoIt3Wrapper_Res_Comment=123 #AutoIt3Wrapper_Res_Description=345 #AutoIt3Wrapper_Res_Fileversion=0.30.0.21 #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y #AutoIt3Wrapper_Res_LegalCopyright=678 #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator #AutoIt3Wrapper_Res_Icon_Add=cnp.ico #AutoIt3Wrapper_Res_Icon_Add=r.ico #AutoIt3Wrapper_Res_Icon_Add=c.ico #EndRegion AutoItSetOption("MustDeclareVars", 1) ConsoleWrite("start Main()" & @CRLF) Exit Console >"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\xxx\xxx.au3" /autoit3dir "C:\Program Files (x86)\AutoIt3" /UserParams +>19:52:21 Starting AutoIt3Wrapper v.2.0.0.3 Environment(Language:0407 Keyboard:00000407 OS:WIN_VISTA/ CPU:X64 OS:X64) >Running AU3Check (1.54.14.0) from:C:\Program Files (x86)\AutoIt3 +>19:52:21 AU3Check ended.rc:0 >Running:(3.3.0.0):C:\Program Files (x86)\AutoIt3\autoit3_x64.exe "C:\Users\xxx\xxx.au3" +>19:52:21 AutoIT3.exe ended.rc:0 +>19:52:22 AutoIt3Wrapper Finished >Exit code: 0 Time: 1.628 #AutoIt3Wrapper_Change2CUI=y makes only sense when you compile and run it afterwards! Indeed the start Main() is not shown in the SciTE console. What you can try to do is to rename SciTEUser.properties (in your user profile). BR, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
CreeTar Posted June 28, 2010 Author Share Posted June 28, 2010 it seems the problem was that the script itself needs Admin status while the SciTE runs without Admin priviledge and therefore cannot catch the STDOUT or whatever ^^ it works if i start SciTE as Admin... I try if this fixed the main script and thansk for your help Link to comment Share on other sites More sharing options...
UEZ Posted June 28, 2010 Share Posted June 28, 2010 it seems the problem was that the script itself needs Admin status while the SciTE runs without Admin priviledge andtherefore cannot catch the STDOUT or whatever ^^ it works if i start SciTE as Admin...I try if this fixed the main script and thansk for your help Good point!BR,UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ 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