Copy the following lines into M99998.txt:
- Code: Select all
double dbl;
if (Double.TryParse(exec.Readkey("WebCamera", "OffsetX", "0.0"), out dbl))
{
AS3.Setfield(dbl, 2656);
AS3.Validatefield(2656);
}
if (Double.TryParse(exec.Readkey("WebCamera", "OffsetY", "0.0"), out dbl))
{
AS3.Setfield(dbl, 2657);
AS3.Validatefield(2657);
}
if (Double.TryParse(exec.Readkey("WebCamera", "OffsetZ", "0.0"), out dbl))
{
AS3.Setfield(dbl, 2658);
AS3.Validatefield(2658);
}
Copy the following lines into M99999.txt:
- Code: Select all
exec.Writekey("WebCamera", "OffsetX", AS3.Getfielddouble(2656).ToString("F6"));
exec.Writekey("WebCamera", "OffsetY", AS3.Getfielddouble(2657).ToString("F6"));
exec.Writekey("WebCamera", "OffsetZ", AS3.Getfielddouble(2658).ToString("F6"));
(I removed your other post, which was the exact same as this.)