elawady Posted February 21, 2010 Share Posted February 21, 2010 hi all i am making a security project and I am using mobile when any error is happen i use netcomm.ocx in this post this post$sNumberToDial = "5551235" Dial($sNumberToDial) Exit Func Dial($pNum, $time2wait = 5000) dim $FromModem = "" $DialString = "ATDT" & $pNum & ";" & @CR $com = ObjCreate ("NETCommOCX.NETComm") With $com .CommPort = 6 .PortOpen = True .Settings = "9600,N,8,1" .InBufferCount = 0 .Output = $DialString EndWith $com.Output = "ATH" & @CR $com.PortOpen = False $com = 0 EndFunc;==>Dialwhen i am playing the script it's call the number normally but when playing again just the port is open and the call not complete i don't know what's the problem in this code i want in this function calling only Link to comment Share on other sites More sharing options...
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 account
Already have an account? Sign in here.Sign In Now