Search found 64 matches

by Maxsteinfeld
04 May 2019, 16:14
Forum: Ask For Help
Topic: Question about RegExMatch() Topic is solved
Replies: 13
Views: 766

Re: Question about RegExMatch() Topic is solved

@ just me
@Klarion
@Odlanir
Thx for your help
by Maxsteinfeld
04 May 2019, 10:43
Forum: Ask For Help
Topic: Question about RegExMatch() Topic is solved
Replies: 13
Views: 766

Re: Question about RegExMatch() Topic is solved

@ just me wow ! big THX works fine so far :-) BUT a very small (?) problem if; var = [test] ;var with [ and ] str = [test] some text test or more bla bla if regexmatch(str, "^" . var . "\s.*") msgbox % var " found at the beginning of " str in this case Regexmatch does not work unfortunately do not f...
by Maxsteinfeld
04 May 2019, 09:58
Forum: Ask For Help
Topic: Question about RegExMatch() Topic is solved
Replies: 13
Views: 766

Question about RegExMatch() Topic is solved

Hi @ all is it possible to use a var in NeedleRegEx ? e.g. var = test str = test some text test or more bla bla if regexmatch(str,"^%var%\s.*") ; this is my idea msgbox % var " found at the beginning of " str I would like to check if the word at the beginning of str contains the var but my match doe...
by Maxsteinfeld
01 Apr 2019, 08:58
Forum: Ask For Help
Topic: Help to replace "." (dots) with " " (space) in a string Topic is solved
Replies: 6
Views: 615

Re: Help to replace "." (dots) with " " (space) in a string Topic is solved

@swagfag
@Odlanir
@sinkfaze
Thx for the quick response and help
all 3 solutions works perfect :-)
regards
Max
by Maxsteinfeld
01 Apr 2019, 06:06
Forum: Ask For Help
Topic: Help to replace "." (dots) with " " (space) in a string Topic is solved
Replies: 6
Views: 615

Help to replace "." (dots) with " " (space) in a string Topic is solved

Hi I need help with this: i have a list with book-titles e.g. Wempen,.Faithe.-.No.018.15.-.Office.-.2016.For.Seniors.For.Dummies I want to replace all "." (dots) with " " space exept the dots between 2 digits should remain so in my example the result should be: Wempen, Faithe - No 018.15 - Office - ...
by Maxsteinfeld
16 Dec 2018, 16:02
Forum: Ask For Help
Topic: I need help with using RegExReplace() function Topic is solved
Replies: 6
Views: 669

Re: I need help with using RegExReplace() function Topic is solved

Hi Alpha
your code works perfect - Thank you :-)
best regards
Max
by Maxsteinfeld
16 Dec 2018, 08:21
Forum: Ask For Help
Topic: I need help with using RegExReplace() function Topic is solved
Replies: 6
Views: 669

Re: I need help with using RegExReplace() function Topic is solved

Hallo, to remove all characters (no matter what) after and including the " (" (space & bracket up), try: Outfilename := SubStr(Outfilename,1,InStr(Outfilename," (")-1) But in "Name1, Firstname1 - City1(tata.txt" there's no " ("! Hi Rohwedder Many Thx for your help - the code works for both cases - ...
by Maxsteinfeld
16 Dec 2018, 08:02
Forum: Ask For Help
Topic: I need help with using RegExReplace() function Topic is solved
Replies: 6
Views: 669

Re: I need help with using RegExReplace() function Topic is solved

Outfilename := RegExReplace(Outfilename , "\s*\(.*(?=\.)") Hi AlphaBravo Many Thx for your help - the code works so far BUT unfortunately your solution matches only my first example: "Name, Firstname - City (blabla)).txt" (this filename has a "(" and a ")" at the end) if i apply it with "Name, Firs...
by Maxsteinfeld
15 Dec 2018, 13:07
Forum: Ask For Help
Topic: I need help with using RegExReplace() function Topic is solved
Replies: 6
Views: 669

I need help with using RegExReplace() function Topic is solved

Hi i have many files like this in a folder: "Name, Firstname - City (blabla)).txt" or "Name1, Firstname1 - City1(tata.txt" .... I want to remove all characters (no matter what) after the " (" (space & bracket up) so that the result is "Name, Firstname - City.txt" or "Name1, Firsname1 - City1.txt ......
by Maxsteinfeld
01 Nov 2018, 08:04
Forum: Ask For Help
Topic: Problem when renaming a filename with Em dash (—) or En dash (–)
Replies: 4
Views: 401

Re: Problem when renaming a filename with Em dash (—) or En dash (–)

ok here is my script: #.:: ;Win+. ;---------------------------------------------------------- ; Testfile: Word1, Word2 — Word3.txt ;--------------------------------------------------------- SetTitleMatchMode,2 StringCaseSense, On ClipSaved := ClipboardAll ; save the entire clipboard to the variable ...
by Maxsteinfeld
01 Nov 2018, 05:36
Forum: Ask For Help
Topic: Problem when renaming a filename with Em dash (—) or En dash (–)
Replies: 4
Views: 401

