Kofixo Posted January 27 Posted January 27 Hello everyone, I'm looking for solution how to keep my script working when monitor is turned off. When monitor is on pixel detecion work fine and script click the right pixel. When I turned off monitor there is a issue with pixel detection or mouse clicking. If you have any idea how to fix it I will be glad #RequireAdmin Local $CoordsA, $xmin =0, $xmax=630, $mouseSpeed = 1, $colorDetect=2 sleep(2000) $iRandom = Random(13040, 13370, 1) While 1 $CoordsA = PixelSearch($xmin, 0, $xmax, 470, 0x320C35, $colorDetect) If IsArray($CoordsA) Then MouseClick('Left', $CoordsA[0], $CoordsA[1], $mouseSpeed) EndIf Sleep($iRandom) WEnd Pixel appears in a random place on the screen,
Solution argumentum Posted January 27 Solution Posted January 27 11 minutes ago, Kofixo said: I'm looking for solution how to keep my script working when monitor is turned off. The monitor can be off. The canvas ( what you see in the monitor ) has to be on. So don't allow the monitor ( software ) to be off. ...hmmm, get a KVM and switch to a PC that's not plugged in. That way it will fake your monitor while your monitor turns off because it did not detect a PC Also look at the forum rules in regards to ... forum rules. Welcome to the forum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
Kofixo Posted January 28 Author Posted January 28 Thanks for quick answer. You are right about canvas Has to be on. I found solution that doesn't required KVM but working only with monitor which is connected by HDMI not DP. There is a software called "Awake PowerToys"
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