Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 44
  1. #1
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475

    WebBrowserWindow

    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:
    1. _at_WebBrowserWindow.xml
    2. 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:

    Code:
    WebBrowserWindow.Navigate("http://somesite.com");
    --WebBrowserWindow.SetUrl("http://somesite.com"); --Does the same.
    WebBrowserWindow.Show();
    --WebBrowserWindow.ShowDialog(); --Blocks.
    or

    Code:
    WebBrowserWindow.Show();
    --WebBrowserWindow.ShowDialog(); --Blocks.
    WebBrowserWindow.Navigate("http://somesite.com");
    --WebBrowserWindow.SetUrl("http://somesite.com"); --Does the same.
    or

    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.
    Set dynamic text/html content:

    Code:
    WebBrowserWindow.SetHtmlContent("<center>html content...</center>");
    --WebBrowserWindow.GetTextContent("some text content...");
    etc, etc, etc...

    .Net 2.0 required

    With Kind Regards
    sside
    Last edited by sside; 02-10-2007 at 10:45 AM.

  2. #2
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475

    Correction

    This one:

    Set dynamic text/html content:

    Code:
    WebBrowserWindow.SetHtmlContent("<center>html content...</center>");
    --WebBrowserWindow.GetTextContent("some text content...");
    should be:

    Set dynamic text/html content:

    Code:
    WebBrowserWindow.SetHtmlContent("<center>html content...</center>");
    --WebBrowserWindow.SetTextContent("some text content...");
    It is the little things that make the big one.

    With Kind Regards
    sside

  3. #3
    Join Date
    May 2004
    Location
    Belgium
    Posts
    129
    Very cool thnx

    on small question
    if say the webbrowserwindow opens a URL like
    "http://somedomain/caseoverview"
    en when I navigate on that page it opens a child window containing
    "http://somedomain/casedetails?NR=123456....."

    is it possible to get control of this "Child" window ??
    like to get content "GetHtmlContent"

  4. #4
    Join Date
    Jan 2007
    Posts
    56
    Hi SSide

    Thanks for the DLL, is there any instructions? I'm kind of lost as to how to
    use this.

    Thanks,
    Patrick

  5. #5
    Join Date
    Jan 2007
    Posts
    56
    OK, I see, we have to use:

    WebBrowserWindow.Show();
    or
    WebBrowserWindow.ShowDialog();

    ..which opens a browser window we can manipulate with the other
    functions..

    OK, I think I understand now!

    Cool!
    Patrick

  6. #6
    Join Date
    Jan 2007
    Posts
    56
    Hi Sside,

    The only thing I'd like to see added is the ability to replace that ugly
    title-bar icon with something more appealing, other than that, this is
    pretty cool.

    Thanks again,
    Patrick

  7. #7
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475
    Quote Originally Posted by johnraus View Post
    is it possible to get control of this "Child" window ??
    No. The "child" window is opened in ie (internet explorer) and WebBrowserWindow.dll can't control that.
    It is not a child window as it maintains no relation with the "parent". If the "parent" is closed child is not.

    Quote Originally Posted by johnraus View Post
    like to get content "GetHtmlContent"
    If you want to get html content of any page opened in ie, right now is not possible as i have not developed something to cover that. It looks interesting and i will look into it. In the meaning time, if you want to get the html content of any page "in the wild" look at my library (net.dll v.1.0.0.3, GetWebPageContent function) located here:

    http://indigorose.com/forums/showthread.php?t=18725

    It uses different approach than WebBrowserWindow.GetHtmlContent, and may be it does what you're after.

    With Kind Regards
    sside

  8. #8
    Join Date
    May 2004
    Location
    Belgium
    Posts
    129
    Quote Originally Posted by sside View Post
    f you want to get the html content of any page "in the wild" look at my library (net.dll v.1.0.0.3, GetWebPageContent function) located here:

    http://indigorose.com/forums/showthread.php?t=18725

    It uses different approach than WebBrowserWindow.GetHtmlContent, and may be it does what you're after.

    sside
    I've seen all DLL's you developed, even this one, but seemed to have overlooked that function and how it can be used ...

    Thnx for sharing, and your quick reply

  9. #9
    Join Date
    May 2004
    Location
    Belgium
    Posts
    129
    Quote Originally Posted by sside View Post
    if you want to get the html content of any page "in the wild" look at my library (net.dll v.1.0.0.3, GetWebPageContent function) located here:

    http://indigorose.com/forums/showthread.php?t=18725

    sside
    Oops, your solution doesn suit my needs yet,

    you had me going there .....

    I'll explain, I'm looking for this one for last half year ... project on hold for now
    I have to log in on a certain website that contains an overview of some articles (very secure encrypted, session ID's and so on ..) I can do this with AMS web object, also getting htmlsource to do some analyses, (I use javascript and clipboard) no problem at all, BUT ... lately website has changed and
    when I open an article, a second page IE opens outside AMS, an I still haven't found any way to get the data (htmlsource) to work with in AMS

    Thnx for your effort anyway
    Regards

  10. #10
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475

    WebBrowserWindow v.1.0.0.1

    Added:

    WebBrowserWindow.GetIcon
    WebBrowserWindow.SetIcon

    Download

    Follow the instructions just like WebBrowserWindow.v.1.0.0.0 (look at the first post).
    Overwrite the old files with the new ones.

    Example:

    To set an icon:

    Code:
    WebBrowserWindow.SetIcon("myicon.ico");

    To get the icon filename set previosly with WebBrowserWindow.SetIcon:

    Code:
    iconFileName = WebBrowserWindow.GetIcon();

    If you didn't set the icon, an empty string is returned. Icon must be an icon file, not jpeg, bmp or other.


    With Kind Regards
    sside

  11. #11
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475
    John

    I had different picture in mind of the situation.

    Anyway, you must be able to navigate at the url of the external ie window that popups. Just copy the url from the external window and insert it in ams. Do the usual stuff (how you navigated in first place).

    I didn't know that credentials (username+password) were involved in getting the html content. I will update net.dll these days.

    With Kind Regards
    sside

  12. #12
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475
    Quote Originally Posted by coderanger View Post
    The only thing I'd like to see added is the ability to replace that ugly
    title-bar icon with something more appealing, other than that, this is
    pretty cool.
    coderanger, i left the ugly icon in place, but i provided the possibility to set your own. If you're still not happy i will remove it in definitely the next version .
    I'm happy that you're up and running now .

    With Kind Regards
    sside

  13. #13
    Join Date
    Jan 2007
    Posts
    56
    Thanks for the added functionality sside, I appreciate it!



    Patrick

  14. #14
    Join Date
    May 2004
    Location
    Belgium
    Posts
    129
    Quote Originally Posted by sside View Post
    John

    I had different picture in mind of the situation.

    Anyway, you must be able to navigate at the url of the external ie window that popups. Just copy the url from the external window and insert it in ams. Do the usual stuff (how you navigated in first place).

    I didn't know that credentials (username+password) were involved in getting the html content. I will update net.dll these days.

    With Kind Regards
    sside
    I've tried all that, but it is harder than you think, if the second (child) window isn't isn't opened by the Parent, my session ID is invalid, it also posts lot of other data, I've tried adding my logon credentials with no success, i've tried opening to browser windows to that website, an logged in on both, wich also got detected and terminated my sessions. This is a very tricky one, but I won't give up, eventually I'll see the light and find a way

    I appriciate all your efforts very much
    regards johnraus

  15. #15
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475

    WebBrowserWindow v.1.0.0.2

    Added:
    WebBrowserWindow.EnablePopupWindow
    WebBrowserWindow.EnableLoadPopupInMainWindow
    WebBrowserWindow.IsPopupWindowEnabled
    WebBrowserWindow.IsLoadPopupInMainWindowEnabled

    Fixed:
    A few things in ams project globals. What once was DLL_CALL_STDCALL in some occasions must be DLL_CALL_CDECL or ams application could/would crash. This is mostly when parameters are numbers.


    WebBrowserWindow.EnablePopupWindow
    Enables disables popup windows. When you click a link that opens in a external window, it is considered popup window.


    WebBrowserWindow.EnableLoadPopupInMainWindow
    Enables disables the loading of popup windows into main window (WebBrowserWindow). This will force popup window to open into main window.


    WebBrowserWindow.IsPopupWindowEnabled
    Check if popup windows are enabled.


    WebBrowserWindow.IsLoadPopupInMainWindowEnabled
    Check if popup windows will load into main window.

    Download

    Follow the instructions as in v.1.0.0.0, v.1.0.0.1.

    With Kind Regards
    sside

Page 1 of 3 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts