c.haslam Posted October 15, 2013 Posted October 15, 2013 Consider script foo.au3: Doit() Func DoIt() RunWait('"'&@AutoItExe&'" "'&@ScriptDir&'bar.au3"') EndFunc and script bar.au3: DoIt() Func DoIt() some lines of code here EndFunc Scripts like this didn't run properly. When I changed DoIt in bar.au3 to DoIt2, the scripts ran correctly. I think this was the only change I made. So was bar.au3 seeing foo's DoIt function rather than its own? Spoiler CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard
JohnOne Posted October 15, 2013 Posted October 15, 2013 So was bar.au3 seeing foo's DoIt function rather than its own? No. Something else was wrong. Bar is a child of foo, nothing more. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
gruntydatsun Posted October 15, 2013 Posted October 15, 2013 Just tested it and it works fine on the latest stable autoit. ; FOO.au3 Doit() Func DoIt() msgbox(1,"DOIT","This is doit run from foo.au3: next running BAR.au3") RunWait('"'&@AutoItExe&'" "'&@ScriptDir&'\bar.au3"') EndFunc ; BAR.au3 DoIt() Func DoIt() msgbox(1,"DOIT","This is doit run from bar.au3") EndFunc
c.haslam Posted October 15, 2013 Author Posted October 15, 2013 Thanks Spoiler CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard
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