Re: Problem when renaming a filename with Em dash (—) or En dash (–)

many Thx @jeesweg,
i use MsgBox before/after !
the edited file is displayed correctly (word3 - word1, word2.txt)
so: how can i "save the file as UTF-8 with a BOM" in my script ?
which ahk-command should i use ?
regards
M.
by Maxsteinfeld
01 Nov 2018, 04:50
Forum: Ask For Help
Topic: Problem when renaming a filename with Em dash (—) or En dash (–)
Replies: 4
Views: 401

Problem when renaming a filename with Em dash (—) or En dash (–)

Hallo I have a problem renaming a file that contains an Em dash (—) or En dash (–) character e.g. file like this: word1, word2 — word3.txt i want to rename it to: word3 - word1, word2.txt i use: StringReplace, clipboard , clipboard ,—,-, All to changethe Em dash "—" to a normal Hyphen "-" and then i...
by Maxsteinfeld
27 Jan 2018, 17:21
Forum: Ask For Help
Topic: send {F3} does not work ? Topic is solved
Replies: 6
Views: 949

Re: send {F3} does not work ? Topic is solved

@evilc
thx fot the hint :-)
as i see so far - using the #include - function is the solution !
greets
Max
by Maxsteinfeld
25 Jan 2018, 15:45
Forum: Ask For Help
Topic: send {F3} does not work ? Topic is solved
Replies: 6
Views: 949

Re: send {F3} does not work ? Topic is solved

Hi
thx for the answers @all
@evilC
I would like to shorten some scripts - thats the idea
the "F3"-script is used like a subroutine
how could i "call" the code (my F3-script) multiple ?
by Maxsteinfeld
25 Jan 2018, 11:45
Forum: Ask For Help
Topic: send {F3} does not work ? Topic is solved
Replies: 6
Views: 949

send {F3} does not work ? Topic is solved

Hallo
here is a simple script

Code: Select all

!F2::			;Alt+F2
	send {F3}
	return
if i push Alt+F2 on my keyboard the script under function-key F3 does not start !
if i push F3 on my keyboard the F3-script starts.
Why :headwall:
greets
max
by Maxsteinfeld
31 Oct 2017, 17:56
Forum: Ask For Help
Topic: How to check, that a folder is empty Topic is solved
Replies: 4
Views: 639

Re: How to check, that a folder is empty Topic is solved

Hi
Thx for your quick help :-)
@boiler: problem is, that Count = 1 if there is no or 1 file in subfolder "test" - so it does not help
@helgef: works fine
@garry: will test your solution later - thx
greets
Max
by Maxsteinfeld
31 Oct 2017, 12:58
Forum: Ask For Help
Topic: How to check, that a folder is empty Topic is solved
Replies: 4
Views: 639

How to check, that a folder is empty Topic is solved

Hi @all i'm a little bit helpless here is part of a script in a loop .... SplitPath, A_Loopfield , OutFileName, OutDir, OutExt, OutNameNoExt, OutDrive .... in Outdir is a subfolder "test" How can I check, if this folder is empty? my idea: if (OutDir\test = " ") does not work ! .... thx for a help Max
by Maxsteinfeld
04 Oct 2017, 11:03
Forum: Ask For Help
Topic: Question about the command "loop"
Replies: 4
Views: 481

Re: Question about the command "loop"

Hi @all
Thx for the Help

Code: Select all

 while(FileExist("F:\!A\*.log") || FileExist("F:\!A\*.tmp*"))
 sleep 1000
 MsgBox,, All log & temp files deleted!
this solution works perfect
greets
Max
by Maxsteinfeld
04 Oct 2017, 06:49
Forum: Ask For Help
Topic: Question about the command "loop"
Replies: 4
Views: 481

Question about the command "loop"

Hi I would like to use the "loop"-command in the following part of a script: ;.... start: sleep 1000 If (FileExist("F:\!A\*.log") || FileExist("F:\!A\*.tmp*")) goto start msgbox , , all log- and tmp-files are deleted now ! ,1, ;.... i do not want to use the "goto"-command Thx for help Max
by Maxsteinfeld
24 Sep 2017, 10:34
Forum: Ask For Help
Topic: How to modify and rewrite a filelist in & into the clipboard Topic is solved
Replies: 3
Views: 435

Re: How to modify and rewrite a filelist in & into the clipboard Topic is solved

Thx ok - what i have: !RButton:: ; Alt + right Mousebutton ClipSaved := ClipboardAll ; save the entire clipboard to the variable ClipSaved clipboard := "" ; empty the clipboard (start off empty to allow ClipWait to detect when the data has arrived) Send, ^c ; copy the selected word ClipWait, 2 ; wai...

Go to advanced search