Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

Need to open browser with specific window size - Help :)

$
0
0
Hi,

I am VERY new to vb scripting. My goal was to create a menu with clickable buttons that would open a firefox window and run an imacro script (which is treated like a URL) which basically logs into a site and prefill forms and click buttons.

Everything works great and now i am looking just to tweak a few things. For starters, the URL that is opened MUST be in a new browser window - which I've managed. However, I would love to be able to open this new browser with a specified window size, and possibly a location on my screen.

Is this possible?

Here is a sample of a script when it's button is clicked:

<script language="VBScript">
Sub Individual
CreateObject("WScript.Shell").Run"""C:\Program Files (x86)\Mozilla Firefox\firefox.exe""-new-window imacros://run/XXXXXXX"
End Sub
</script>

I've tried Firefox's command line options for window size, but can't get them to work. Any help is greatly appreciated. Thanks in advance!

Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>