darzanmihai Posted October 17, 2010 Share Posted October 17, 2010 The function _AutoItObject_Class() from AutoItObject.au3 does not return a Object. Why is that? I do not like stupid and idiot people that write idiot things...If you are one, do not write. Link to comment Share on other sites More sharing options...
jaberwacky Posted October 17, 2010 Share Posted October 17, 2010 Can you post an example of how you are using the function, please? Besides didn't you ask this question earlier? I think the problem is that you're not posting your code! Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Developers Jos Posted October 17, 2010 Developers Share Posted October 17, 2010 The function _AutoItObject_Class() from AutoItObject.au3 does not return a Object.Why is that?Which part of my post in your previous thread was difficult for you to understand? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
DAOWAce Posted October 17, 2010 Share Posted October 17, 2010 (edited) What the fuck is this forum for if not for asking for help when you need help?ikr. Edited October 17, 2010 by DAOWAce [size="1"]I don't mean to sound rude, but I can't help the way people interpret my words.[/size] Link to comment Share on other sites More sharing options...
darzanmihai Posted October 17, 2010 Author Share Posted October 17, 2010 Can you post an example of how you are using the function, please? Besides didn't you ask this question earlier? I think the problem is that you're not posting your code! The code it does not work is: Func _ComplexCreator($Re = 0, $Im = -1) Local $oComplexObject = _AutoItObject_Class() $oComplexObject.Create() $oComplexObject.AddProperty("Re", $ELSCOPE_PUBLIC, $Re) $oComplexObject.AddProperty("Im", $ELSCOPE_PUBLIC, $Im) $oComplexObject.AddMethod("CAbs", "_CAbs") $oComplexObject.AddMethod("CAbsSqr", "_CAbsSqr") $oComplexObject.AddMethod("CArg", "_CArg") $oComplexObject.AddMethod("CConj", "_CConj") Return $oComplexObject.Object EndFunc ;==> _ComplexCreator $oComplexObject.Create() errors out because $oComplexObject is not an object _AutoItObject_Class(): Func _AutoItObject_Class() Local $oObj = _AutoItObject_Create() _AutoItObject_AddMethod($oObj, "Create", "__Au3Obj_Object_Create") _AutoItObject_AddMethod($oObj, "AddMethod", "__Au3Obj_Object_AddMethod") _AutoItObject_AddMethod($oObj, "AddProperty", "__Au3Obj_Object_AddProperty") _AutoItObject_AddMethod($oObj, "AddDestructor", "__Au3Obj_Object_AddDestructor") _AutoItObject_AddMethod($oObj, "AddEnum", "__Au3Obj_Object_AddEnum") _AutoItObject_AddMethod($oObj, "RemoveMember", "__Au3Obj_Object_RemoveMember") _AutoItObject_AddProperty($oObj, "Object", $ELSCOPE_READONLY) Return $oObj EndFunc ;==>_AutoItObject_Class The function _AutoItObject_Create() should return an object but it doesn't the _AutoItObject_Create() function: Func _AutoItObject_Create($oParent = 0) ; Author: Prog@ndy Local $aResult Switch IsObj($oParent) Case True $aResult = DllCall($ghAutoItObjectDLL, "idispatch", "CloneAutoItObject", 'idispatch', $oParent) Case Else $aResult = DllCall($ghAutoItObjectDLL, "idispatch", "CreateAutoItObject") EndSwitch If @error Then Return SetError(1, @error, 0) Return $aResult[0] EndFunc ;==>_AutoItObject_Create I do not like stupid and idiot people that write idiot things...If you are one, do not write. Link to comment Share on other sites More sharing options...
trancexx Posted October 17, 2010 Share Posted October 17, 2010 You need to call _AutoItObject_Startup() before using those functions. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Developers Jos Posted October 17, 2010 Developers Share Posted October 17, 2010 @darzanmihai, I do not like to be ignored.... You will be unable to post in the next 24 hours to think about it. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
MvGulik Posted October 17, 2010 Share Posted October 17, 2010 If I'm MvGulik I would tell you to go fuck yourself.No need. Besides I don'd like to and up like darzanmihai "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... 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