Hi Erel,
I use this code, to force the user to attach the power cord because the battery is running low.
But when I insert the power cord, the program stops on the loop, because the value of level doesn't change. So, how I can change the code?
It is possible to use a Msgbox. However in this case it will be much simpler to show a Panel over the whole screen. Remove the panel once the charger is connected.
It is possible to use a Msgbox. However in this case it will be much simpler to show a Panel over the whole screen. Remove the panel once the charger is connected.
It is not a timer. Each device can send these intents in a different rate. You can check the last time that the msgbox was displayed and only display another one if 40 seconds have passed.