Jump to content

Win 7 and @Autoitexe problem


Recommended Posts

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 by Valuater

NEWHeader1.png

Link to comment
Share on other sites

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 by AdmiralAlkex
Link to comment
Share on other sites

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? :(

Link to comment
Share on other sites

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)

NEWHeader1.png

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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 by trancexx

♡♡♡

.

eMyvnE

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...