blaise Posted June 18, 2006 Share Posted June 18, 2006 Hi,I am new to Autoit and I find it great :-)I am trying to create a small support system using VNC repeater on a Linux server, UltraVNC SC on the client side, UltraVNC viewer/putty on the support side (where I am) and I also want to add voice support if possible (Using Asterisk on a server).I have find an OCX control at http://www.geocities.com/babarnazmi/ that allow me to make IAX phones (IAX is a protocol specific to Asterisk for now).The problem is that when I try to run this code, I obtain an error message :#include <GUIConstants.au3>$Form1 = GUICreate("AForm1", 600, 388, 347, 184)$Button1 = GUICtrlCreateButton("(Not allowed)", 8, 8, 40, 40, $BS_ICON)GUICtrlSetImage($Button1, "C:\Documents and Settings\Blaise Drayer\Bureau\repstart.ico")$Button2 = GUICtrlCreateButton("(Not allowed)", 56, 8, 40, 40, $BS_ICON)GUICtrlSetImage($Button2, "C:\Documents and Settings\Blaise Drayer\Bureau\vncstart.ico")$Button3 = GUICtrlCreateButton("(Not allowed)", 248, 8, 40, 40, $BS_ICON)GUICtrlSetImage($Button3, "C:\Documents and Settings\Blaise Drayer\Bureau\repstop.ico")$Button4 = GUICtrlCreateButton("(Not allowed)", 200, 8, 40, 40, $BS_ICON)GUICtrlSetImage($Button4, "C:\Documents and Settings\Blaise Drayer\Bureau\vncstop.ico")$Button5 = GUICtrlCreateButton("(Not allowed)", 104, 8, 41, 41, $BS_ICON)GUICtrlSetImage($Button5, "C:\Documents and Settings\Blaise Drayer\Bureau\files.ico")$Button6 = GUICtrlCreateButton("(Not allowed)", 152, 8, 41, 41, $BS_ICON)GUICtrlSetImage($Button6, "C:\Documents and Settings\Blaise Drayer\Bureau\chat.ico")$IaxClientOcx1 = ObjCreate("IAXCLIENTOCX.IaxClientOcxCtrl.1")$Button7 = GUICtrlCreateButton("AButton7", 88, 72, 33, 33, 0)GUISetState(@SW_SHOW)While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button7 $IaxClientOcx1.initIAX() $IaxClientOcx1.UserID("blaise") $IaxClientOcx1.password("1234") $IaxClientOcx1.PhoneNumber("demo") $IaxClientOcx1.HostName("pbx.intranet.nimag.net") $IaxClientOcx1.Dial ;;;;;;; EndSelectWEnd>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "C:\Documents and Settings\XXXXXXXXXXXXXXX\Bureau\softphone.au3" /autoit3dir "C:\Program Files\AutoIt3\beta" /UserParams >Running AU3Check params: from:C:\Program Files\AutoIt3\SciTE\au3check\+>AU3Check ended.rc:0>Running:(3.1.1.126):C:\Program Files\AutoIt3\beta\autoit3.exe "C:\Documents and Settings\Blaise Drayer\Bureau\softphone.au3" C:\Documents and Settings\XXXXXXXXXXXX\Bureau\softphone.au3 (24) : ==> The requested action with this object has failed.: $IaxClientOcx1.initIAX() $IaxClientOcx1.initIAX()^ ERROR+>AutoIT3.exe ended.rc:0>Exit code: 0 Time: 3.954I am not a good developer and I don't understan the error I have done, ...Somebody can help me?I would be happy to share all my work with everybody when it will be finished :-) Link to comment Share on other sites More sharing options...
nfwu Posted June 18, 2006 Share Posted June 18, 2006 The error means that $IaxClientOcx1.initIAX() did not work, or in other words, the Client failed to initilize. #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
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