How can I place a window in EXACTLY the same spot each time?

M

Mike Barnard

Hi.

I have a program that does some repetative tasks. I'm experimenting
with using Macro Express to do some of the work for me, but each time
I run the original program the window ends up a few pixels out from
the last time I placed it.

Normally this wouldn't matter, but Macro Express moves the cursor to
the same spot each time so if the window is slightly out the mouse
pointer, when being moved in a macro, can sometimes miss it's mark.

I expect that I might be able to add something to the shortcut so that
when run the program is placed in an exact place. Any pointers to an
explanation or some other ideas please folks?

TIA,

Mike.
--
Mike Barnard, Worthing, UK.
Amateur PC enthuisast, trying to learn more.
And I play a lot of games! :)

Homebuild PC. Tsunami Dream case. Thermaltake 750w PSU.
ASUS P5B-E mobo / Intel Core2 [email protected] / 4 gig DDR2 ram
Nvidea GTX260 graphics.
Creative Labs Xfi Xtreme Gamer - Logitech 5.1 surround sound
1 x 1tb WD Caviar Black SATA drive. (C - 250gb)(E - 675gb)
1 x Lightscribe DVD burner.
1 x 250gb Maxtor SATA
1 x 350gb WD SATA
1 x other HDD
WD MyBook 500gb external drive
Razer Copperhead gaming mouse
Old, but comfortable, Logitech keyboard
 
M

Mike Barnard

On Sat, 08 Aug 2009 10:38:10 +0100, Mike Barnard

Forgot to say, XP pro, SP3, all patches.

Thanks again.
 
B

Big_Al

Mike Barnard said this on 8/8/2009 5:44 AM:
On Sat, 08 Aug 2009 10:38:10 +0100, Mike Barnard

Forgot to say, XP pro, SP3, all patches.

Thanks again.
I'm not the best XP geek, but I think the concept of staggered windows
is a feature of the OS not the program. I've written *some* C++
windows code and IIRC, its been a few years, you can place a window if
you want but without specification the OS staggers the windows to the
left and down a few pixels.
The only way I've seen that stop is to launch the program maximized, if
you can.
 
M

Mike Barnard

Mike Barnard said this on 8/8/2009 5:44 AM:
I'm not the best XP geek, but I think the concept of staggered windows
is a feature of the OS not the program. I've written *some* C++
windows code and IIRC, its been a few years, you can place a window if
you want but without specification the OS staggers the windows to the
left and down a few pixels.
The only way I've seen that stop is to launch the program maximized, if
you can.

Oh yes, it's the OS alright. I was hoping there was a way to tell it
that I want the window opened at 0,0 on the screen, maybe by adding
something to the command prompt.
 
J

Jose

Hi.

I have a program that does some repetative tasks. I'm experimenting
with using Macro Express to do some of the work for me, but each time
I run the original program the window ends up a few pixels out from
the last time I placed it.

Normally this wouldn't matter, but Macro Express moves the cursor to
the same spot each time so if the window is slightly out the mouse
pointer, when being moved in a macro, can sometimes miss it's mark.

I expect that I might be able to add something to the shortcut so that
when run the program is placed in an exact place. Any pointers to an
explanation or some other ideas please folks?

TIA,

Mike.
--
Mike Barnard, Worthing, UK.
Amateur PC enthuisast, trying to learn more.
And I play a lot of games! :)

Homebuild PC. Tsunami Dream case. Thermaltake 750w PSU.
ASUS P5B-E mobo / Intel Core2 [email protected] / 4 gig DDR2 ram
Nvidea GTX260 graphics.
Creative Labs Xfi Xtreme Gamer - Logitech 5.1 surround sound
1 x 1tb WD Caviar Black SATA drive. (C - 250gb)(E - 675gb)
1 x Lightscribe DVD burner.
1 x 250gb Maxtor SATA
1 x 350gb WD SATA
1 x other HDD
WD MyBook 500gb external drive
Razer Copperhead gaming mouse
Old, but comfortable, Logitech keyboard

What is this mysterious program?
 
T

Twayne

Mike Barnard said:
Oh yes, it's the OS alright. I was hoping there was a way to tell it
that I want the window opened at 0,0 on the screen, maybe by adding
something to the command prompt.

There is, but not native in XP. You'll need to run a script that can
access the proper API for that. It's going to be clunky though. IMO
MS's methods work fine and as they should; 100% overlapped windows often
hide other windows, making them impossible to get at without moving
those on top out of the way.
Personally I don't like full-screen windows, but that would be one
way of doing what you want; open everything in full screen using the
Properties for each one.
You can also align windows vertically or horizontally so they all
show are are accessible.
Or learn C#, VB, Python, VBA, cscript, wscript, or one of many others
that let you position a window.

Twayne`
 
M

Mike Barnard

What is this mysterious program?

Not mysterious. It's a 14 day trial of an onlne game galled Eve. One
way of making money is mining and it's boring and repetative, and
easily done automaticly with a macro.

However, I found it a boring, nerdy "Must know how many points this
does and compare it with that" game. Not my type, so I'm not
continuing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top