473,413 Members | 1,794 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,413 software developers and data experts.

Mouse and/or keyboard simulation


No one in the world knows the answer to my question!
" Is it possible to emulate in Python for Linux the mouse and/or the keyboard?"
I am coming from XP, where I have plenty of methods (AutoIt, Macro Express,
Macro Scheduler and even VBA macro registration in Excel).

It is not necessary that I use Python (it should be better!). The goal of my request is
obviously automatization of tasks in X environment, like shell programming in non-graphic
environment.
Examples of application could be:
- Send queries to the server exacly simulating what I do by hand (urllib technique is difficult
to apply with certain servers...)
- Send to the printer or delete part of documents
- ... and so on

I know that all this tasks could be programmed, but for a newbie like me it is easier to
follow what I already know.null

Lycos Mail: casella da 300 MB gratis per te con sicurezza antispam e antivirus - http://mail.lycos.it
Jul 18 '05 #1
2 6566
lamb2000 <la******@lycos.it> wrote:
[-- text/plain, encoding 7bit, charset: us-ascii, 21 lines --]
No one in the world knows the answer to my question!
" Is it possible to emulate in Python for Linux the mouse and/or the keyboard?"
I am coming from XP, where I have plenty of methods (AutoIt, Macro Express,
Macro Scheduler and even VBA macro registration in Excel).

It is not necessary that I use Python (it should be better!). The goal of my request is
obviously automatization of tasks in X environment, like shell programming in non-graphic
environment.
Examples of application could be:
- Send queries to the server exacly simulating what I do by hand (urllib technique is difficult
to apply with certain servers...)
- Send to the printer or delete part of documents
- ... and so on

I know that all this tasks could be programmed, but for a newbie like me it is easier to
follow what I already know.null


what you want is an interface to xtest

look for xautomation package (not python, but calling xautomation from
python is trivial)

I used it successfully to get an information out of old win3.1 program
running under WINE
(10000 times (pagedown + screenshot + OCR))

--
-----------------------------------------------------------
| Radovan GarabÃ*k http://melkor.dnp.fmph.uniba.sk/~garabik/ |
| __..--^^^--..__ garabik @ kassiopeia.juls.savba.sk |
-----------------------------------------------------------
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
Jul 18 '05 #2
lamb2000 <la******@lycos.it> wrote:
[-- text/plain, encoding 7bit, charset: us-ascii, 21 lines --]
No one in the world knows the answer to my question!
" Is it possible to emulate in Python for Linux the mouse and/or the keyboard?"
I am coming from XP, where I have plenty of methods (AutoIt, Macro Express,
Macro Scheduler and even VBA macro registration in Excel).

It is not necessary that I use Python (it should be better!). The goal of my request is
obviously automatization of tasks in X environment, like shell programming in non-graphic
environment.
Examples of application could be:
- Send queries to the server exacly simulating what I do by hand (urllib technique is difficult
to apply with certain servers...)
- Send to the printer or delete part of documents
- ... and so on

I know that all this tasks could be programmed, but for a newbie like me it is easier to
follow what I already know.null


what you want is an interface to xtest

look for xautomation package (not python, but calling xautomation from
python is trivial)

I used it successfully to get an information out of old win3.1 program
running under WINE
(10000 times (pagedown + screenshot + OCR))

--
-----------------------------------------------------------
| Radovan GarabÃ*k http://melkor.dnp.fmph.uniba.sk/~garabik/ |
| __..--^^^--..__ garabik @ kassiopeia.juls.savba.sk |
-----------------------------------------------------------
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
Jul 18 '05 #3

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

Similar topics

1
by: Michael J Whitmore | last post by:
Greetings, I have a very simple question. How do you simulate a user input to turn off a screen saver in Windows (either a mouse movement, mouse click, or keyboard input)? I promise I searched...
3
by: Megha Vishwanath | last post by:
problem defination : I have written one application which does lot of cpu intensive operation , which would take up to 50% cpu continuosly , as result of this whole opertaing system becomes...
8
by: Nolan Martin | last post by:
Is it just me or are there no good librarys out there to access the keyboard or mouse? I have been looking around for a while now and can only find ones that are bundled with a bunch of other...
0
by: George Hartas | last post by:
I am using Visual C# .NET 2003 to make a ComboBox accept both mouse and keyboard selection. For mouse selection code, I double-clicked ComboBox to get the default "comboBox1_SelectedIndexChanged"...
9
by: DotNetShadow | last post by:
Hi Guys, I have been having this problem recently where I have a form with a textbox and button, if in the button event I have the following: Private Sub Button1_Click(ByVal sender As...
16
by: dfaber | last post by:
Hi all, I have been searching for a keyboard and mouse tracker on linux. I've read solutions (watch at sourceforge) which look at /proc/interrupts to check keyboard or mouse activity. I also read...
0
by: Gamey | last post by:
I have an application that NEEDS (don't ask) to handle additional mouse and keyboard processing during DoDragDrop. Normally, DoDragDrop kindly squashes all keyboard and mouse events. Alternate,...
18
by: eliss.carmine | last post by:
Is it possible to simulate a mouse click in the window I made (it's a Form), but not give it focus? I tried using WinAPI's mouseevent and SendMessage of WM_LBUTTONDOWN/WM_LBUTTONUP as suggested...
1
by: =?Utf-8?B?aG9tYW50Y3c=?= | last post by:
-windows xp -dell dimension 9150 The computer starts normally, loads up the blue login screen. I can move the cursor around the screen and type on keyboard. Then after roughly 3 seconds...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.