pr0x
New Member
Posts: 70
|
Post by pr0x on Mar 7, 2004 22:06:49 GMT -5
i was wondering how to do multiple commands i tried this in a dll using br] lstrcpy(data,"dialog -md test test"); lstrcpy(data,"dialog -s test $mouse.dx $mouse.dy 500 500"); lstrcpy(data,"dialog -t test Testing..."); Return 2; Only performs the last command... any ideas?
|
|
|
Post by Dangermouse on Mar 8, 2004 3:16:20 GMT -5
Have you tried the commands in mirc, do they work? Do those commands append to the end of data? And you send those commands to mirc? If so the commands would turn out as dialog -md test testdialog -s test $mouse.dx $mouse.dy 500 500dialog -t test Testing... Only things i can think of without it being your C* code
|
|
pr0x
New Member
Posts: 70
|
Post by pr0x on Mar 8, 2004 15:32:26 GMT -5
well the command works... but it only performs the last command
lstrcpy(data,"dialog -md test test"); lstrcpy(data,"dialog -s test $mouse.dx $mouse.dy 500 500"); lstrcpy(data,"dialog -t test Testing..."); Return 2;
it would only perform dialog -t test Testing...
|
|
|
Post by Dangermouse on Mar 8, 2004 17:12:12 GMT -5
I dont know how youre sending commands to mirc, try adding | between commands
|
|
pr0x
New Member
Posts: 70
|
Post by pr0x on Mar 8, 2004 19:33:23 GMT -5
Aha... I have fixed the problem, Thanks ;D
|
|
|
Post by Dangermouse on Mar 9, 2004 4:30:47 GMT -5
lol, how didi you fix it
|
|
pr0x
New Member
Posts: 70
|
Post by pr0x on Mar 9, 2004 16:06:10 GMT -5
i just used the | in the mirc code like you suggested
example: lstrcpy(data,"echo -a test | echo -a test2");
;D#nosmileys
|
|
Trad
New Member
Posts: 1,122
|
Post by Trad on May 4, 2004 16:00:32 GMT -5
the reason why... data is filled with " dialog -md test test" then when this command comes along (lstrcpy(data,"dialog -s test $mouse.dx $mouse.dy 500 500") data has now been cleared and it now contains that.. then the third time, its cleared and the last thing is added, so the only thing left when it returns is the last thing you put it in it.
|
|
|
Post by Fallout on May 8, 2004 15:00:17 GMT -5
i have the same problem, but i want to use hmm... over 40 lines ... and i can`t just put them in one line..... ins't there any other way ?
|
|
|
Post by Dangermouse on May 8, 2004 16:21:14 GMT -5
im sure there is a function in C++ to append to a string
|
|
|
Post by extern on Jun 1, 2004 5:58:53 GMT -5
Of course, strcat/strncat
|
|