Script digging for worms! The game must be in windowed mode, the shovel is in the upper right corner of the inventory!
Download the program (Download) and go to the macro editor
press the button «Open file»
and select the downloaded file
assign a macro to a key and run the program