WebBrowserWindow.dll v.1.0.0.0
WebBrowserWindow is an external web browser window. You can load also different file formats like pdf, swf etc. You can also show dynamic text or html content.
You can load ms office file formats too but you get the typical window asking you if you want to download or save the document. You can modify yourself the registry settings to change that behaviour. This dll doesn't do that.
Actions:
WebBrowserWindow.GetTitle
WebBrowserWindow.GetPosition
WebBrowserWindow.GetSize
WebBrowserWindow.GetWindowState
WebBrowserWindow.GetWindowStyle
WebBrowserWindow.GetReadyState
WebBrowserWindow.GetHtmlContent
WebBrowserWindow.GetTextContent
WebBrowserWindow.GetUrl
WebBrowserWindow.GetOpacity
WebBrowserWindow.SetTitle
WebBrowserWindow.SetPosition
WebBrowserWindow.SetSize
WebBrowserWindow.SetWindowState
WebBrowserWindow.SetWindowStyle
WebBrowserWindow.SetHtmlContent
WebBrowserWindow.SetTextContent
WebBrowserWindow.SetUrl
WebBrowserWindow.SetOpacity
WebBrowserWindow.Show
WebBrowserWindow.ShowDialog
WebBrowserWindow.Hide
WebBrowserWindow.Close
WebBrowserWindow.Navigate
WebBrowserWindow.Back
WebBrowserWindow.Forward
WebBrowserWindow.Home
WebBrowserWindow.Search
WebBrowserWindow.Stop
WebBrowserWindow.Print
WebBrowserWindow.Refresh
WebBrowserWindow.PageSetupDialog
WebBrowserWindow.PrintPreviewDialog
WebBrowserWindow.PrintDialog
WebBrowserWindow.PropertiesDialog
WebBrowserWindow.SaveAsDialog
WebBrowserWindow.EnableNavigation
WebBrowserWindow.EnableDrop
WebBrowserWindow.EnableContextMenu
WebBrowserWindow.EnableScrollBars
WebBrowserWindow.EnableShortcuts
WebBrowserWindow.EnableScriptErrors
WebBrowserWindow.IsNavigationEnabled
WebBrowserWindow.IsDropEnabled
WebBrowserWindow.IsContextMenuEnabled
WebBrowserWindow.IsScrollBarsEnabled
WebBrowserWindow.IsShortcutsEnabled
WebBrowserWindow.IsScriptErrorsEnabled
WebBrowserWindow.IsBusy
WebBrowserWindow.IsOffline
Download and extract the contents (2 files) of WebBrowserWindow.v.1.0.0.0.rar. The contents are:
- _at_WebBrowserWindow.xml
- template_WebBrowserWindow_Blank_Project.apt
Copy the first file (_at_WebBrowserWindow.xml) in the following location:
C:\Program Files\AutoPlay Media Studio 5.0 Professional\Data\Actions
This is in order to get the scripting actions in Action Wizard window.
Copy the second file (template_WebBrowserWindow_Blank_Project.apt) in the following location:
C:\Program Files\AutoPlay Media Studio 5.0 Professional\Templates
This is in order to get an blank project template that you can choose when you start ams.
Now start ams and you will see in New Project Options Web Browser Window Blank Project. Select that and you will get an blank project. Experiment with it, try the actions and see what it does.
How to use it:
Simple case scenario:
orCode:WebBrowserWindow.Navigate("http://somesite.com"); --WebBrowserWindow.SetUrl("http://somesite.com"); --Does the same. WebBrowserWindow.Show(); --WebBrowserWindow.ShowDialog(); --Blocks.
orCode:WebBrowserWindow.Show(); --WebBrowserWindow.ShowDialog(); --Blocks. WebBrowserWindow.Navigate("http://somesite.com"); --WebBrowserWindow.SetUrl("http://somesite.com"); --Does the same.
Set dynamic text/html content:Code:WebBrowserWindow.Navigate("http://somesite.com"); htmlContent = WebBrowserWindow.GetHtmlContent(); --Get hmtl content here without showing the window. --WebBrowserWindow.GetTextContent --The same as html content only gets text without html tags.
etc, etc, etc...Code:WebBrowserWindow.SetHtmlContent("<center>html content...</center>"); --WebBrowserWindow.GetTextContent("some text content...");
.Net 2.0 required
With Kind Regards
sside


