See this documentation.
How is SendPlay implemented? I had a look at hotkey.cpp and got the impression SetWindowsHookEx may be used but didn't find any code to that effect. Where is the implementation? Searching for SendPlay or any of the functions didn't get me very far.
Cheers, R0b0t1.
How is SendPlay implemented?
Re: How is SendPlay implemented?
Sry for bumping a 4 month old thread, but im really lost in sources. Can anyone tell me in which header and sourcefile i should look for send modes implementations?
Re: How is SendPlay implemented?
I'm not sure where it's implemented (to be honest, I've had a hard time navigating the source too) but I think I can help you with how:
These are SendMode event / default Send
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
And this is SendMode input / SendInput (and I think SendMode play / SendPlay)
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
Hopefully this well help you with whatever you're building. Also, just out of curiosity, what are you building? I've been slowly working on a project that uses a lot of AHK's source, so it might be useful to compare notes.
mods note: added url tags to fix broken links
These are SendMode event / default Send
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
And this is SendMode input / SendInput (and I think SendMode play / SendPlay)
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
Hopefully this well help you with whatever you're building. Also, just out of curiosity, what are you building? I've been slowly working on a project that uses a lot of AHK's source, so it might be useful to compare notes.
mods note: added url tags to fix broken links
Re: How is SendPlay implemented?
Thank you DojoMike, and my apologies for not responding. Post notifications are useful indeed.
I was under the impression that AHK would send events without taking over control of the desktop mouse and keyboard. Is this wrong?
This post will be updated once I am able to test, but more information on the AHK codebase would help. It seems plausible there is a distinction between the two types, but I am reading that SendInput will generate all input message types. If keybd_event and mouse_event do not do the same thing, I am very confused - the MSDN documentation implies they operate at the same level or a level below SendInput.
My goal is to provide input to a program without taking control of the desktop input devices. The ultimate usecase is similar to AutoHotkey, but the code is to be integrated with an existing project.
I was under the impression that AHK would send events without taking over control of the desktop mouse and keyboard. Is this wrong?
This post will be updated once I am able to test, but more information on the AHK codebase would help. It seems plausible there is a distinction between the two types, but I am reading that SendInput will generate all input message types. If keybd_event and mouse_event do not do the same thing, I am very confused - the MSDN documentation implies they operate at the same level or a level below SendInput.
My goal is to provide input to a program without taking control of the desktop input devices. The ultimate usecase is similar to AutoHotkey, but the code is to be integrated with an existing project.
Return to “Other Programming Languages”
Who is online
Users browsing this forum: No registered users and 45 guests