Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,618 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
EXEC String probs #242855
12/26/08 03:41
12/26/08 03:41
Joined: Aug 2008
Posts: 153
Germany,Stuttgart
kwpsp Offline OP
Member
kwpsp  Offline 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,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İ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 Offline OP
Member
kwpsp  Offline 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 Offline
Expert
WretchedSid  Offline
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

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1