Jump to content

Move Windows


Iceburg
 Share

Recommended Posts

WinMove() should do what you need. Search for it in the manual.

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Link to comment
Share on other sites

Changing it for just a second to a screensaver won't help. I got the impression that you could not simply assign a screensaver to kick in after 30 or 60 minutes of no activity. Screen burn occurs when the same images is left on the screen for many many hours. The best thing you can do is to set a screensaver to kick in after 60 minutes of inactivity, even if it's simply a blank screen. Moving the windows around might help a bit, but it's still not as good of a solution as turning off the monitor or activating a screensaver.

Most computers can set not only how long to wait before kicking in with a screensaver, but also a time to wait before turning off the monitor. Under windows you can find this in the "power managment" section.

If you choose to move windows around with AutoIt, you could set up an endless loop to move the windows every 30 minutes with something like this:

While 1;infinate loop
  Sleep(30 * 60 * 60 * 1000);sleep for 30 minutes
  WinMove("title", "text", $x, $y, $width, $height);move window
  Sleep(30 * 60 * 60 * 1000);sleep for 30 minutes
 ;move the window back to the first position.
WEnd

You could also use random numbers, or other ways to make it more adjustable if you need.

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Link to comment
Share on other sites

No I understandwhat burn in is, and I am trying to stop it although we need to monitor 2 sites webpages all day that are created dynamically.

The ooutput is to a TV so we can watch this in the front of the NOC. I just need to move the screen a little once in a while so burn in does not happen.

Here is what I created and its not working. Any ideas?

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 149, 0, 760, 388)

WinMove, ("SiteScope Overview - Microsoft Internet Explorer", "", 300, 390, 410, 429)

Sleep, (15000)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 169, 0, 760, 388)

WinMove, ("SiteScope Overview - Microsoft Internet Explorer", "", 320, 390, 410, 429)

Sleep, (15000)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 189, 0, 760, 388)

WinMove, ("SiteScope Overview - Microsoft Internet Explorer", "", 340, 390, 410, 429)

Sleep, (15000)

WinMove, http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer, 129, 0, 760, 388)

WinMove, ("SiteScope Overview - Microsoft Internet Explorer", "", 280, 390, 410, 429)

Link to comment
Share on other sites

If those aren't working, then you probably don't have the correct window titles. Try to view them from within the AU3_Spy.exe application, and then copy and paste them directally out of that window to be sure you are getting the title correct. You could also use the handle of the window by storing each window's handle to a variable, and calling the windows by their handles. This will also continue the application movement even if the title of the window changes (to a 404, for example.)

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Link to comment
Share on other sites

http://www.autoitscript.com/fileman/users/public/_pekster_resource/au3_spy-title.gif

The red highlight is the title, and the blue is any visible text in the window. Just read what the window tells you...

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Link to comment
Share on other sites

  • Administrators

http://www.autoitscript.com/fileman/users/public/_pekster_resource/au3_spy-title.gif

The red highlight is the title, and the blue is any visible text in the window.  Just read what the window tells you...

WindowBlinds + dinks if i'm not mistaken. :ph34r:
Link to comment
Share on other sites

WindowBlinds + dinks if i'm not mistaken.  :ph34r:

<{POST_SNAPBACK}>

Wow, not bad :( Indeed that's what I'm using, with the "dinksDX Blue Pro XP" variation included in the package. It's a very nice power-user theme, especially when you start playing with some of the config files.

Between that and Litestep, I'm a very happy camper under Windows. Until it crashes anyway...

Minor typo

Edited by pekster

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Link to comment
Share on other sites

Give me a little bit of credit here, I have the scrpt working great but the page has went into 404 once and it messed the scripts up. I meant can you help me with the dynamic names of the windows so it will keep working if the page goes to 404.

-Nick

Link to comment
Share on other sites

Give me a little bit of credit here, I have the scrpt working great but the page has went into 404 once and it messed the scripts up.  I meant can you help me with the dynamic names of the windows so it will keep working if the page goes to 404.

-Nick

<{POST_SNAPBACK}>

I think you'd want to look into calling the windows by handle or proccessID

"I'm not even supposed to be here today!" -Dante (Hicks)

Link to comment
Share on other sites

For example?  I guess I am not seeing this in the help.  =)  I see processclose (), etc, etc.

<{POST_SNAPBACK}>

from the help file, found searching for handle, can't write much right now...

WinGetHandle : Retrieves the internal handle of a window.

Window Titles and Text (Advanced) :

AutoIt operates in one of four "Window matching" modes. The modes are set with the AutoItSetOption function using the WinTitleMatchMode option.

Mode 4

"I'm not even supposed to be here today!" -Dante (Hicks)

Link to comment
Share on other sites

[so I guess I am not sure how to implement this:

I would run this before the loop, and I reference the process ID instead of the Windows title in the winmove section? Here is the what I have so far:

While 1;infinate loop

WinGetHandle ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer")

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 0, 0, 760, 388)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 0, 365, 410, 429)

Sleep (10000)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 30, 0, 760, 388)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 50, 370, 410, 429)

Sleep (10000)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 55, 5, 760, 388)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 100, 375, 410, 429)

Sleep (10000)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 80, 10, 760, 388)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 150, 380, 410, 429)

Sleep (10000)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 105, 15, 760, 388)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 200, 385, 410, 429)

Sleep (10000)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 130, 20, 760, 388)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 250, 395, 410, 429)

Sleep (10000)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 155, 25, 760, 388)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 300, 400, 410, 429)

Sleep (10000)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 180, 30, 760, 388)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 350, 405, 410, 429)

Sleep (10000)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 205, 35, 760, 388)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 400, 410, 410, 429)

Sleep (10000)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 230, 40, 760, 388)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 450, 415, 410, 429)

Sleep (10000)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 255, 45, 760, 388)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 500, 420, 410, 429)

Sleep (10000)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 270, 50, 760, 388)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 550, 425, 410, 429)

Sleep (10000)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 0, 0, 410, 429)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 0, 365, 760, 388)

Sleep (10000)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 50, 0, 410, 429)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 30, 365, 760, 388)

Sleep (10000)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 100, 0, 410, 429)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 55, 365, 760, 388)

Sleep (10000)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 150, 0, 410, 429)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 80, 365, 760, 388)

Sleep (10000)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 200, 0, 410, 429)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 105, 365, 760, 388)

Sleep (10000)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 250, 0, 410, 429)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 130, 365, 760, 388)

Sleep (10000)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 300, 0, 410, 429)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 155, 365, 760, 388)

Sleep (10000)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 350, 0, 410, 429)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 180, 365, 760, 388)

Sleep (10000)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 450, 0, 410, 429)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 205, 365, 760, 388)

Sleep (10000)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 500, 0, 410, 429)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 230, 365, 760, 388)

Sleep (10000)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 550, 0, 410, 429)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 255, 365, 760, 388)

Sleep (10000)

WinMove ("SiteScope Overview - Microsoft Internet Explorer", "", 600, 0, 410, 429)

WinMove ("http://apmcso.mercuryportal.com/schedule/esupport.asp?view=1 - Microsoft Internet Explorer", "", 270, 365, 760, 388)

Sleep (10000)

WEnd

Link to comment
Share on other sites

You might want to use an AdLib function to manage the timing of your screen saver. See AdLibEnable in the docs.

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

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...