jefhal Posted September 6, 2005 Posted September 6, 2005 (edited) I created a program yesterday at home on beta 73 and it worked great. Now I have loaded beta 73 at work, but I'm getting an error in stdoutread: "unknown function name". Below is the error I get when I run the stdoutread help file with beta 73. I'm sure it's a versioning issue, but cannot get things straight...>"U:\bin\AutoIt3\SciTe\CompileAU3\CompileAU3.exe" /run /beta /ErrorStdOut /in "U:\bin\AutoIt3\beta\Examples\Helpfile\StdoutRead.au3" /autoit3dir "C:\Program Files\tools\AutoIt3\beta" /UserParams >Running AU3Check...U:\bin\AutoIt3\SciTe\Defs\Unstable\Au3Check\au3check.dat>AU3Check Ended. No Error(s).>Running: (3.1.1.0):C:\Program Files\tools\AutoIt3\autoit3.exe "U:\bin\AutoIt3\beta\Examples\Helpfile\StdoutRead.au3" U:\bin\AutoIt3\beta\Examples\Helpfile\StdoutRead.au3 (7) : ==> Unknown function name.: $line = StdoutRead($foo) $line = ^ ERROR>AutoIT3.exe ended.>Exit code: 0 Time: 1.144Here's my code that works at home:expandcollapse popup; This script will find the local MAC ID's ; If one or more ID's are for wireless NIC's they will be marked with the tag "wlan" ; The script will be edited to accept command line input. That will allow it to be added to Active Directory as a shell command. ; Written by Jeff Hall with help from Ite5000 and the AutoIT team 9/4/05 #include <array.au3> #include <Constants.au3> dim $onemac dim $x = 0, $y = 6, $i = 0, $j = 0 dim $rawIPC[100], $lineIPC[16], $onlyMacs[1] global $cmdOUT = '' dim $description = " ~ " ;;; Send the output of ipconfig /all to a variable $rawIPC $PID = Run("ipconfig /all", "","", $STDOUT_CHILD) ;MsgBox(1,"PID=",$PID) While NOT @ERROR $cmdOUT &= StdoutRead($PID) Wend ;MsgBox(1, "IPConfig Output:", $cmdOUT) $rawIPC = $cmdOUT ;MsgBox(1,"",$rawIPC) ;;; Go through each line to find any MAC ID's and determine if the ID is for a wireless nic $splitIPC = StringSplit($rawIPC,@CRLF) While $x < $splitIPC[0] if StringInStr($splitIPC[$x],"Phys") <> "0" Then $onemac = StringStripCR(StringStripWS(StringLeft(StringTrimLeft($splitIPC[$x],StringInStr($splitIPC[$x],":")),18),8)) if StringInStr($splitIPC[$x-3],"wireless",0) then $onemac = $onemac & " WLAN" ;MsgBox(1,"MAC ID is: ",$onemac) ReDim $onlyMacs[$i + 1] _ArrayAdd($onlyMacs,$onemac) ;_ArrayDisplay($onlyMacs,"Now onlymacs is:") $i = $i + 1 EndIf $x = $x + 1 WEnd ;;; Tidy up the results and send them to the clipboard with formatting _ArraySort($onlyMacs,1) _ArrayPop($onlyMacs) if $i > 1 and StringInStr($onlyMacs[1],"WLAN") then _ArraySwap($onlyMacs[0],$onlyMacs[1]) _ArrayDisplay($onlyMacs,"Here are all of the MacIDs:") While $j < $i $description = $description & $onlyMacs[$j] & " ~ " $j = $j + 1 WEnd MsgBox(1,"Description =: ", $description) ClipPut($description) Exit Edited September 6, 2005 by jefhal ...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format
GaryFrost Posted September 6, 2005 Posted September 6, 2005 I created a program yesterday at home on beta 73, and have now loaded 73 at work, but I'm getting an error in stdoutread: "unknown function name". Below is the error I get when I run the stdoutread help file with beta 73. I'm sure it's a versioning issue, but cannot get things straight...<{POST_SNAPBACK}>check what your really running look at your quote: Running: (3.1.1.0): SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Developers Jos Posted September 6, 2005 Developers Posted September 6, 2005 CompileAU3.exe will look in the registry for the regular Autoit directory when it cannot find Autoit3.exe in the directory specified:/autoit3dir "C:\Program Files\tools\AutoIt3\beta"Probably didn't install the Beta version or you selected a alternative target directory. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
jefhal Posted September 7, 2005 Author Posted September 7, 2005 check what your really running look at your quote: Running: (3.1.1.0):<{POST_SNAPBACK}>Thanks guys. It took several re-installs, but I finally hit the right order to reconnect. I changed the registry as instructed, but this did not take right away. I think one of the re-installs did the job... ...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format
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