Hi everyone,
I am using martin's UDF to query my COM ports. Here is my code:
#include <CommMG.au3>
#include <MsgBoxConstants.au3>
Global $portlist = _CommListPorts(0)
For $i = 0 To $portlist[0]
MsgBox( $MB_SYSTEMMODAL, "", $portlist[$i])
Next
I've already put CommMG.au3 and commMG.dll in the same directory. When I use Tools => Go in Autoit SciTE-Lite everything is fine. The program print out all my COM ports. But when I compile this program to an EXE file and execute it.