Main > Everything Else
Mouse move triggered by a Window Opening?
protokatie:
I know some of my requests are odd, but this one has a good reason.
Basically, my magic jack computer has an old screen hooked to it to show the weather and the MJ window. To show the screen I only have to jiggle the mouse, but I would like the screen to come out of power saving when a new call comes in. In the case of magic jack, it opens a small window showing the number that is calling, and I would like this to trigger a mouse move or a keypress to show the screen.
Is there an Autohotkey script for this? Or maybe something else?
Any ideas?
Vanguard:
You could write a little C program that uses SetWindowsHookEx.
This allows you to have a program running that can monitor all windows messages being passed around the system. When the MJ window pops up, you could then send a keypress event.
protokatie:
--- Quote from: Vanguard on January 31, 2010, 10:43:56 pm ---You could write a little C program that uses SetWindowsHookEx.
This allows you to have a program running that can monitor all windows messages being passed around the system. When the MJ window pops up, you could then send a keypress event.
--- End quote ---
That would be great if I knew the OS calls, and was used to coding under windows, but as it stands, my C coding is limited to DOS Ansi C (DJGPP). I know I am imposing, but could your write a small app that not only moved the mouse but made it look like a hardware move (or hardware keypress) for me? If not, then it is no big deal.
Vanguard:
I'll need to send you a program called spy++ that comes with MS development tools. I need to know what messages the MJ application sends when it gets a phone call so I can key off those.
You would just run spyxx.exe and it will show you all the windows on the system. You selecte the MJ window and then have it log the windows messages. Then, call yourself and see what gets logged.
The MJ application must be running in the background all the time and then just pops up a dialog. You should be able to find the background MJ application with spy++.
I can write you the program but it may take some going back and forth to get it working. I'm not sure if a mouse move through an API will have the same effect as a physical mouse move either. We can try though. Is the program you are trying to interrupt running as a screensaver?
If you already have Visual Studios, then you should have spyxx.exe.
RayB:
Arent there settings for "wake on activity" ?
Navigation
[0] Message Index
[#] Next page
Go to full version