SeaDub
(Fresh Scripter)
2007-12-13 05:05 PM
SENDKEYS using ALT and SPACEBAR

Any Bright ideas here?

I'm trying to make the middle of my script maximize the internet explorer window that its doing work in. Currently when i do a:
setFocus(<<Internet Explorer Window Name>>)
it opens the window in a small window format, not full screen, like I want it.
The only way to make it full screen, using the keybaord, that my little brain knows how, its to do an:
ALT - SPACEBAR - X
Sure. That sounds easy to do using sendkeys, except now I can't figure out how to get sendkeys to just send an ALT key, by itself, OR a SPACEBAR key... (which I don't believe is the same as a Sendkeys(" ").

Any thoughts?

Thanks in advance for your words of wisdom.


JochenAdministrator
(KiX Supporter)
2007-12-13 05:09 PM
Re: SENDKEYS using ALT and SPACEBAR

Wasn't Fullscreen F11 ?

SeaDub
(Fresh Scripter)
2007-12-13 05:17 PM
Re: SENDKEYS using ALT and SPACEBAR

F11 is Fullscreen, your right.. I guess what I'm looking for is just a maximized window... not F11 Internet explorer FullScreen..

Richard H.Administrator
(KiX Supporter)
2007-12-13 05:42 PM
Re: SENDKEYS using ALT and SPACEBAR

How are you starting IE?

Richard H.Administrator
(KiX Supporter)
2007-12-13 05:46 PM
Re: SENDKEYS using ALT and SPACEBAR

This works for me:
 Code:
$=SendKeys("~ x")


SeaDub
(Fresh Scripter)
2007-12-13 06:49 PM
Re: SENDKEYS using ALT and SPACEBAR

Wow... that works for me too... Why is it that the most obvious answers escape me? I was overthinking it... trying to press alt, then stop, then press space, then stop... etc... didn't think it would let me do it all at once.. Thanks for your help.