Although serial ports are disappearing, they can still be useful.
Here is a COMMs UDF. It provides an easy way to use serial ports without the restrictions and problems some methods have. USB to serial is ok, binary data is ok.
This UDF requires my comMG.dll which can be in either the script folder or the Windows folder by default, or in the path specified using the function _CommSetDllPath.
Note the following shortcomings:
the dll link below is 32 bit so it will not work with a 64 bi
@leomoon: This will help
#Include <Array.au3>
$aComPort = _GetComPortNames()
_ArrayDisplay($aComPort)
Func _GetComPortNames()
;funkey 2010, Nov 29th
Local $objWMIService = ObjGet("winmgmts:\\localhost\root\CIMV2")
Local $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_PnPEntity WHERE Name LIKE '%COM%'", "WQL", 48)
Local $sRet = ""
For $objItem In $colItems
$sRet &= $objItem.Name & @CR
Next
Return StringSplit(StringTrimRight($sRet, 1), @CR, 2)
EndFunc
@martin: Than