BumBumBa Posted August 22, 2023 Share Posted August 22, 2023 Hello I try to Make a script, wenn on my laptop my power Cable gets removed a Msgb comes and alert me. I have no clue how i can cod this and yould need help pleaaaasseee <3 Link to comment Share on other sites More sharing options...
Musashi Posted August 22, 2023 Share Posted August 22, 2023 (edited) Take a look at : https://www.autoitscript.com/autoit3/docs/libfunctions/_WinAPI_GetSystemPowerStatus.htm In the help you will find an example with which you can test what happens when you remove the power cable. For your information : The Function AdlibRegister checks the current state in intervals (default=250 milliseconds, but can be increased). Edited August 22, 2023 by Musashi Answer extended ioa747 1 "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now