Increase brightness when i push a button?

How can I program the following with WebCore: “if button X is pushed, then increase brightness ten percentage points”?

Something like this…

if Button gets pushed
then
  with deviceName  
    set level to {[deviceName:level] + 10}%
  end with
end if
3 Likes