Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8221767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:02:47+00:00 2026-06-07T14:02:47+00:00

This might be a vague question, but I failed to rephrase it properly. So

  • 0

This might be a vague question, but I failed to rephrase it properly. So here’s an explanation.

I developed an app that was originally developed as a Mac application, using API’s from both Carbon/Cocoa to achieve my task. (The goal of the application is to send ‘keystrokes’ to an app after mouse movements / other keystrokes. I use Accessibility API’s for that).

But now, I want to add scripting support, so there can be conditional keystrokes. Such as: after 5 times of pressing ‘Y’, I want to press the button ‘B’.

Within OSX, there’s no possibility for a Python app to do such a thing, and I can’t find any libraries that allow me to do it. So I figured I’d make the app two-fold. First: I’ll write an app in Cocoa/Carbon with the basic functions: SendKeyToApp(pid,key) and WaitForMovement().

The python app will communicate with that app, using those method calls. The question here is: how do I communicate between those two apps? Will I use a HTTP Server, a Socket Server, some kind of subprocess.Popen() hacks. I frankly have no idea.

Does anyone have any ideas to achieve such a task?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T14:02:49+00:00Added an answer on June 7, 2026 at 2:02 pm

    Easier. I went to use Accessibility API’s from within Python, and it all allowed me to easily do this without any Cocoa / Carbon at all.

    For the ones interested, it’s called atomac.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question might be closed as it sounds vague but I'm really asking this
This might sound like a stupid question but just trying to learn something here.
This might be a bit vague question, but real life is like this. Our
Sorry that the question of this problem might be a bit vague. I'm trying
This might be a very vague question but I guess I don't really understand
This might be a very basic and clueless question, but while I understand that
This might sound like a vague question, but i wanted to know if there
This might be a dumb question...but I am trying to make my first app
This might be a silly question, but here goes : I hashed a dictionary
The question might be pretty vague I know. But the reason I ask this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.