2 registered members (AndrewAMD, 1 invisible),
1,395
guests, and 12
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
EXEC String probs
#242855
12/26/08 03:41
12/26/08 03:41
|
Joined: Aug 2008
Posts: 153 Germany,Stuttgart
kwpsp
OP
Member
|
OP
Member
Joined: Aug 2008
Posts: 153
Germany,Stuttgart
|
Hey guys, I have a weird problem, have a look at it. I want that a part of the String 2 is controlled by the user. is this possible? thank you kwpsp my code:
NORMAL CODE: EXEC("IECapt.exe", "--url=http://google.de --out=1.bmp --min-width=300");
MODIFIED CODE: EXEC("IECapt.exe", "--url=input_string --out=1.bmp --min-width=300");
My system: - Core 2 Quad 6600(4x 2,4GhZ) - 2GB Ram - GeForce 7050(:-)) - Windows seven
|
|
|
Re: EXEC String probs
[Re: kwpsp]
#242856
12/26/08 04:16
12/26/08 04:16
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
you can create a string and then alter/modify it with str_cat, str_cpy
STRING* mystring= "#10";
str_cpy(mysqtring,"--url=");//copy --url= in it str_cat(mystring,inputstring);//add user input str_cat(mystring,"--out=1.bmp --min-width=300");//add the rest.
3333333333
|
|
|
Re: EXEC String probs
[Re: Quad]
#242956
12/26/08 18:28
12/26/08 18:28
|
Joined: Aug 2008
Posts: 153 Germany,Stuttgart
kwpsp
OP
Member
|
OP
Member
Joined: Aug 2008
Posts: 153
Germany,Stuttgart
|
Mhhh... Thank you Quadraxas, but it doesn't work, i don't know why but have a look at it:
EXEC("IECapt.exe","mystring"); is this right? lots of thx kwpsp
My system: - Core 2 Quad 6600(4x 2,4GhZ) - 2GB Ram - GeForce 7050(:-)) - Windows seven
|
|
|
Re: EXEC String probs
[Re: kwpsp]
#242959
12/26/08 18:36
12/26/08 18:36
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
this is right: EXEC("IECapt.exe",mystring);
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|