
nomisre
Members-
Posts
18 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
nomisre's Achievements

Seeker (1/7)
0
Reputation
-
It's almost working now See my code below. The only problems I have now are: During switching tabs on the first screen: full screen -> not full screen (maximized) -> full screen -> not full screen (maximized), etc etc On the second screen: maximized window (so not full screen) and switching to the next tab doesn't work #include <IE.au3> _Example() Func _Example() ; Opens two IE sessions with three example tabs Local $oIE1 = _IECreate("www.google.nl") Local $IEhwnd1 = _IEPropertyGet($oIE1, "hwnd") __IENavigate($oIE1, "http://www.nu.nl", 0, 0x800) __IENavigate($oIE1, "http://www.telegraaf.nl", 0, 0x800) Local $oIE2 = _IECreate("www.google.nl") Local $IEhwnd2 = _IEPropertyGet($oIE2, "hwnd") __IENavigate($oIE2, "http://www.nu.nl", 0, 0x800) __IENavigate($oIE2, "http://www.telegraaf.nl", 0, 0x800) ; Tab loop While 1 If WinExists($IEhwnd1) Then WinActivate($IEhwnd2) Else ExitLoop EndIf WinMove($IEhwnd1,"",1272,-8,1280,1024) WinMove($IEhwnd2,"",-8,-8,1280,1024) Send("{F11}") ; Set full screen Sleep(5000) Send("^{TAB}") WEnd _IEQuit($oIE1) _IEQuit($oIE2) EndFunc
-
Hmm, still doesn't work... Even after trying all kinds of different positions. EDIT: After trying WinMove($IEhwnd1,"",-8,-8,1280,1024) and WinMove($IEhwnd2,"",1272,-8,1280,1024), I managed to get one session on both screens The only problem now is, is that they are not full screen (F11) and one of them isn't switching to the next tab.
-
I have tried several places (see the asterisks *) with this code. I'm not sure if it's correct, because I see all kinds of different things. WinMove(1280,0[,1280[,1024]]) The first IE session is already showing full screen. The seconds one is only showing like a third of the screen (same screen), so only this one needs to be moved. #include <IE.au3> ; Opens two IE sessions with three example tabs Local $oIE1 = _IECreate("www.google.nl") $IEhwnd = _IEPropertyGet($oIE1, "hwnd") __IENavigate($oIE1, "http://www.nu.nl", 0, 0x800) __IENavigate($oIE1, "http://www.telegraaf.nl", 0, 0x800) Local $oIE2 = _IECreate("www.google.nl") *1 $IEhwnd = _IEPropertyGet($oIE2, "hwnd") __IENavigate($oIE2, "http://www.nu.nl", 0, 0x800) __IENavigate($oIE2, "http://www.telegraaf.nl", 0, 0x800) *2 ; Set full screen Send("{F11}") ; Tab loop While 1 If WinExists($IEhwnd) Then WinActivate($IEhwnd) Else ExitLoop EndIf Sleep(5000) Send("^{TAB}") WEnd _IEQuit($oIE1) _IEQuit($oIE2)
-
#include <IE.au3> ; Opens two IE sessions with three example tabs Local $oIE1 = _IECreate("www.google.nl") $IEhwnd = _IEPropertyGet($oIE1, "hwnd") __IENavigate($oIE1, "http://www.nu.nl", 0, 0x800) __IENavigate($oIE1, "http://www.telegraaf.nl", 0, 0x800) Local $oIE2 = _IECreate("www.google.nl") $IEhwnd = _IEPropertyGet($oIE2, "hwnd") __IENavigate($oIE2, "http://www.nu.nl", 0, 0x800) __IENavigate($oIE2, "http://www.telegraaf.nl", 0, 0x800) ; Set full screen Send("{F11}") ; Tab loop While 1 If WinExists($IEhwnd) Then WinActivate($IEhwnd) Else ExitLoop EndIf Sleep(5000) Send("^{TAB}") WEnd _IEQuit($oIE1) _IEQuit($oIE2) This is my current code. I have tried putting WinMove(1280,0[,1280[,1024]]) on different places, but still no succes.
-
I have retrieved the positions as well as the height and width that I need for both IE sessions/windows via this code: ; Retrieve the position as well as height and width of the active window. Local $aPos = WinGetPos("[ACTIVE]") ; Display the array values returned by WinGetPos. MsgBox($MB_SYSTEMMODAL, "", "X-Pos: " & $aPos[0] & @CRLF & _ "Y-Pos: " & $aPos[1] & @CRLF & _ "Width: " & $aPos[2] & @CRLF & _ "Height: " & $aPos[3]) The first IE session (on the first monitor) should be positioned as x=0, y=0, w=1280, h=1024. The second one (on the second monitor) should be x=1280, y=0, w=1280, h=1024. I only don't understand (yet) how to implement this positions in the code.
-
My script currently looks like this: #include <IE.au3> ; Opens IE with three tabs Local $oIE1 = _IECreate("www.google.nl") $IEhwnd = _IEPropertyGet($oIE1, "hwnd") Local $oIE2 = _IECreate("www.google.nl") $IEhwnd = _IEPropertyGet($oIE2, "hwnd") __IENavigate($oIE1, "http://www.nu.nl", 0, 0x800) __IENavigate($oIE2, "http://www.nu.nl", 0, 0x800) __IENavigate($oIE1, "http://www.telegraaf.nl", 0, 0x800) __IENavigate($oIE2, "http://www.telegraaf.nl", 0, 0x800) Send("{F11}") ; Tab Loop While 1 If WinExists($IEhwnd) Then WinActivate($IEhwnd) Else ExitLoop EndIf Sleep(5000) Send("^{TAB}") WEnd _IEQuit($oIE) It opens two sessions, one full screen and the other minimized. Is it even possible to get two (or more) full screen sessions?
-
Hello, I currently have this script that opens three tabs in IE and switches to the next tab every 60 seconds. The problem is, that when the script is running, multiple open tabs in the Windows explorer or applications (even AutoIt) also switch. This is not the intension of the script. How can I fix this? Besides showmaximized, is it also possible to show two IE sessions fully maximized (like F11 does)? #include <IE.au3> ; Opens IE with three tabs $oIE = _IECreate("www.google.nl") $IEhwnd = _IEPropertyGet($oIE, "hwnd") __IENavigate($oIE, "http://www.nu.nl", 0, 0x800) __IENavigate($oIE, "http://www.telegraaf.nl", 0, 0x800) WinSetState("","",@SW_SHOWMAXIMIZED) ; Tab Loop While 1 If WinExists($IEhwnd) Then WinActivate($IEhwnd) Else ExitLoop EndIf Sleep(5000) Send("^{TAB}") WEnd _IEQuit($oIE)
-
Switch between IE tabs every 60 seconds
nomisre replied to nomisre's topic in AutoIt General Help and Support
Thanks, this is exactly what I need. I was already wondering how to stop the script The browser window also needs to be maximized. I believe I have to use @SW_MAXIMIZE, but I don't understand how and where. Edit: got it working by myself -
Switch between IE tabs every 60 seconds
nomisre replied to nomisre's topic in AutoIt General Help and Support
Thanks!