Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Join Date
    Mar 2007
    Location
    HeaveN
    Posts
    534

    need help with page title

    I am using that code on page on load event it works perfect but i have multiple pages so i can only set the web1 text to title... i put the same code to all the web objects but they dont change the title... i only see the web1 title. !!!!!

    Page On Load :
    Code:
    WebBrowserExtension.Initialize(Application.GetWndHandle());
    title = WebBrowserExtension.GetTitle();
    Window.SetText(Application.GetWndHandle(), title);
    WebBrowserExtension.UnInitialize();
    i need help with it
    thanks

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    you are setting the title to what it already is

    try like this:
    Code:
    WebBrowserExtension.Initialize(Application.GetWndHandle());
    Window.SetText(Application.GetWndHandle(), "Your Text Here");
    WebBrowserExtension.UnInitialize();
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Mar 2007
    Location
    HeaveN
    Posts
    534
    thanks RizlaUK but what i am trying to do is get the Tittle of web page and show it on my projects status bar...

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    ah, ok, in that case its the wrong hWnd


    try like this:
    Code:
    WebBrowserExtension.Initialize(Web.GetProperties("Web1").WindowHandle);
    title = WebBrowserExtension.GetTitle();
    Window.SetText(Application.GetWndHandle(), title);
    WebBrowserExtension.UnInitialize();
    Open your eyes to Narcissism, Don't let her destroy your life!!

  5. #5
    Join Date
    Mar 2007
    Location
    HeaveN
    Posts
    534
    u r the king RizlaUK thanks alot

  6. #6
    Join Date
    Mar 2007
    Location
    HeaveN
    Posts
    534
    how can i make it show my text if it is an empty page (no tittle) about:blank !!!

  7. #7
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by jackdaniels View Post
    how can i make it show my text if it is an empty page (no tittle)!!!
    Code:
    WebBrowserExtension.Initialize(Application.GetWndHandle());
    title = WebBrowserExtension.GetTitle();
    if title == what ever the blank page says if nothing then "" then
    tilte = "no tittle"
    else
    title = title
    end
    Window.SetText(Application.GetWndHandle(), title);
    WebBrowserExtension.UnInitialize();
    oops there was a error
    Last edited by rexzooly; 03-23-2008 at 06:00 AM. Reason: ooops

  8. #8
    Join Date
    May 2006
    Posts
    5,380
    Code:
    WebBrowserExtension.Initialize(Web.GetProperties("Web1").WindowHandle);
    title = WebBrowserExtension.GetTitle();
    if title == "about:blank" then title == "Your Text Here" end
    Window.SetText(Application.GetWndHandle(), title);
    WebBrowserExtension.UnInitialize();
    Open your eyes to Narcissism, Don't let her destroy your life!!

  9. #9
    Join Date
    Mar 2007
    Location
    HeaveN
    Posts
    534
    this didnt work !!!!!!

    WebBrowserExtension.Initialize(Web.GetProperties(" Web1").WindowHandle);
    title = WebBrowserExtension.GetTitle();
    if title == "about:blank" then
    title = "no tittle"
    else
    title = title
    end
    Window.SetText(Application.GetWndHandle(), title);
    WebBrowserExtension.UnInitialize();
    Last edited by jackdaniels; 03-23-2008 at 06:13 AM.

  10. #10
    Join Date
    Mar 2007
    Location
    HeaveN
    Posts
    534
    got it worked thanks alot RizlaUK & rexzooly

    Code:
    WebBrowserExtension.Initialize(Web.GetProperties("Web2").WindowHandle);
    title = WebBrowserExtension.GetTitle();
    if title == "" then
    title = "no tittle"
    else
    title = title
    end
    Window.SetText(Application.GetWndHandle(), title);
    WebBrowserExtension.UnInitialize();

Similar Threads

  1. change title bar on each page?
    By insane in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 05-16-2007, 01:47 PM
  2. html page and link
    By mountain07 in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 11-19-2005, 09:00 PM
  3. Page Title
    By element78 in forum AutoPlay Media Studio 4.0
    Replies: 3
    Last Post: 09-11-2003, 02:58 PM
  4. Replies: 1
    Last Post: 02-12-2003, 02:12 PM
  5. HOWTO: Create a Page Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-26-2002, 05:20 AM

Posting Permissions

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