473,406 Members | 2,633 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,406 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 1156

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
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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...

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.