Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Get IE window and change the url. [Delphi]
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Sun Aug 26, 2007 9:53 am    Post subject: Reply with quote

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
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Sun Aug 26, 2007 9:56 am    Post subject: Reply with quote

x0r wrote:
FindWindow
FindWindowEx
SendMessage


FindWindow = IE
FindWindowEx = The adressbox (the thing where url goes)?
SendMessage = To Change the adressbox?
Back to top
View user's profile Send private message MSN Messenger
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Sun Aug 26, 2007 9:58 am    Post subject: Reply with quote

good job
_________________
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Sun Aug 26, 2007 10:15 am    Post subject: Reply with quote

How do i FindWindowEx adressbox ?
Back to top
View user's profile Send private message MSN Messenger
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Sun Aug 26, 2007 10:22 am    Post subject: Reply with quote

you gotta know the name of the window of the add. box

which i dont know.


does anyone?

_________________
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Tue Aug 28, 2007 10:22 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Tue Aug 28, 2007 10:40 am    Post subject: Reply with quote

I still can't make it work, shal i declare a string or an Integer? Question
Back to top
View user's profile Send private message MSN Messenger
TheIndianGuy
Advanced Cheater
Reputation: 102

Joined: 14 Jan 2007
Posts: 88

PostPosted: Tue Aug 28, 2007 1:44 pm    Post subject: Reply with quote

sorry i cant help but this is the way to do it in VB

webbrowser1.text = webbrowser1.documenttitle & "- Internet Explorer"
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Tue Aug 28, 2007 1:49 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
TheIndianGuy
Advanced Cheater
Reputation: 102

Joined: 14 Jan 2007
Posts: 88

PostPosted: Tue Aug 28, 2007 1:51 pm    Post subject: Reply with quote

oh ok sorry i didnt quite understand what you were asking then.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites