How is SendPlay implemented?

Discuss other programming languages besides AutoHotkey
Posts: 2
Joined: 05 Apr 2017, 16:43

How is SendPlay implemented?

05 Apr 2017, 16:50

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.

Re: How is SendPlay implemented?

17 Aug 2017, 12:44

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?
User avatar
Posts: 6
Joined: 16 Aug 2017, 18:15
GitHub: dojomike

Re: How is SendPlay implemented?

21 Aug 2017, 20:15

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

And this is SendMode input / SendInput (and I think SendMode play / SendPlay)

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
Posts: 2
Joined: 05 Apr 2017, 16:43

Re: How is SendPlay implemented?

02 Nov 2017, 00:55

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.

Return to “Other Programming Languages”

Who is online

Users browsing this forum: No registered users and 2 guests