Appie78 Posted April 20, 2009 Share Posted April 20, 2009 (edited) Hi all,I'm trying to get this figured out! $MPS = ObjCreate("MPS.Stage") If Not IsObj($MPS) Then MsgBox(0,"Debug","Objection Creation Fail") Exit EndIf With $MPS .SetStagePosX = ("0", "38,454", "1") .SetStagePosY = ("0", "5", "1") EndWithThe error I get is: ERROR: unbalanced paranthesis expression. .SetMag = ("0",So the problem I've got is that I've got multiple variables, because with only one variable there's no problem.Does anybody know how to this the correct way?Thanks Edited April 20, 2009 by Pokerface Electron microscopes rule!!! Link to comment Share on other sites More sharing options...
Appie78 Posted April 20, 2009 Author Share Posted April 20, 2009 I'm sorry was a bit to quick with posting this Func Button4() Sleep(100) MsgBox(0,"Test", "4") $MPS = ObjCreate("MPS.Stage") If Not IsObj($MPS) Then MsgBox(0,"Debug","Objection Creation Fail") Exit EndIf With $MPS .SetStagePosX("0", "38,454", "1") .SetStagePosY("0", "5", "1") EndWith EndFunc Took away the = between .setstageposx and y. My bad Electron microscopes rule!!! Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 20, 2009 Share Posted April 20, 2009 I'm sorry was a bit to quick with posting this Func Button4() Sleep(100) MsgBox(0,"Test", "4") $MPS = ObjCreate("MPS.Stage") If Not IsObj($MPS) Then MsgBox(0,"Debug","Objection Creation Fail") Exit EndIf With $MPS .SetStagePosX("0", "38,454", "1") .SetStagePosY("0", "5", "1") EndWith EndFunc Took away the = between .setstageposx and y. My bad So is the failure fixed or still the same? Nowhere here do you use the .SetMag() method at all. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Appie78 Posted April 21, 2009 Author Share Posted April 21, 2009 Sorry about that but I posted the wrong code with the error I got. But all the functions are about the same and I got more errors just took the top error not looking at the post. Everything looks OK but still need to test it. Greets, Pokerface Electron microscopes rule!!! 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