transsecscriptingmethodlist

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
transsecscriptingmethodlist [2024/11/17 14:30]
wikiadmin [GemHandler]
transsecscriptingmethodlist [2024/11/17 14:42] (current)
wikiadmin
Line 7: Line 7:
 Be sure to declare the classes used from the API so you can reference these by name in the code. Here are some examples of classes you may want to use: Be sure to declare the classes used from the API so you can reference these by name in the code. Here are some examples of classes you may want to use:
  
-<code javascript>var TransSecsController = Java.type('com.ergotech.transsecs.secs.TransSecsController');+<code javascript> 
 +var DataSource = Java.type('com.ergotech.vib.servers.DataSource'); 
 +var LongValueObject = Java.type('com.ergotech.vib.valueobjects.LongValueObject'); 
 +var TransSecsController = Java.type('com.ergotech.transsecs.secs.TransSecsController');
 var SOFTREV =  Java.type('com.ergotech.secs.SOFTREV'); var SOFTREV =  Java.type('com.ergotech.secs.SOFTREV');
 </code> </code>
Line 55: Line 58:
 eventServer.setIntValue(1); //trigger the CEID.STARTED event eventServer.setIntValue(1); //trigger the CEID.STARTED event
  
-//directly set values to vids+//directly set values to vids using the gemHandler
 gemHandler.setValue("OnlineOfflineState",new LongValueObject(1));//Go ONLINE  gemHandler.setValue("OnlineOfflineState",new LongValueObject(1));//Go ONLINE 
 gemHandler.setValue("LocalRemoteState",new LongValueObject(1)); //Go REMOTE, now the tool should respond to host messages gemHandler.setValue("LocalRemoteState",new LongValueObject(1)); //Go REMOTE, now the tool should respond to host messages
 +
 +//access vid values
 +controlState = gemHandler.getServerForName("VID.ControlState").getIntValue();
 +
 </code> </code>
  
  
  
  • transsecscriptingmethodlist.1731875451.txt.gz
  • Last modified: 2024/11/17 14:30
  • by wikiadmin