MacOS API help

This topic contains 0 replies, has 1 voice, and was last updated by  Hezkore 1 year, 7 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #10019

    Hezkore
    Participant

    I’ve been using the Windows API for an app I’m working on, but I now want it to run on MacOS too!
    The Windows API stuff I’ve been using is “keybd_event” to send keyboard inputs to current window.
    And also “GetForegroundWindow” and “SetForegroundWindow”.

    Basically what I’ve been doing is.
    Check if a window is in focus.
    If it’s not, then set window in focus.
    If window is in focus, then send some keyboard input.

    It’s for a little chat bot I’ve been working on.

    Is there anything similar on Mac?
    Also how would the Extern functions look on Mac?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.