Pulse Timer (for misting)

Just having a think about this… in plain English

I will set 2 global variables - int ‘run’ and int ‘delay’
I will have an on / off switch which start and stop the code.
I will have 2 vertical sliders each set to a virtual pin
Each virtual pin will relate to either ‘run’ or ‘delay’
I can set the vertical sliders to an whole number value. 2 would represent 2000ms (by multiplying this number by 1000 in the code)

Am I on the right track or way off the mark?