Click here to Skip to main content
15,892,575 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to get url from browser to C# application [modified] Pin
Saint_pl27-Aug-10 5:27
Saint_pl27-Aug-10 5:27 
Yes, I've the handle, but not this what I need Smile | :)
In IE analogical way works. I don't know why it catch a window where it's not a child with className Chrome_AutocompleteEditView...so window where is hidden url from active tab
public string GetChromeUrl()
        {
            IntPtr mainWindow = FindWindow("Chrome_WidgetWin_0", null);
            IntPtr edit = FindWindowEx(mainWindow, IntPtr.Zero, "Chrome_AutocompleteEditView", null);
            int length = SendMessage(edit, WM_GETTEXTLENGTH, 0, 0);
            StringBuilder sb = new StringBuilder(length + 1);
            SendMessage(edit, WM_GETTEXT, length + 1, sb);
            return sb.ToString();
        }

Any idea? Smile | :)


ok, it's easy, GetWindow() with second par = GW_HWNDNEXT
this what I'm looking for Smile | :)

modified on Wednesday, September 1, 2010 8:24 AM

Questionwebspider/crawler extract Javascript related info Pin
michael_jhons26-Aug-10 9:39
michael_jhons26-Aug-10 9:39 
AnswerRe: webspider/crawler extract Javascript related info Pin
Ennis Ray Lynch, Jr.26-Aug-10 10:05
Ennis Ray Lynch, Jr.26-Aug-10 10:05 
AnswerRe: webspider/crawler extract Javascript related info Pin
Ravi Bhavnani26-Aug-10 11:57
professionalRavi Bhavnani26-Aug-10 11:57 
AnswerRe: webspider/crawler extract Javascript related info Pin
Pete O'Hanlon26-Aug-10 12:00
mvePete O'Hanlon26-Aug-10 12:00 
QuestionCompress specific text for storage. Pin
kevinnicol26-Aug-10 8:52
kevinnicol26-Aug-10 8:52 
AnswerRe: Compress specific text for storage. Pin
Luc Pattyn26-Aug-10 9:05
sitebuilderLuc Pattyn26-Aug-10 9:05 
GeneralRe: Compress specific text for storage. Pin
kevinnicol26-Aug-10 9:08
kevinnicol26-Aug-10 9:08 
GeneralRe: Compress specific text for storage. Pin
harold aptroot26-Aug-10 9:25
harold aptroot26-Aug-10 9:25 
GeneralRe: Compress specific text for storage. Pin
Luc Pattyn26-Aug-10 9:29
sitebuilderLuc Pattyn26-Aug-10 9:29 
GeneralRe: Compress specific text for storage. Pin
AspDotNetDev26-Aug-10 11:04
protectorAspDotNetDev26-Aug-10 11:04 
GeneralRe: Compress specific text for storage. Pin
Luc Pattyn26-Aug-10 11:09
sitebuilderLuc Pattyn26-Aug-10 11:09 
GeneralRe: Compress specific text for storage. Pin
AspDotNetDev26-Aug-10 11:16
protectorAspDotNetDev26-Aug-10 11:16 
GeneralRe: Compress specific text for storage. Pin
Luc Pattyn26-Aug-10 11:26
sitebuilderLuc Pattyn26-Aug-10 11:26 
GeneralRe: Compress specific text for storage. Pin
harold aptroot26-Aug-10 11:28
harold aptroot26-Aug-10 11:28 
GeneralRe: Compress specific text for storage. Pin
AspDotNetDev26-Aug-10 11:47
protectorAspDotNetDev26-Aug-10 11:47 
GeneralRe: Compress specific text for storage. Pin
harold aptroot26-Aug-10 12:01
harold aptroot26-Aug-10 12:01 
AnswerRe: Compress specific text for storage. Pin
Ian Shlasko26-Aug-10 10:02
Ian Shlasko26-Aug-10 10:02 
GeneralRe: Compress specific text for storage. Pin
Luc Pattyn26-Aug-10 10:09
sitebuilderLuc Pattyn26-Aug-10 10:09 
GeneralRe: Compress specific text for storage. Pin
Ian Shlasko26-Aug-10 11:34
Ian Shlasko26-Aug-10 11:34 
GeneralRe: Compress specific text for storage. Pin
Luc Pattyn26-Aug-10 11:48
sitebuilderLuc Pattyn26-Aug-10 11:48 
GeneralRe: Compress specific text for storage. Pin
AspDotNetDev26-Aug-10 11:51
protectorAspDotNetDev26-Aug-10 11:51 
GeneralRe: Compress specific text for storage. Pin
Ian Shlasko26-Aug-10 11:53
Ian Shlasko26-Aug-10 11:53 
GeneralRe: Compress specific text for storage. Pin
AspDotNetDev26-Aug-10 12:02
protectorAspDotNetDev26-Aug-10 12:02 
GeneralRe: Compress specific text for storage. Pin
Ian Shlasko26-Aug-10 12:10
Ian Shlasko26-Aug-10 12:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.