Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
22 Views

Sometimes the command AmtCallStatus s = computer.Remote.SendRemoteControl(0x11, 0x157, 0x0, 0x0, 0x0, 0x0); doesnt work

Sometimes the command AmtCallStatus s = computer.Remote.SendRemoteControl(0x11, 0x157, 0x0, 0x0, 0x0, 0x0); doesnt work.

somebody can help me?

This is the code that i use:

AmtSystem computer = Singleton.GetConnection(ip,login,senha);

form.GetLabel().Text = "Conectado";

if (computer == null || computer.State != AmtSystemObjState.Connected || computer.Remote == null)
{
form.GetLabel().Text = "Falha";
return;
}

if (computer.AmtRev == 1) { }

Thread.Sleep(100);

AmtCallStatus s = computer.Remote.SendRemoteControl(0x11, 0x157, 0x0, 0x0, 0x0, 0x0);


if (s == AmtCallStatus.SUCCESS)
{
form.GetLabel().Text = "Comando executado com sucesso";
}
else
{
form.GetLabel().Text = "Comando falhou "+s.ToString();
}

Thread.Sleep(12000);


computer.Disconnect();

0 Kudos
1 Reply
Highlighted
22 Views

Hi,

Could you give us more details on this? What is your AMT version? SDK version? What are you trying to do here? what is the error message you are getting while making this call?

Thanks,

Sree

0 Kudos