How to move the object in script?

Discuss issues and ideas you have to configuring displays with PowerVision
TimTian
Posts: 22
Joined: Wed Sep 25, 2013 10:26 pm

How to move the object in script?

Post by TimTian » Fri Oct 18, 2013 4:37 am

All,

I want to move objects in script. Per info from Forum, I should use the following two severial fuctions:

screenApiMove(screenObjectID(????), x, y);
processScreenApi();

Are they the right severial fuctions I should try?
How can I get the Object ID ?
TimTian
Posts: 22
Joined: Wed Sep 25, 2013 10:26 pm

Re: How to move the object in script?

Post by TimTian » Fri Oct 18, 2013 4:41 am

My device is HV 700 , Development Tools is PV2.6.
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: How to move the object in script?

Post by ksaenz » Fri Oct 18, 2013 2:07 pm

Hello TimTian,

You are correct, you can use screenApiMove() and processScreenApi() to move screen objects.

The object ID is ScreenObjectIDs. followed by the identifier. You can type that in the script and after you type the dot you will see a list itentifiers and you can choose from there.

Regards,
ksaenz
TimTian
Posts: 22
Joined: Wed Sep 25, 2013 10:26 pm

Re: How to move the object in script?

Post by TimTian » Mon Oct 21, 2013 4:44 am

Hi ksaenz,

Thanks for your help.