Valuater Posted April 18, 2010 Share Posted April 18, 2010 (edited) Ok, I searched and have exhauseted myself. I can't get any of these to work when compiled in Win 7. I am on a laptop to! #region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_UseUpx=n #endregion ;**** Directives created by AutoIt3Wrapper_GUI **** $Info = "Here is some text" Run(@AutoItExe & ' /AutoIt3ExecuteLine "MsgBox(0, ''Note!'', ''' & $Info & ''')"') Run(@AutoItExe & ' /AutoIt3ExecuteLine "MsgBox(0, ''Hello World!'', ''Hi!'')"') ; another efort $File = 'MsgBox(0, "Note!", "' & $Info & '" )' FileWrite(@ScriptDir & "\MsgBox.au3", $File) $Program = FileGetShortName(@AutoItExe & ' /AutoIt3ExecuteScript ' & @ScriptDir & "\MsgBox.au3") Run($Program) Sleep(3000) FileDelete(@ScriptDir & "\MsgBox.au3") Thx 8) Edited April 18, 2010 by Valuater Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted April 18, 2010 Share Posted April 18, 2010 (edited) In which way doesn't it work? I tried AutoIt 3.3.6.0 (both x64 and x86) and only the last msgbox fails, and that's due to bad quotes. #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_UseUpx=n #AutoIt3Wrapper_UseX64=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** $Info = "Here is some text" Run(@AutoItExe & ' /AutoIt3ExecuteLine "MsgBox(0, ''Note!'', ''' & $Info & ''')"') Run(@AutoItExe & ' /AutoIt3ExecuteLine "MsgBox(0, ''Hello World!'', ''Hi!'')"') ; another efort $File = 'MsgBox(0, "Note!", "' & $Info & '" )' FileDelete(@ScriptDir & "\MsgBox.au3") FileWrite(@ScriptDir & "\MsgBox.au3", $File) $Program = FileGetShortName(@AutoItExe & ' /AutoIt3ExecuteScript "' & @ScriptDir & '\MsgBox.au3"') ConsoleWrite($Program & @CRLF) Run($Program) All works for me now. Edit: I'm using Win7 Ultimate if that matters. Edited April 18, 2010 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Valuater Posted April 18, 2010 Author Share Posted April 18, 2010 Dowloading the latest Autoit version.. thx 8) Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted April 18, 2010 Share Posted April 18, 2010 Could it really be that? /AutoIt3ExecuteLine has been around for years hasn't it? Anyway, if I may ask, what version where you using before, and what error did you get? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Valuater Posted April 18, 2010 Author Share Posted April 18, 2010 Ok, downloaded 3.3.6.1 and downloaded SciTe.. My laptop is 32bit Win 7 #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_UseUpx=n #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** $Info = "Here is some text" Run(@AutoItExe & ' /AutoIt3ExecuteLine "MsgBox(0, ''Note!'', ''' & $Info & ''')"') Run(@AutoItExe & ' /AutoIt3ExecuteLine "MsgBox(0, ''Hello World!'', ''Hi!'')"') MsgBox(0,0,@AutoItVersion) ONLY... The last message box works when compiled otherwise it works through Scite 8) Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted April 18, 2010 Share Posted April 18, 2010 ONLY... The last message box works when compiled otherwise it works through SciteI have no idea what that meant But if you're happy I'm happy .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Valuater Posted April 18, 2010 Author Share Posted April 18, 2010 lol... When I run that script in Scite I get 3 message boxes When compiled I get 1 message box with the Autoit version. 8) Link to comment Share on other sites More sharing options...
shEiD Posted April 18, 2010 Share Posted April 18, 2010 Hi, I get all 3 message boxes both ways: through scite and compiled. Win7 ultimate, autoit 3.3.6.0 here. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted April 18, 2010 Share Posted April 18, 2010 Lol, you gotta speak more clearly So I updated to 3.3.6.1 and I still get all three msgbox! Try to add some error checking: #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_UseUpx=n #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** $Info = "Here is some text" $iTemp = Run(@AutoItExe & ' /AutoIt3ExecuteLine "MsgBox(0, ''Note!'', ''' & $Info & ''')"') MsgBox(0, @error, $iTemp) What happens? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Valuater Posted April 18, 2010 Author Share Posted April 18, 2010 OK! I shut down and re-booted and now it seems to be working... No idea why it didn't before.. 8) Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted April 18, 2010 Share Posted April 18, 2010 So that means I can be happy now? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
shEiD Posted April 18, 2010 Share Posted April 18, 2010 (edited) Win7 maybe?I had really weird glitch, DisplayArray() was not "redrawing" and was always dissapering on me: forum topicReinstalled win7, same win, same drivers, same soft... and its ok now... :-/ Edited April 18, 2010 by shEiD Link to comment Share on other sites More sharing options...
Valuater Posted April 18, 2010 Author Share Posted April 18, 2010 It's happening again.. I got some other weird glitches in win7 too.... Damn, I thought they had this one right 8) Link to comment Share on other sites More sharing options...
trancexx Posted April 18, 2010 Share Posted April 18, 2010 (edited) It's happening again.. I got some other weird glitches in win7 too.... Damn, I thought they had this one right 8) Put additional quotes around @AutoItExe. $Info = "Here is some text" Run('"' & @AutoItExe & '" /AutoIt3ExecuteLine "MsgBox(0, ''Note!'', ''' & $Info & ''')"') And try reinstalling the system. Edited April 18, 2010 by trancexx ♡♡♡ . eMyvnE 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