Re: Help with SendKeys



In article <67b9276e-b036-4bfe-9f66-2a038d90342a@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Mike Williams <gagamomo@xxxxxxxxxxx> wrote:
On 20 Nov, 06:13, not.t...@xxxxxxxxxxxxxxx (beginner) wrote:

I intend to recognise the presence of Vista by
seeing the presence of C:\WINDOWS\vistawuredir.cab
or C:\Applications\oem\Vista_Manual_EN.pdf

Why C:\?

This does not work either, for whatever reason. I will look for some
other files which give away that the operating system is Vista or XP.


and then giving a different sequence to SendKeys.
Does that make sense?

No. What would make sense to me would be to do the job without getting
MS Paint involved at all, perhaps using the code at the link we have
already posted for you. If MS Paint exposed some reliable and
documented functions then it would be fine to use them in your app,
but it does not do so and the method you are using of "hitting keys"
in your code in the hopes that those specific keystrokes suit whatever
version of Paint happens to be installed does not make sense at all to
me.

You have a point.


In fact, if you want 4 bit (16 colour) bmp files then it would make
sense to save them in that format initially, rather than creating them
as 24 bit full colour bitmaps and then converting them.

That will be too messy to do from VB. I am storing plots of various
kinds as pictures.

Such a task
would of course require fairly heavy use of the various Windows API
functions, which you have said you don't really want to use, but you
will be helped greatly in that task if you study the code at the links
we have already posted.

If it is too advanced, I won't understand it and won't learn much
anyway. I have to learn to crawl before I learn to run.


By the way, what is it you are doing that requires only a 4 bit (16
colour) bitmap? Can you explain exactly what these images are, and
what their purpose is? The reason I ask is that it is likely that
something other than a bmp format might better suit your needs.

These are typically plots of a few variables - say temperatures at a
few locations, flow rates, concentrations as functions of other
variables like time. I would like the few curves in different colours
but the actual colours don't matter, so I use QBColor(k), k = 1 to 12.

BMP is never really the best format for this kind of pictures, but
when code was written in VB 3, the only way to store pictures by
SavePicture was to put them in bmp's.


Mike



.



Relevant Pages

  • Re: The Best File Type For Print
    ... I use PSP9 to edit my pictures. ... meant that to be for printing a picture. ... Ask 1) what format they prefer 2) what formats they'll accept. ... most popular formats like JPG, TIFF, BMP, and ...
    (alt.photography)
  • I can only save photos as bmp. files...
    ... Is there anyway to change what format my computer saves pictures in? ... I'm only able to save as bmp. ... or a gif. ...
    (microsoft.public.windowsxp.photos)
  • Converting Neochrome picture files
    ... pictures to another format (such as BMP or GIF)? ...
    (comp.sys.atari.st.tech)
  • Re: OT: Unless F1 teams use Radeon cards under Ubuntu
    ... A database is a storage, a spreadsheet is used as a front ... so that reason would need to be sound. ... Those won't be VBA macros or very, ... to today's format forever. ...
    (rec.autos.sport.f1)
  • Re: fortran reading a line
    ... note also that reading 1e2 in %d format is not an error in C. ... It seems to me that just having a feature doesn't need to ... that would be a good reason to add it? ...
    (comp.lang.fortran)