Quote from Kurt Nunn on September 17, 2022, 9:30 pmHi, I have searched the forums for some time but am at a loss to figure this out.
I am building an antenna rotator remote. It requires a compass needle superimposed on a round map. I was hoping to use the line object and adjust in code the X1, X2, Y1, Y2 properties, but note that I can only have 'move object' and 'size object' in code. Is there a hidden way to modify the start and end position in run time so I can create a moving needle with the line object?
I have tried the plugin asPicture3.0, but have struggled to get the transparency on top of my map correct. Using the line object on top of the picture object seems the way to go. If the answer is no, I will implement a routine which shows and hides two different lines and carefully calculate their start points ('move object') and where it ends using 'size object', but I would hope to avoid this.
Sorry for the first post ramble.
Kind regards, Kurt
Hi, I have searched the forums for some time but am at a loss to figure this out.
I am building an antenna rotator remote. It requires a compass needle superimposed on a round map. I was hoping to use the line object and adjust in code the X1, X2, Y1, Y2 properties, but note that I can only have 'move object' and 'size object' in code. Is there a hidden way to modify the start and end position in run time so I can create a moving needle with the line object?
I have tried the plugin asPicture3.0, but have struggled to get the transparency on top of my map correct. Using the line object on top of the picture object seems the way to go. If the answer is no, I will implement a routine which shows and hides two different lines and carefully calculate their start points ('move object') and where it ends using 'size object', but I would hope to avoid this.
Sorry for the first post ramble.
Kind regards, Kurt

Quote from Vadim on September 18, 2022, 5:33 pm@kurt-nunn
So far, I can't understand what you're talking about. Please describe in more detail what you want to get as a result. And also what exactly were you trying to do.
So far, I can't understand what you're talking about. Please describe in more detail what you want to get as a result. And also what exactly were you trying to do.

Quote from emo on September 18, 2022, 6:39 pmHi @kurt-nunn , try hpwimage (free plugin) , the hpwImagedrawline function.
A quick basic example..
Hi @kurt-nunn , try hpwimage (free plugin) , the hpwImagedrawline function.
A quick basic example..
Uploaded files:
Quote from Gaev on September 19, 2022, 4:10 am@kurt-nunn
I was hoping to use the line object and adjust in code the X1, X2, Y1, Y2 properties, but note that I can only have 'move object' and 'size object' in code.
Think of the Line object as "a transparent rectangle with the line running along the diagonal of the rectangle"
So, you set ...
a) the X1 and Y1 end of your line using the MoveObject command
b) the X2 and Y2 end of your line using the SizeObject command... e.g. if you want the line to be from 75,100 to 200,300 ...
MoveObject "Line1" "75" "200" SizeObject "Line1" "200-75" "300-100"Note: If you are not getting the results you expected, use GetObjectInfo command with InfoType(s) of Left, Top, Width and Height
I was hoping to use the line object and adjust in code the X1, X2, Y1, Y2 properties, but note that I can only have 'move object' and 'size object' in code.
Think of the Line object as "a transparent rectangle with the line running along the diagonal of the rectangle"
So, you set ...
a) the X1 and Y1 end of your line using the MoveObject command
b) the X2 and Y2 end of your line using the SizeObject command
... e.g. if you want the line to be from 75,100 to 200,300 ...
MoveObject "Line1" "75" "200" SizeObject "Line1" "200-75" "300-100"
Note: If you are not getting the results you expected, use GetObjectInfo command with InfoType(s) of Left, Top, Width and Height