Page 1 of 1

Maximize IE

Posted: Fri Feb 25, 2005 7:31 am
by des1
I tried many things to get this work, but I cannot seem to do this one simple thing.  Anytime Internet Explorer is started or is the active window, I would like to automatically have it maximized.
Thanks,
Deryk
 

Maximize IE

Posted: Fri Feb 25, 2005 7:59 am
by Oleg
It's easy. I have wrote a small task for you. This task maximize window by handle. Task has been launched by two triggering events:
1-st checks "window activation"
2-nd checks "window creation"
Both events assignes window handle to variable which used in window command action.
So when IE window has been created (or activated), RomoTask maximize it.

See task below. Save text of task into some file and use "Task | Import" menu to import into RoboTask.
Don't forget to set to "Enabled" status of the imported task, bacause RoboTask disables all imported tasks by default.

;**********************
;* RoboTask Task file *
;* Do not edit!       *
;**********************

[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|722156964
ContinueOnError=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task68"
Hide=INTEGER|0
ID=INTEGER|1171988563
Name=STRING|"Maximize IE"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3

[Actions]
Action1=FOLDER

[Actions\Action1]
ActionID=STRING|"A_WINDOW_COMMAND"
Enabled=INTEGER|-1
Name=STRING|"Maximize window """""
Params=FOLDER

[Actions\Action1\Params]
action=STRING|"1"
caption=STRING|"1"
child=STRING|"0"
class=STRING|"0"
classexact=STRING|"0"
exact=STRING|"0"
findmode=STRING|"1"
handle=STRING|"{ie_handle}"
hidden=STRING|"0"
processall=STRING|"0"

[Events]
Event1=FOLDER
Event2=FOLDER

[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_WINDOW_WATCHER"
Params=FOLDER

[Events\Event1\Params]
assignvariable=STRING|"1"
child=STRING|"0"
classexact=STRING|"0"
exact=STRING|"0"
hidden=STRING|"0"
id=STRING|"3J496P0QP"
usecaption=STRING|"1"
useclass=STRING|"0"
variable=STRING|"IE_handle"
watchfor=STRING|"0"
wincaption=STRING|"- Microsoft Internet Explorer"

[Events\Event2]
Enabled=INTEGER|-1
EventID=STRING|"E_WINDOW_WATCHER"
Params=FOLDER

[Events\Event2\Params]
assignvariable=STRING|"1"
child=STRING|"0"
classexact=STRING|"0"
exact=STRING|"0"
hidden=STRING|"0"
id=STRING|"ECMOCQROZ"
usecaption=STRING|"1"
useclass=STRING|"0"
variable=STRING|"ie_handle"
watchfor=STRING|"1"
wincaption=STRING|"- Microsoft Internet Explorer"

Maximize IE

Posted: Fri Feb 25, 2005 8:42 am
by des1
Once again, thank you Oleg...