Define ia.i, a.d
For ia = 100 To 5000 Step 4 : a = ia / 100.0
; code with "a"
Next
it worked like a charm
Thank you all
Code: Select all
FOR a = 0 TO 50 STEP .04
...
code
...
NEXTThanks for the hint RASHAD, it´s a good helpRASHAD wrote:Maybe CreateThread() is your good approach
You´re right spikey, when I moved the call to GetSystemPowerStatus_ to inside the main loop, the battery values started updating.spikey wrote: The call to GetSystemPowerStatus_ needs to be inside the loop to update the values.