Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Python Help - Controlling another program

Posted on 2011-02-22
2
296 Views
Last Modified: 2012-05-11



basically bugdisp is a program that i want to control through python and help and x A90 1 are the commands .. and for some reason it is not working correctly?
import bugdisp

while True:
	itemText = bugdisp.getNextItem()
	if itemText.find('TRACKBALL_CLICK') >= 0:
		bugdisp.sendCommand('help')
		bugdisp.sendCommand('x A90 1')

Open in new window

0
Comment
Question by:zoomer003
2 Comments
 
LVL 13

Accepted Solution

by:
Superdave earned 500 total points
ID: 34957904
You would have to post the bugdisp module, or at least documentation for it, for anyone to be able to tell if you're using it correctly.
0
 

Author Closing Comment

by:zoomer003
ID: 35018148
i figured out thanks
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This is an explanation of a simple data model to help parse a JSON feed
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question