BrettF Posted April 6, 2008 Share Posted April 6, 2008 I did keep it on topic. Don't call me a kiddy. I'm not a software cracker.Check ur pms. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
BrettF Posted April 6, 2008 Share Posted April 6, 2008 Haha, you are a kiddie. I'm childish? Have you ever seen yourself post?And your's too. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Mixam Posted April 6, 2008 Author Share Posted April 6, 2008 You could put it in the script itself.You mean have a seperate script for the msgbox and then execute that script from in my main script when i need the msgbox?As to /AU3ExecuteLine what the heck is that? Link to comment Share on other sites More sharing options...
JustinReno Posted April 6, 2008 Share Posted April 6, 2008 Its a command like parameter for AutoIt. To generate a message and still keep the script unpaused, and, keep it there until the user says close, use this: Run(@ScriptFullPath & ' /AutoIt3ExecuteLine "MsgBox(0, ''Hello World!'', ''Hi!'')"') Link to comment Share on other sites More sharing options...
BrettF Posted April 6, 2008 Share Posted April 6, 2008 Its a command like parameter for AutoIt. To generate a message and still keep the script unpaused, and, keep it there until the user says close, use this:Run(@ScriptFullPath & ' /AutoIt3ExecuteLine "MsgBox(0, ''Hello World!'', ''Hi!'')"')You can use the AutoIt exe, or your own compiled ones as well. Check here for more explanation on the topic here: http://dundats.mvps.org/AutoIt/AutoIt3_Web...htm#CommandLine Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Mixam Posted April 6, 2008 Author Share Posted April 6, 2008 I just had to change it a bit to work: Run(@AutoItExe & ' /AutoIt3ExecuteLine "MsgBox(0, ''Hello World!'', ''Hi!'')"') Should it have worked with the fullscriptpath one? Because it did not for me, but searching for it in the helpfile had the example using @AutoItExe so I tried that and it worked. Link to comment Share on other sites More sharing options...
Swift Posted April 6, 2008 Share Posted April 6, 2008 If It's compiled then the @ScriptFullPath would work! Link to comment Share on other sites More sharing options...
Mixam Posted April 6, 2008 Author Share Posted April 6, 2008 (edited) If It's compiled then the @ScriptFullPath would work!no i just made a new script and pasted that in and i ran the script. It didn't work so i looked at the help file and used what was in there. hmm maybe i needed to include something for it to work, I'm not sure.I'm still confused however as to which way i use if i'm going to compile the script so it will work for people who don't have autoit installed.Edit: so if i had compiled it it should have worked? That doesn't help me much because i want it to be able to run whether its compiled or not since i prefer to run my scripts uncompiled (heard from somewhere they run better that way) but mostly i run them uncompiled because I'm always changing them and fixing stuff.This also brings up another question i have. Is there any way to run two loops simultaneously in one script? Or to do that do i have to run two scripts? Edited April 6, 2008 by Mixam Link to comment Share on other sites More sharing options...
BrettF Posted April 6, 2008 Share Posted April 6, 2008 Another method, useful when you are testing is like follows: If @Compiled Then Run(@AutoItExe & ' /AutoIt3ExecuteLine "MsgBox(0, ''Hello World!'', ''Hi!'')"') Else Run(@ScriptFullPath & ' /AutoIt3ExecuteLine "MsgBox(0, ''Hello World!'', ''Hi!'')"') EndIf Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Mixam Posted April 6, 2008 Author Share Posted April 6, 2008 I just used this method and it works uncompiled, then i compiled it and it still works: Run(@AutoItExe & ' /AutoIt3ExecuteLine "MsgBox(0, ''Hello World!'', ''Hi!'')"') However is that only because I have autoit installed? Also please see my edit in last post. Thanks for all your help guys. Link to comment Share on other sites More sharing options...
BrettF Posted April 6, 2008 Share Posted April 6, 2008 I just used this method and it works uncompiled, then i compiled it and it still works: Run(@AutoItExe & ' /AutoIt3ExecuteLine "MsgBox(0, ''Hello World!'', ''Hi!'')"')However is that only because I have autoit installed?Also please see my edit in last post.Thanks for all your help guys.Yes. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
weaponx Posted April 6, 2008 Share Posted April 6, 2008 I just used this method and it works uncompiled, then i compiled it and it still works: Run(@AutoItExe & ' /AutoIt3ExecuteLine "MsgBox(0, ''Hello World!'', ''Hi!'')"')However is that only because I have autoit installed?Also please see my edit in last post.Thanks for all your help guys.No. Once you compile your script, any code called with /AutoIt3ExecuteLine will work anywhere. Link to comment Share on other sites More sharing options...
JustinReno Posted April 6, 2008 Share Posted April 6, 2008 In an AutoIt executable, the whole interpreter is put in the compiled script. So, you could use the CL /AU3ExecuteScriptLine Link to comment Share on other sites More sharing options...
Mixam Posted April 6, 2008 Author Share Posted April 6, 2008 Ok so I am just going to leave it the way i have it then and hope it works So is there a way to have two simultaneous loops running in one script, or will I need to put one loop in another script and then run that script from in the first script? Link to comment Share on other sites More sharing options...
ivan Posted April 6, 2008 Share Posted April 6, 2008 (edited) use SplashTextOn ( "title", "text" [, w [, h [, x pos [, y pos [, opt [, "fontname" [, fontsz [, fontwt ]]]]]]]] ) that way your script will continue executing until splashoff function is called. no need for a second gui. IVan Edited April 6, 2008 by ivan Think out of the boxGrabber: Yet another WinInfo tool_CSVLib (still alpha)Dynamic html in au3 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