Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/22/2015 in all areas

  1. From the help file (I need it all the time) WinGetStateRetrieves the state of a given window. WinGetState ( "title" [, "text"] ) ParameterstitleThe title/hWnd/class of the window to get the state. See Title special definition.text[optional] The text of the window to get the state. Default is an empty string. See Text special definition.Return ValueSuccess:a value indicating the state of the window. Multiple values are added together so use BitAND() to examine the part you are interested in: 1 = Window exists 2 = Window is visible 4 = Window is enabled 8 = Window is active 16 = Window is minimized 32 = Window is maximized
    1 point
  2. also, thank you for your input Shane
    1 point
  3. In reference to the 2 scripts posted in this thread so far, neither one of them will actually reduce memory usage of your script. What both of them do is to take the memory that your program is using and dumping it to disk in the page file. In other words, it will reduce the RAM being used, but the data that was in the RAM is now in your page file, and being disk based it will make your program run much slower if if needs any of that information that on the disk. It's a band-aid on a bullet wound, you should try and fix any memory issues with your script before you resort to ruining its performance this way. In Windows XP memory management was terrible, so this type of script had limited usage. In today's modern OSs this is totally unnecessary because Windows handles the memory management and your scripts shouldn't try to do it. Microsoft is a lot smarter about memory management than you or I. Memory is usually plentiful, and much faster than disks, leave the data there and let Windows decide when it should page it out.
    1 point
  4. I ran the below code with no problems. Maybe try a try a loop with WinActive that calls the next window until successful. #include <IE.au3> Local $dropTask = _IECreate("www.google.com/") Local $focusSupportPage = _IECreate("www.msn.com/") WinSetState($dropTask.HWND,"", @SW_Minimize) WinSetState($focusSupportPage.HWND,"", @SW_Minimize) While 1 While Not(WinGetState($dropTask.HWND) = 47) WinSetState($dropTask.HWND,"", @SW_Maximize) WinActivate($dropTask) WEnd Send("{f11}"); full screen Sleep(10000) Send("{f11}"); full screen WinSetState($dropTask.HWND,"", @SW_Minimize) While Not(WinGetState($focusSupportPage.HWND) = 47) WinSetState($focusSupportPage.HWND,"", @SW_Maximize) WinActivate($focusSupportPage) WEnd Send("{f11}"); full screen Sleep(10000) Send("{f11}"); full screen WinSetState($focusSupportPage.HWND,"", @SW_Minimize) WEnd
    1 point
×
×
  • Create New...