[tab][tab]IF WriteFile(lnport, @lccmnd, LEN(lccmnd), @lnwritten, 0) # 0
[tab][tab][tab][color green]* Flush the buffer to assure the data was written[color blue]
[tab][tab][tab]= FlushFileBuffers(lnport)
[tab][tab][tab][color green]* Wait to make sure it's been dialed[color blue]
[tab][tab][tab]lnstop = SECONDS() + WAITSECONDS
[tab][tab][tab]DO WHILE SECONDS() < lnstop
[tab][tab][tab][tab]DoEvents
[tab][tab][tab]ENDDO
[tab][tab][tab][color green]* Hang up command[color blue]
[tab][tab][tab]lccmnd = 'ATH0' + CF_TEXT
[tab][tab][tab]= WriteFile(lnport, @lccmnd, LEN(lccmnd), @lnwritten, 0)
[tab][tab][tab]= FlushFileBuffers(lnport)
[tab][tab][tab][color green]* Close up[color blue]
[tab][tab][tab]= CloseHandle(lnport)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.