473,326 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Clicking at a certain x,y position in python? (Mac OSX)

I have been searching and searching and cannot find a way to click at a
certain position in python. (Similar to http://tinyurl.com/9tap2 in
Cocoa) Does anyone know of a way? Thanks.

Jan 18 '06 #1
7 1180
Nainto wrote:
I have been searching and searching and cannot find a way to click at a
certain position in python. (Similar to http://tinyurl.com/9tap2 in
Cocoa) Does anyone know of a way? Thanks.


Use pyobjc to perform the code given in your example.

Regards,

Diez
Jan 18 '06 #2
There's no other way? I'd rather not have to use PyyyObjc.

Jan 18 '06 #3
There's no other way? I'd rather not have to use PyObjc.

Jan 18 '06 #4
Nainto wrote:
There's no other way? I'd rather not have to use PyObjc.


Why not?

You migth be able to write a pure ObjC-Program that then is invoked somehow
from python - either command-line, or as extension-module.

But I guess that means jumping through lots of hoops pyobjc has been through
for ages.

Diez
Jan 18 '06 #5
Yeah. It would be a lot easyer just to be able to run asomething
through the commandline but I'm not sure if commandline apps can take
with the window server. If If anyone knows of any other way It would be
greatly appreciated. (Thanks Diez)

Jan 18 '06 #6
I found soemthing! The following link will lead you to a page that will
give you the code to to create a commandline tool that will manipulate
the mouse. Then you can just set mouseButtonDown to true and be on your
way!
http://tinyurl.com/br7ty

Jan 18 '06 #7
has
Nainto wrote:
I have been searching and searching and cannot find a way to click at a certain position in python.


What for? There's a few ways it might be done, but what's best depends
on what you're trying to achieve.

Jan 19 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: hokieghal99 | last post by:
While trying to learn more about Python's standard modules, I noticed that there are *a lot* of Mac only modules... more so than Unix and Windows specific modules combined. Is there a reason for...
0
by: Sven Hilmahr | last post by:
Hello, I tried to do a Python 2.3.4 framework installation on my Mac OS X 10.3.5. I configured as described in /Mac/OSX/ReadMe: ../configure --enable-framework But on make test, one test...
4
by: Socheat Sou | last post by:
After a brief, but informative, discussion on Freenode's #zope chatroom, I was advised to consult the gurus on c.l.p. I'm working for a small company who is in desperate need to rewrite it's...
5
by: Maurice LING | last post by:
Hi, I've been using FB1.5 and access the database using Kinterbasdb + Python. My connection is established using kinterbasdb.connect() method and the parameters host, dns, database, user,...
0
by: Neil Benn | last post by:
Hello, I'm attempting to determine what paths I would need on a win32, Linux, OSX box to run python. This should be a vanilla python with no extra packages (including tk). The paths I have...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 398 open ( +5) / 3334 closed (+19) / 3732 total (+24) Bugs : 904 open ( -4) / 6011 closed (+36) / 6915 total (+32) RFE : 222 open...
13
by: 7stud | last post by:
test1.py: -------------------- import shelve s = shelve.open("/Users/me/2testing/dir1/aaa.txt") s = "red" s.close() --------output:------ $ python test1.py
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.