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

Re: How to set directory in save as combo box

Couple of things, Gopal, which you might want to remember
when posting to mailing lists etc. One is that it's *much* better
(and more considerate) to post in plain text, not in HTML. (You
should be able to tell Outlook to use plain text). *Especially* when
posting code. And even *more* especially when posting Python
code where the layout is uber-important.

The other thing is that top-posting is not the norm in this group,
although it may be in others. The usual thing is to trim the email
you're replying to (or the newsgroup post or GGroup entry) so
that only the relevant text remains, and then put your replies
beneath or interspersed depending on what makes sense.

Now to the code itself:
I am trying to save a file, it is working fine.

But if the file is not on the foreground while setting combo box
directory, changing the value in the combo box by setLookIn() appear on
the foreground window.
[... snip code which finds a "Save As" window and sends it mouse messages ...]

I'm honestly not sure what you're trying to achieve here. I assumed that
*your* application was initiating the "Save As..." dialog. But this code looks
as though you're trying to automate some *other* application's dialog box.
Can you explain better what's going on?

Trying to poke values into other application's windows is fragile at best,
but if that's really what you want to do, have a look at a couple of projects
which specialise in that kind of thing:

+ WATSUP: http://www.tizmoi.net/watsup/intro.html
+ PyWinAuto: http://pywinauto.openqa.org/

Trying to poke values into *your own* application's windows is entirely
suspect: there's almost certainly a better way of doing it.

TJG
Jun 27 '08 #1
0 1154

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

Similar topics

1
by: Jim Stacey | last post by:
In my form based on the table Customers i have a combo box looking up for the employees. The tables Employees and Customers are related in one to many relationship, the primary key Employeeid in...
1
by: rob | last post by:
I built a combo box that contains names of people. A user can chooses a person from the combo box, the next couple of the text boxes will show the corresponding address of that person. I used...
5
FOE2272
by: FOE2272 | last post by:
I have tried every option that I can think of and most of them on this forum. The closest that I got was to bring up the field but it changed the other records based on what was chosen in one...
4
by: VMR | last post by:
I have a form that has 2 parts. Combo Box (Originator_Broker) and Text Box (Cas Number). The combo box contains the Originator Name and when one is selected it populates the Cas Number in the text...
3
by: Koliber (js) | last post by:
sorry for my bad english when I fire up (from my c# code) a standard "file - save as " dialog, and when chosen location is a shered local network directory, where I do have rights to create...
4
by: Whasigga | last post by:
Hi I've created a form that has 7 subforms. It is the same subform, bound to a table, just repeated. This form represents a week, and each subform is used to enter in data for each day of the...
1
by: gdixon | last post by:
Greetings To All! I am using a Access 2003 and my programing skills are of the cut and paste variety. This means begining programming skills and on a good day perhaps middle of the road...
0
by: Tim Golden | last post by:
gopal mishra wrote: There are several ways to display a "Save As" dialog. Can you post the code you're using so we can see what you're doing, please? TJG
6
by: falconsx23 | last post by:
I am trying to write a code for a Phone Directory program. This program is suppose to allow the user to enter a name or directory and then program can either add, save or even delete an entry. Also...
2
by: Kappucino XL | last post by:
Hi there, I have created a windows form application where I've placed a combo box; a load button and three data-grids. All these receive their data from a SQL Database. The combo box from table1. The...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.