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
blocks:app-note:controlling-a-pc [2023-01-11 13:57]
mattias [Launching Chrome as a Display Spot]
blocks:app-note:controlling-a-pc [2023-12-15 09:27] (current)
mattias [Turning Power On/Off]
Line 21: Line 21:
  
   - [[https://adoptopenjdk.net|Download]] and install Java (version 1.8 or later required).   - [[https://adoptopenjdk.net|Download]] and install Java (version 1.8 or later required).
-  - We have prepared a PIXILAB-blocks-root folder containing everything you need to run the examples. {{:blocks:app-note:controlling-a-pc:pc-control.zip|Download this ZIP file and unpack it.}} If you don't know how to do this, read the instructions in the [[https://int.pixilab.se/docs/blocks/app-note/start|general setup section.]]+  - We have prepared a PIXILAB-blocks-root folder containing everything you need to run the examples. {{:blocks:app-note:controlling-a-pc:pc-control.zip|Download this ZIP file and unpack it.}} If you don't know how to do this, read the instructions in the [[blocks:app-note:start|general setup section]].
   - Inside the UIROBOT folder, launch the file named "uirobot.bat" by double-clicking it.   - Inside the UIROBOT folder, launch the file named "uirobot.bat" by double-clicking it.
  
Line 57: Line 57:
 Finally, adjust the IP address shown at the end o the //programArgs// variable to match the IP address of your Blocks server, as well as the port number (using the port number shown in the Blocks editor URL bar).  Finally, adjust the IP address shown at the end o the //programArgs// variable to match the IP address of your Blocks server, as well as the port number (using the port number shown in the Blocks editor URL bar). 
  
-{{:blocks:app-note:controlling-a-pc:uirobotchrometask.png|}}+{{:blocks:app-note:controlling-a-pc:uirobotchrometask.png?nolink|}}
  
 The programArgs variable specifies the arguments passed to Chrome, which in this case will launch it in full screen mode, acting as a Display Spot for Blocks. Run the Start task now to launch Chrome in this way. The first time you launch Chrome you likely need to add or assign it to a display spot: The programArgs variable specifies the arguments passed to Chrome, which in this case will launch it in full screen mode, acting as a Display Spot for Blocks. Run the Start task now to launch Chrome in this way. The first time you launch Chrome you likely need to add or assign it to a display spot:
Line 104: Line 104:
  
 ==== Turning Power On/Off ==== ==== Turning Power On/Off ====
 +
 +:!: Please note that later versions of UIrobot driver has a built in power property that handles power on/off. so the method used in this application note is somewhat outdated.
  
 To power down the target computer, select the //System// task group then run the //ShutDown// task. This launches the //shutdown.exe// Windows program, which shuts down the computer. To power down the target computer, select the //System// task group then run the //ShutDown// task. This launches the //shutdown.exe// Windows program, which shuts down the computer.