Jump to content
Sign in to follow this  
Appie78

COM question [Solved]

Recommended Posts

Appie78

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")

EndWith

The 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 by Pokerface

Electron microscopes rule!!!

Share this post


Link to post
Share on other sites
Appie78

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!!!

Share this post


Link to post
Share on other sites
PsaltyDS

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

Share this post


Link to post
Share on other sites
Appie78

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!!!

Share this post


Link to post
Share on other sites

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

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×