The invention relates to a method for ejecting a pesticide by means of a fluid chamber 3 which communicates via an electrically controlled fluid valve 48 having a spout 22. The method comprises the following steps: determining a pressure and a duration of a time interval for ejecting the pesticide filling the pesticide into the fluid chamber 3 applying a defined pressure on the pesticide in the fluid chamber 3 and opening the fluid valve 48 by means of an electric control signal for a specific previously determined time interval and closing the fluid valve 48 after the time interval has expired so that a defined volume or a defined weight of the pesticide is ejected by the spout 22. The invention further relates to a spray gun for carrying out the method and to the use of said spray gun for ejecting liquid in particular gel like pesticide.