Hi guys, I'm working on writing a program that will do a few clicks for me in a loop. I created a structure and set it to enter INPUT_MOUSE for replicating clicks and using SendInput () to send information. everything compiles correctly and can be called a "working" program, but I came across a rather funny breakdown. I wrote a program on my laptop (Windows Vista), tried it, and it worked fine. When I rewrote the same exact code and used it on my desktop (Windows 7), when I run the program, my screen will go black as soon as I start the automation part, as it happens when it goes to sleep . the program will run in the background just fine, but its kind of pain that automater blacks my screen. any idea what is going on here? If necessary, I can display the code. Thanks in advance.
on request I add my code
enter code here
source share