| View previous topic :: View next topic |
| Author |
Message |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Wed Jul 18, 2007 10:43 am Post subject: Webbrowser Problems... |
|
|
Ok, i know this danish site (arto.dk)
Each user got an ID, this is the link before the id
http://www.arto.dk/brugere/brugerinfo.asp?id=*ID PLACED HERE*
now, i want to be able to use a Search ID at my webbrowser but then i tried something with
procedure TForm2.SpeedButton1Click(Sender: TObject);
var
Base : String;
ID : String;
Begin
Base := 'http://www.arto.dk/brugere/brugerinfo.asp?id=';
ID := Edit1.Text;
arto.Navigate(Base+ID);
end;
Arto is my webbrowsers name. But this doesnt seem to work. Any one know a way to make it work?
Also, you can go on each account by using *ACCOUNT NAME*.arto.dk
My account name is Kev, so i can enter the url : www.kev.arto.dk and it goes directly to my profile.
so i also want a Search by Name function, which searchs kinda like the ID, but with edit.text infront of the url.
exapmle: Whatever-You-Enter-In-The-TextBox.arto.dk
thanks in advance.
|
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Wed Jul 18, 2007 10:56 am Post subject: |
|
|
I don't really understand your question, but I think "lstrcat" is what you are looking for.
_________________
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Jul 18, 2007 11:09 am Post subject: |
|
|
| just tack on edit.text like you're doing. if it doesn't work, check what it actually ends up as.
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Wed Jul 18, 2007 11:11 am Post subject: |
|
|
I dont get what you mean ... That code i used wont work.
edit: If i enter a valid id, it comes up with the CPU window... but if i enter a not valid id/account deleted or blocked it shows it...
Last edited by Kevin on Wed Jul 18, 2007 11:15 am; edited 1 time in total |
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Wed Jul 18, 2007 11:12 am Post subject: |
|
|
http://msdn2.microsoft.com/en-us/library/ms647487.aspx
It takes a string and adds another one.
Here's a code in C, you can convert it to Delphi with no problem(I think)
| Code: | char link[1024] = ".arto.dk";
char username[16];
printf("Enter the username: ");
scanf("%s",username);
lstrcat(username,link);
printf("%s",username); |
The output of the program is:
Enter the username: Kev
Kev.arto.dk
_________________
Last edited by UnLmtD on Wed Jul 18, 2007 11:18 am; edited 1 time in total |
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Wed Jul 18, 2007 11:17 am Post subject: |
|
|
i have no experience in C or C++, could you convert the code for me ?
edit: this pops-up if i enter a valid ID
| Description: |
|
| Filesize: |
133.23 KB |
| Viewed: |
7264 Time(s) |

|
|
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Wed Jul 18, 2007 11:41 am Post subject: |
|
|
Sorry, the only time I touched to Delphi is when I had to edit CE. But it should be hard.
Declare 2 variables, for the web site ".arto.dk", and the other for the user name.
Ask the user to input a name, and store it in your buffer.
the lstrcat should be the same I beleive, then in my case "username" holds the final link.
_________________
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Wed Jul 18, 2007 11:47 am Post subject: |
|
|
kaspersky told me this
arto.navigate('http://www.arto.dk/brugere/brugerinfo.asp?id=' + edit1.text)
im using that because its a bit more simple. But i still get that CPU error thingy...
|
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Wed Jul 18, 2007 11:48 am Post subject: |
|
|
I would like to mention Renko about this:
procedure button1.click
begin
webbrowser1.navigate('http://www.arto.dk/brugere/brugerinfo.asp?id='+Edit1.text)
end;
thats all
Renko ro.....cks
P.S - LOL! i learned how to glitch in Soldier Front !
P.S 2 - LOL!,i got 210k in Rounder Poker @ ijji + Amature Rank
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Wed Jul 18, 2007 11:51 am Post subject: |
|
|
i saved the project and ran it from the saved file, then it works
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Wed Jul 18, 2007 3:16 pm Post subject: |
|
|
i sent the code to you on msn and its better than any of the codes here >.>
i hope you used mine
_________________
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Wed Jul 18, 2007 3:21 pm Post subject: |
|
|
I used kaspersky's.
Since it seemed easier to me, and i saw no difrence when compiling.
also i made it all work
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Wed Jul 18, 2007 3:29 pm Post subject: |
|
|
say you have 5 things using the str in the form and you use a variable instead of the actual text of the url and you want to change all 5 links at 1 time you can with a variable = more effecient and easy to read
if you use things like that and you get into high level programs and use 'text' like that w/o a string you'll be in trouble
_________________
|
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Wed Jul 18, 2007 3:52 pm Post subject: |
|
|
| blankrider wrote: | say you have 5 things using the str in the form and you use a variable instead of the actual text of the url and you want to change all 5 links at 1 time you can with a variable = more effecient and easy to read
if you use things like that and you get into high level programs and use 'text' like that w/o a string you'll be in trouble |
That's what I did in my example. And wtf is high level programs?
_________________
|
|
| Back to top |
|
 |
|