| |
| |
| |
|
Comments:
<0> hi <0> cna anybody help me im using a script file server jIRCoff and i have a problem the bot aceppts me dcc chats but whn a person type the trigger the bot sends a chat but this cant connect anybody cna help please! <1> read the topic <0> not scripts? <0> ok thanx <2> =) <3> hi, im a bit confused <3> can some explain me how to use string replace <3> maybe an example
<3> the string "test string just here" should be searched for the pattern "ere" and this should be replaced with "aha" <3> .tcl string first "lol" <4> Scantraxx: #1171 (1894 clicks) Tcl error: wrong # args: should be "string first subString string ?startIndex?" <3> .tcl string first "lol" "asdflolrofl" <4> Scantraxx: #1173 (625 clicks) Tcl: 4 <3> .tcl string replace <4> Scantraxx: #1175 (1874 clicks) Tcl error: wrong # args: should be "string replace string first last ?string?" <3> .tcl string replace "asdflolrofl" [string first "lol" "asdflolrofl"] [string last "lol" "asdflolrofl"] <4> Scantraxx: #1177 (1372 clicks) Tcl: asdfolrofl <5> ;string replace "boobies and ***" "***" "beer" <4> th3dge: #1178 (2096 clicks) Tcl error: bad index "***": must be integer?[+-]integer? or end?[+-]integer? <5> oh <5> ;string replace "boobies and ***" 12 14 <4> th3dge: #1180 (660 clicks) Tcl: boobies and <5> ;string replace "boobies and ***" 12 14 "beer" <4> th3dge: #1181 (712 clicks) Tcl: boobies and beer <3> ah nice <3> but how get i the 12 and 14 <5> you either count em manually or do string first / string last <3> and that would look like when im using string first and last at this example <5> ;set string "boobies and ***" ; string replace $string [string first "***" $string] [string last "***" $string] "beer" <4> th3dge: #1186 (1449 clicks) Tcl: boobies and beerss <5> hmm <5> ;[string last "***" $string] <5> ;string last "***" $string <4> th3dge: #1188 (651 clicks) Tcl: 12 <5> ;string first "***" $string <4> th3dge: #1189 (671 clicks) Tcl: 12 <3> ;string last "s" "***" $string <4> Scantraxx: #1190 (2040 clicks) Tcl error: bad index "boobies and ***": must be integer?[+-]integer? or end?[+-]integer? <5> oh thats first char <5> string last does not give you the last char of the matched sequence <5> ;set string "boobies and ***" ; set search "***" ; set first [string first "***" $string] ; string replace $string $first [expr $first+[string length $search]] "beer" <4> th3dge: #1193 (1641 clicks) Tcl: boobies and beer <5> ;set string "boobies and ***" ; set search "***" ; set first [string first $search $string] ; string replace $string $first [expr $first+[string length $search]] "beer"
<4> th3dge: #1194 (1646 clicks) Tcl: boobies and beer <5> something like that would work <5> lol <3> but when search doesnt exist? <3> je starts replacing the first which starts with an a <3> ;set string "boobies and ax" ; set search "***" ; set first [string first $search $string] ; string replace $string $first [expr $first+[string length $search]] "beer" <4> Scantraxx: #1199 (1607 clicks) Tcl: beerbies and ax <3> hmm, dont ^^ <5> well do a check <5> regexp <6> ;set a 0; while (1) { incr a } ; return $a <4> Gotisch: #1203 (98980 clicks) Tcl error: Timed out after 100ms. <3> when i want to use [ and ] in a string, what do i have to do that this isnt used as a command? <7> Scantraxx: \[ and \] <7> same for \$ <3> k, thx <7> Scantraxx: or place the string inside { } <7> instead of " " <3> how can i hand over a array to a proc? <8> array get / array set <8> or use upvar and give the variable name <9> When i am having this in the script.. "bind time - "00 * * * *" text2time" .. When does it do that action? And how do i change it? <10> every full hour =) <10> and to change it type in domething else =) <10> something* <11> !rules <11> Hello, I am wondering what approach I should take in making c++ applications with TK GUI <12> umm <13> theres a module for that on the wiki, lemme find it <11> Thanks <13> http://cpptcl.sourceforge.net/ <13> http://wiki.tcl.tk/C++Tcl <13> http://wiki.tcl.tk/12932 <13> there ya go, have a look there <11> oh I was reading the documentation for that and it requires that the end user has boost installed on it <11> so I am going to p*** on that. <11> What do you think about mktclapp <13> no idea <11> ok <11> thanks
Return to
#tcl or Go to some related
logs:
pigtailsroundasses tiffany #stocks fixed function directx fla imagevuex #flash .38 spoecial
beash of cuba past the windows xp login
#nhl #windowsxp
|
|