Jump to content
Macro Express Forums

Can you launch a web page in a new window pop up with set sizes ?


NeVeR
 Share

Recommended Posts

Can you make macro express launch a webpage in a new window with a set size ?

 

I can launch the webpage (using Firefox) and it will jump into a tab..

 

I need it to start in it's own window and be like 400 x 400 or something like that

 

Is it possible.

 

thanks.

Link to comment
Share on other sites

This macro will open up a new window in Firefox, launch a web page and resize the window:

 

Program Launch: "firefox.exe""
Wait For Window Title: "Mozilla Firefox"
Delay 0.2 Seconds
Text Type: <ALTD>d<ALTU>
Delay 0.3 Seconds
Text Type: www.macros.com
Text Type: <ENTER>
Wait For Window Title: "Macro Express – Macros for your Windows Automation Needs - Mozilla Firefox"
Delay 0.2 Seconds
Window Resize: Macro Express – Macros for your Windows Automation Needs - Mozilla Firefox - (Width: 400, Height: 400)

To write this macro I first thought about how I would do it manually and then replicated those steps using macro commands. I do not know how to open a web page without the header and address bars. Perhaps you can find some keyboard shortcuts to hide those items.

 

To experiment with this macro copy the following and paste it into a macro:

 

<LAUNCHDEL2:0:01"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"><WAITWIN2:000001:000000:Mozilla Firefox><DELAY:0.2><TEXTTYPE:<ALTD>d<ALTU>><DELAY:0.3><TEXTTYPE:www.macros.com><TEXTTYPE:<ENTER>><WAITWIN2:000001:000000:Macro Express – Macros for your Windows Automation Needs - Mozilla Firefox><DELAY:0.2><WSIZE:00400,00400Macro Express – Macros for your Windows Automation Needs - Mozilla Firefox

You will need to change the path in the Program Launch command, the web page URI and you may need to adjust the delays depending on your computer and internet speed.

Edited by kevin
Rewritten with Macro Express 3 macro
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...