Nebula
2012-02-09 19:39:08
In my script I would like to do something like this:
Obviously I can't do this because SPS_GetMyPos returns a TPoint, not x. How could I split the TPoint into its x and y values so that I can use them in my script? Thanks.
Begin
SPS_GetMyPos;
if (x>1200) then
begin
WalkThisPath;
end else
if (x<1166) then
begin
WalkThisPath;
end else
begin
WalkThisPath;
end;
end; Obviously I can't do this because SPS_GetMyPos returns a TPoint, not x. How could I split the TPoint into its x and y values so that I can use them in my script? Thanks.