Edited because it was incorrect.
Little changed drawing from one of other posts:
R
fixed together with R1 and R2 (R1+R2 are created by original trimpot and they sum to 20kΩ) create voltage divider that controls voltage on PAD3 and this controls Shark output current. Shark outputs max 1A (with default sense resistor). Changing voltage on PAD3 moves this output current between min (which is about 10% of max, so 0.1A with default sense resistor) and max 1A.
To make it work the way you want (I understand you want one switch for power and another for low/high mode) you can do something like that with Shark.
Remove original trimpot and create resistors network that will give you levels you want.
I’m not sure about voltage levels required to get currents you want but let say you require 500mV for high (at PAD3) and 50mV for low.
With switch off current flows from reference voltage source thru R
fixed, R1 and R2.
1.235V / (R
fixed + R1 + R2) = 0.5V / R2
R2 = (0.5/(1.235-0.5))*(R
fixed+R1)
We have two variables but we know that we want R1 + R2 little more than 20kΩ. If we assume R1=5kΩ then from above equation R2=17kΩ.
This will give 0.5V at control PAD3 when switch is open.
Now to get low mode we close a switch connecting R3 in parallel with R2, lowering resistance and voltage at PAD3.
To get 50mV we need Rx (R2 and R3 in parallel) to be 1.05kΩ (you can use equation above again).
From this we can compute R3
R3 = R2*Rx/(R2-Rx)
R3 = 1.12kΩ
About Avast!, I guess is false positive, this website is well known here and been there forever but on the other hand you never know what snicked in somewhere. My AV does not complain though.