| View previous topic :: View next topic |
| Author |
Message |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Sun Aug 26, 2007 9:53 am Post subject: |
|
|
heres what you need to do
use FindWindow to get the handle of the IE window
use SetWindowText using the handle you got above and change the text of the editbox(which is a window).
all done
_________________
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Sun Aug 26, 2007 9:56 am Post subject: |
|
|
| x0r wrote: | FindWindow
FindWindowEx
SendMessage |
FindWindow = IE
FindWindowEx = The adressbox (the thing where url goes)?
SendMessage = To Change the adressbox?
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Sun Aug 26, 2007 9:58 am Post subject: |
|
|
good job
_________________
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Sun Aug 26, 2007 10:15 am Post subject: |
|
|
| How do i FindWindowEx adressbox ?
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Sun Aug 26, 2007 10:22 am Post subject: |
|
|
you gotta know the name of the window of the add. box
which i dont know.
does anyone?
_________________
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Tue Aug 28, 2007 10:22 am Post subject: |
|
|
x0r, i'm using Delphi.
this is my code:
| Code: |
procedure TForm1.Button1Click(Sender: TObject);
var
hWindow, hEdit: hWnd;
begin
hWindow := FindWindow('IEFrame', nil);
hEdit := FindWindowEx(hWindow, nil, 'ComboBox32Ex', nil);
end;
end.
|
Incompitable types: 'HWND' and 'Pointer'
Any way i can solve this?
EDIT!!
My code now looks like this, i solved the problem above
| Code: |
procedure TForm1.Button1Click(Sender: TObject);
var
hWindow, hEdit: hWnd;
begin
hWindow := FindWindow('IEFrame', nil);
hEdit := FindWindowEx(hWindow, 0, 'ComboBox32Ex', 0);
SendMessage(hEdit, WM_SETTEXT, 'http://www.google.com');
end;
end.
|
and now i got this problem:
Constant 0 convertet to nil
Incompitable types: 'Integer' and 'Pointer'
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Tue Aug 28, 2007 10:40 am Post subject: |
|
|
I still can't make it work, shal i declare a string or an Integer?
|
|
| Back to top |
|
 |
TheIndianGuy Advanced Cheater
Reputation: 102
Joined: 14 Jan 2007 Posts: 88
|
Posted: Tue Aug 28, 2007 1:44 pm Post subject: |
|
|
sorry i cant help but this is the way to do it in VB
webbrowser1.text = webbrowser1.documenttitle & "- Internet Explorer"
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Tue Aug 28, 2007 1:49 pm Post subject: |
|
|
Im not doing it with the webbrowser component.
Also, i did make it "work", i can compile it now, but i can't seem to edit the url. I'll ´post the source tommorow, since im quite busy now.
|
|
| Back to top |
|
 |
TheIndianGuy Advanced Cheater
Reputation: 102
Joined: 14 Jan 2007 Posts: 88
|
Posted: Tue Aug 28, 2007 1:51 pm Post subject: |
|
|
| oh ok sorry i didnt quite understand what you were asking then.
|
|
| Back to top |
|
 |
|