DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: SOLVED - lock window positions on startup  (Read 6,953 times)

Uncle Larry

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 8
SOLVED - lock window positions on startup
« on: May 12, 2011, 03:20 PM »
Hi - forgive me if this is a done-deal, but could not find anything so thought I'd ask for it. 

I use AHK scripts for lots of stuff, and want to expand to some new areas.  Most of what I do involves copy/pasting from IE to Lotus Notes or other IE windows, sending keys and such like that.  I'm aware it would be more elegant to use the object model to get into whatever I'm working with, but I'm not that smart.  :tellme:  So I usually end up with coordinates to which I'm sending left downclick action.  If I move my windows, obviously that kills the code.  I open the same windows at work every day, and would like them to always open in exactly the same place, so that macros I write will find links where they should be.

Any ideas? 

Thanks - Larry

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: IDEA - lock window positions on startup
« Reply #2 on: May 12, 2011, 03:40 PM »
Furthermore, look up CoordMode in the AHK docs.  Specifically: CoordMode, Mouse, Relative

Good luck!  :Thmbsup:

Uncle Larry

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 8
Re: IDEA - lock window positions on startup
« Reply #3 on: May 12, 2011, 05:20 PM »
Furthermore, look up CoordMode in the AHK docs.  Specifically: CoordMode, Mouse, Relative

Good luck!  :Thmbsup:

That's what I'm looking for!  Thank you very much!

Larry

Original address: https://www.donationcoder.com/forum/index.php?topic=26728.0