sqa Posted April 3, 2012 Posted April 3, 2012 Hi, is there a possibility to check for a free serial port? If yeas, then how can I do it? Thanks a lot
stormbreaker Posted April 3, 2012 Posted April 3, 2012 Use the following code: $RESULT = _WinAPI_CreateFile(".COM10", 2, 2) If $RESULT = 0 then msgbox(0, "", "Port 10 is not free") else msgbox(0, "", "Port 10 is free") EndIf ---------------------------------------- :bye: Hey there, was I helpful? ---------------------------------------- My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1
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