Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

how to open a mozilla webpage and change its size using visual basic

  • 1 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 Paul

more options

I am trying to create a macro which opens a mozilla webpage window at a specific position and in a specific size. I can open the page but cant change its size

Set ObjShell = CreateObject("WScript.Shell")

ObjShell.Run ("c:\progra~1\mozill~1\firefox.exe http://blarney.uk.tmo/login.aspx")

Set ObjShell = Nothing

End Sub

Here is one for IE which works

Sub IE()

       Dim oIE As Object
       Set oIE = CreateObject("InternetExplorer.Application")
       oIE.Navigate2 "www.google.com"
       oIE.Height = CInt(Int((1000 * Rnd()) + 1))
       oIE.Width = CInt(Int((1000 * Rnd()) + 1))
       oIE.Visible = True
   End Sub
I am trying to create a macro which opens a mozilla webpage window at a specific position and in a specific size. I can open the page but cant change its size Set ObjShell = CreateObject("WScript.Shell") ObjShell.Run ("c:\progra~1\mozill~1\firefox.exe http://blarney.uk.tmo/login.aspx") Set ObjShell = Nothing End Sub Here is one for IE which works Sub IE() Dim oIE As Object Set oIE = CreateObject("InternetExplorer.Application") oIE.Navigate2 "www.google.com" oIE.Height = CInt(Int((1000 * Rnd()) + 1)) oIE.Width = CInt(Int((1000 * Rnd()) + 1)) oIE.Visible = True End Sub

所有回覆 (1)

more options

Hi

Thank you for your question. This sounds very much like a programming question that is a little above our level of expertise on the Support Forum (we mainly look at Firefox product issues).

I recommend that you ask about this in Stack Overflow where I am sure one of the experts there will be able to help.