Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 1,395 guests, and 12 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 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,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
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 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 | chip programmers | 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