Search found 59 matches

by smbs
07 May 2019, 13:35
Forum: Ask For Help
Topic: tf.ahk using library and variables
Replies: 9
Views: 182

Re: tf.ahk using library and variables

MsgBox % ">" var "<"
Really great tip!
Again many thanx
by smbs
07 May 2019, 13:26
Forum: Ask For Help
Topic: tf.ahk using library and variables
Replies: 9
Views: 182

Re: tf.ahk using library and variables

Many thanx
Really learnt something!!!
by smbs
06 May 2019, 17:44
Forum: Ask For Help
Topic: tf.ahk using library and variables
Replies: 9
Views: 182

Re: tf.ahk using library and variables

Gregster
Thanx
by smbs
06 May 2019, 17:17
Forum: Ask For Help
Topic: tf.ahk using library and variables
Replies: 9
Views: 182

Re: tf.ahk using library and variables

2change1.txt EXTM3U EXTINF:peter http://www/1.ts EXTINF:james http://www/2.ts ------------------------------------------------ names.txt 1,panxxx1.ts ............................................... FileEncoding ,UTF-8 #include c:\ahk\tf.ahk global text2replace Loop, read, c:\1\names.txt { lineconte...
by smbs
06 May 2019, 15:03
Forum: Ask For Help
Topic: tf.ahk using library and variables
Replies: 9
Views: 182

Re: tf.ahk using library and variables

thanx for reply
Changed file extension -no it still not working
by smbs
06 May 2019, 14:40
Forum: Ask For Help
Topic: tf.ahk using library and variables
Replies: 9
Views: 182

tf.ahk using library and variables

linenum is a variable TF_ReplaceInLines("c:\1\2change.txt", linenum-1, linenum-1, "text2replace,", "channelname") The above replaces text "text2replace" with "channelname" in line defined by value of variable linenum-1 Above works as expected I require the following which does not work TF_ReplaceInL...
by smbs
24 Jul 2018, 10:57
Forum: Ask For Help
Topic: Search replace multi word variable
Replies: 10
Views: 470

Re: Search replace multi word variable

@Rohweder
Many thanx now I understand
Your English is fine I wish my German was 1/10 as good as your English!
Have a good evening!!
by smbs
24 Jul 2018, 03:25
Forum: Ask For Help
Topic: Search replace multi word variable
Replies: 10
Views: 470

Re: Search replace multi word variable

@Rohweder
Having trouble understanding your code--could u explain each line starting from ValTa%NoSpace% .= Key "=" Val "`n"
Many really appreciate it
by smbs
23 Jul 2018, 14:45
Forum: Ask For Help
Topic: Search replace multi word variable
Replies: 10
Views: 470

Re: Search replace multi word variable

Many thanx to all you guys for your prompt answers
I have really learnt a lot
I must say this forum never ceases to amaze me!
Keep it and once again many thanx
by smbs
23 Jul 2018, 05:12
Forum: Ask For Help
Topic: Search replace multi word variable
Replies: 10
Views: 470

Re: Search replace multi word variable

Many thanx for your answer Yeah I understand what you are saying but my key file is very large and with no real pattern--- what I showed was only a snippet showing the problem This solution would not work for values like "axn white, axn green, axn blue" the key would be the same key for all values I...
by smbs
22 Jul 2018, 16:44
Forum: Ask For Help
Topic: Search replace multi word variable
Replies: 10
Views: 470

Search replace multi word variable

I have a key value table with a large amount of values value key table below ax=1 ax hd =2 ax hd black =3 ax hd black white =4 my text file looks like the following abc, ax xccvb, ax hd black 122, ax hd black white 4666454, ax hd I want the output file to look like the following: abc, 1 xccvb, 3 122...
by smbs
03 Nov 2017, 06:31
Forum: Ask For Help
Topic: Change duplicate lines in file
Replies: 7
Views: 593

Re: Change duplicate lines in file

Many thanx again
by smbs
02 Oct 2017, 04:17
Forum: Ask For Help
Topic: Change duplicate lines in file
Replies: 7
Views: 593

Re: Change duplicate lines in file

Many thanx
Studied your code and feel I really learnt a lot regarding working with arrays!
Thanx for your patience and sharing your knowledge
Regards
by smbs
01 Oct 2017, 16:03
Forum: Ask For Help
Topic: Change duplicate lines in file
Replies: 7
Views: 593

Re: Change duplicate lines in file

Brilliant !!!
Trying to understand how it works but beyond me--can't make head or tails of your code!
If you have the patience could u explain.
Anyway thanx very much for the solution it works great for what I need to do.
Again many thanx!!
by smbs
01 Oct 2017, 09:33
Forum: Ask For Help
Topic: Change duplicate lines in file
Replies: 7
Views: 593

Change duplicate lines in file

I have a large text file which cannot be sorted (line order must remain as is)- I want to append text to all duplicate lines (see snippet below) so no duplicate lines remain in file Many thanx hhh mike some string k kkpeter some string 1 h uhjon some string 45paul some string h uhjon some string k k...
by smbs
01 Oct 2017, 09:25
Forum: Ask For Help
Topic: using "or" in variables
Replies: 2
Views: 281

Re: using "or" in variables

Mant thanx!
by smbs
30 Sep 2017, 17:30
Forum: Ask For Help
Topic: using "or" in variables
Replies: 2
Views: 281

using "or" in variables

lookfor :="day" t:=TF_RegExReplaceinlines(t,1,,"im)^(?!.*" lookfor ").*$","") Above code returns all lines with contain "day" I am trying to return all lines which contain day or night I have tried the following and many other combos without success lookfor :="day" or "night" lookfor :="day"||"nigh...
by smbs
03 Sep 2017, 04:42
Forum: Ask For Help
Topic: TF library TF_RegExReplaceInLines
Replies: 8
Views: 1152

Re: TF library TF_RegExReplaceInLines

Guest!
Just as an exercise--I am trying to learn
Is it possible using one line only TF_RegExReplaceInLines(.........) to get output as shown below--only the relevant text of lines name and fname above
xxxxxxx
my text
I have tried all sorts of combinations without success
Thanx
by smbs
03 Sep 2017, 04:42
Forum: Ask For Help
Topic: TF library TF_RegExReplaceInLines
Replies: 8
Views: 1152

Re: TF library TF_RegExReplaceInLines

double post deleted!
by smbs
02 Sep 2017, 17:34
Forum: Ask For Help
Topic: TF library TF_RegExReplaceInLines
Replies: 8
Views: 1152

Re: TF library TF_RegExReplaceInLines

Many thanx ---read the relevant docs and now understand the "look-ahead"
Again thanks for putting me in the right direction!

Go to advanced search