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 [2021-04-29 13:17]
max [Installation]
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.
  
 A command window will appear, with some text indicating that the UIROBOT program has started. You may also get a firewall alert, prompting you to allow this Java program to access the network. A command window will appear, with some text indicating that the UIROBOT program has started. You may also get a firewall alert, prompting you to allow this Java program to access the network.
  
-If you have done the general setup, copied the files and pointed to this  application notes root block, follow the next steps to run this application on your computer.+If you have done the general setup, copied the files and pointed to this application notes root block, follow the next steps to run this application on your computer.
  
   - Start Blocks.   - Start Blocks.
Line 55: Line 55:
 The top level program folder name varies with the version of operating system and program installed. If you have a shortcut to Chrome on your desktop, you can right-click that and choose //Properties// to see the correct path to the Chrome application. The top level program folder name varies with the version of operating system and program installed. If you have a shortcut to Chrome on your desktop, you can right-click that and choose //Properties// to see the correct path to the Chrome application.
  
-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). 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:+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?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:
  
   - Switch to the Display page of Blocks.   - Switch to the Display page of Blocks.
Line 100: 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.