I am trying to position and resize IE11 via the following code to default values but for some reason this does not seem to work:
Code: Select all
SRT>IECreateNew
IECreate>IE[0]
Let>currIE=IE[0]
//Originally via GetClipBoard>currURL,0 from the DBApp
Let>currURL=%IECreateNew_Var_1%
IENavigate>currIE,currURL,res
Gosub>IEWaitForIE
// Move IE window to pos 1,1 - DOES NOTHING
Let>WIN_USEHANDLE=1
MoveWindow>currIE,1,1
Gosub>IEWaitForIE
// Resize IE window to 1100,1000 - DOES NOTHING
Let>WIN_USEHANDLE=1
ResizeWindow>currIE,1100,1000
Gosub>IEWaitForIE
// This is my work-around in a sub-routine which reads and presses the button on the favorites with the JS as shown below
Gosub>IEPressButtonPosition
END>IECreateNew
I found a work-around in IEPressButtonPosition, which is viable for us only at the moment as long as the tasks run in our VM. We added a button to the IE's favorites row, which is pressed and contains the following code:
Code: Select all
javascript:resizeTo(1100,1100);moveTo(1,1)
Best regards
Heinz57