Close

Added block commands

A project log for Ugly USB

After the Good and the Bad here you are the Ugly USB!

danjovicdanjovic 04/30/2017 at 20:120 Comments

Now it is possible to expand the DuclyScript by repeating blocks of commands.

For example the following script will open 10 notepads an type in Hello World.

DELAY 3000      
BEGIN         
GUI r                    
DELAY 500                
STRING notepad           
DELAY 500                
ENTER                    
DELAY 750                
STRING Hello World!!!
ENTER  
AGAIN 10   

The start of a block is marked by BEGIN command and the end of the block is marked by the AGAIN command which receives an integer parameter.

Sources for the Test Sketch as well as for the Compiler were updated on Github as well.

Discussions