Jump to content

WinMove Issues


Go to solution Solved by ioa747,

Recommended Posts

Good day,

I have been employing the following script for some time  now - on both desktops and laptops - with all apparently working as expected.

However, I purchased a replacement monitor for my dual monitor setup and now the script no longer works as expected!! This is extremely frustrating!!

;-----------------------------------------------
#include <AutoItConstants.au3>
#include <FileConstants.au3>
;-----------------------------------------------
Opt("MustDeclareVars", 1)
;------------------------------------------------
_GotoMe()
;------------------------------------------------
Func _GotoMe()
    Local $_prev_ftitle = "E:\Desktop\Me"
    Local $_next_ftitle = "E:\Desktop\Them"
    Local $_next_ttitle = "E:\Desktop\Them\Us.txt"
    ;------------------
    WinClose($_prev_ftitle, "")
    ;------------------
    ShellExecute($_next_ftitle)
    Sleep(250)
    WinMove($_next_ftitle, "", 410, 100, 550, 650)
    ;------------------
    ShellExecute($_next_ttitle)
    Sleep(250)
    WinMove($_next_ttitle, "", 960, 100, 550, 650)
EndFunc   ;==>_GotoMe
;------------------------------------------------

I have updated the script for easier deployment.

I really cannot believe that it is the monitor- but I am at a complete loss as to what to do next?

Any assistance in this matter would be greatly appreciated!

Link to comment
Share on other sites

Good day,

Checking with "Au3Info_x64.exe" - I see that the "paths" have changed...yet again, I am not sure why?

From this...
Local $_prev_ftitle = "E:\Desktop\Them"
...to this...
Local $_prev_ftitle = "Them"

And from this...
Local $_next_ttitle = "E:\Desktop\Them\Us.txt"
...to this...
Local $_next_ttitle = "E:\Desktop\Them\Us.txt - metalpad"

Any ideas/suggestions?

Link to comment
Share on other sites

Posted (edited)

ioa747,

Thanks yo so very, very much for the "reminder"!

I always, always implement this setting at the very outset when setting up my computers. I have no idea how a monitor change-out..."Wait a minute!!...I had to change out the video card as well...thus the "trigger"!! I have to make a note of this so that if such happens again...that i will what to do!

Just for curiosity...what made you think of this? Thank you so very, very much again, ioa747! Appreciated!

"When you have eliminated the impossible, what is left, no matter how unlikely, is the truth."
Sir Arthur Conan Doyle, Author of "Sherlock Holmes"

PS: This "tweak" works for any version of Windows, by-the-way!!

 

 

 

 

Edited by mr-es335
Link to comment
Share on other sites

40 minutes ago, mr-es335 said:

Just for curiosity...what made you think of this?

by default the titlebar does not show the full address and the only setting for this is the one I indicated

I know that I know nothing

Link to comment
Share on other sites

Posted (edited)

ioa747,

To begin with, I am not sure what you mean by "...what made you think of this?"...I am not exactly sure what "this" is referring to?

I ran across this problem awhile back..not really knowing what was triggering the issue. I see now, that it was more-than-likely due to a change-out of a video card.
• I just performed a test on my "test system" and "Yes!", changing out a video card, does reset the titlebar by disabling  the "Display the full path in the title bar (Classic theme only)" setting!

I do hope that this answers your question?

Edited by mr-es335
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...