Search found 87 matches

by Maxsteinfeld
24 Mar 2023, 11:16
Forum: Ask for Help (v2)
Topic: Question about using HotIF
Replies: 3
Views: 358

Re: Question about using HotIF

Datapoint Thx but your code does not match my problem pushing ^F12 does not start Pause-Hotkey (msgbox 'Pause',,'T1') while explorer.exe is active if I omit the HotIf-brackets everything works as it should: ^F12:: { msgbox 'go',,'T1' send '{Pause}' return } Pause:: { msgbox 'Pause',,'T1' return wor...
by Maxsteinfeld
24 Mar 2023, 09:35
Forum: Ask for Help (v2)
Topic: Question about using HotIF
Replies: 3
Views: 358

Question about using HotIF

Hi i have a simple qestion about the script beyond: i want to start a hotkey (Pause::) via hotkey (^F12::) #Requires AutoHotkey v2.0 #SingleInstance Force #HotIf winexist('ahk_exe explorer.exe') ^F12:: { msgbox 'go',,'T1' send '{Pause}' return } Pause:: { msgbox 'Pause',,'T1' return } #HotIF if expl...
by Maxsteinfeld
04 Mar 2023, 17:51
Forum: Ask for Help (v2)
Topic: using regexmatch Topic is solved
Replies: 2
Views: 257

Re: using regexmatch Topic is solved

@mikeyww
Thanks for the help and your correct script - works perfect :bravo:
I was of the opinion, that RegExMatch searches the entire string with the search pattern and saves the matches in the match array
(wrong thought)
sorry for my faulty script
M.
by Maxsteinfeld
04 Mar 2023, 08:32
Forum: Ask for Help (v2)
Topic: using regexmatch Topic is solved
Replies: 2
Views: 257

using regexmatch Topic is solved

Hi i have a very simple question in using regexmatch: in the following teststring i want to match the 3 number-parts (01 02 03) in the string t_string:= 'Test 01 Test 02 Test 03' regexmatch(t_string,'(\d+)+', &t_match) msgbox t_match.count ' ' t_match.Name[1] ' ' t_match.Name[2] ' ' t_match.Name[3] ...
by Maxsteinfeld
13 Feb 2023, 16:23
Forum: Ask for Help (v2)
Topic: start a program via run with a variable - does not work Topic is solved
Replies: 4
Views: 474

Re: start a program via run with a variable - does not work Topic is solved

@RussF find a solution (it's probably more of a workaround) you have to add a RegExReplace to enclose the filename with a space in double quotes ("F:\test test.epub") A_Clipboard:='F:\test test.epub' ;(a space in filename) A_Clipboard:=RegExReplace(A_Clipboard,"(.*)",'"$1') run '"C:\Program Files\Ca...
by Maxsteinfeld
13 Feb 2023, 15:20
Forum: Ask for Help (v2)
Topic: start a program via run with a variable - does not work Topic is solved
Replies: 4
Views: 474

Re: start a program via run with a variable - does not work Topic is solved

Thx RussF
yess works now !!
but if i take

Code: Select all

A_Clipboard:='F:\test test.epub' 	;(a space in filename)
run '"C:\Program Files\Calibre2\calibre.exe" "--with-library" "F:\Calibre-Work "' A_clipboard
F:\test test.epub will no be load
by Maxsteinfeld
13 Feb 2023, 12:33
Forum: Ask for Help (v2)
Topic: start a program via run with a variable - does not work Topic is solved
Replies: 4
Views: 474

start a program via run with a variable - does not work Topic is solved

Hi at all i have a problem to start a program (in my case calibre.exe) with a variable here is the code: A_Clipboard:='F:\test.epub' run '"C:\Program Files\Calibre2\calibre.exe" "--with-library" "F:\Calibre-Work" "A_clipboard"' does not work: The file F:\test.epub will not be loaded (add) into calib...
by Maxsteinfeld
09 Feb 2023, 16:09
Forum: Ask for Help (v2)
Topic: MyGui.Destroy() does not work ? Topic is solved
Replies: 14
Views: 1162

Re: MyGui.Destroy() does not work ? Topic is solved

wow !
thx a lot
will test the sctipts in peace
regards
MS
by Maxsteinfeld
09 Feb 2023, 07:30
Forum: Ask for Help (v2)
Topic: MyGui.Destroy() does not work ? Topic is solved
Replies: 14
Views: 1162

Re: MyGui.Destroy() does not work ? Topic is solved

@teadrinker
I have one more question:
what would the code be like under AHKv1 ?
by Maxsteinfeld
09 Feb 2023, 05:39
Forum: Ask for Help (v2)
Topic: MyGui.Destroy() does not work ? Topic is solved
Replies: 14
Views: 1162

Re: MyGui.Destroy() does not work ? Topic is solved

@teadrinker
@neogna2
thx a lot for the help
now i understand ....
both selutions works pretty
by Maxsteinfeld
09 Feb 2023, 05:01
Forum: Ask for Help (v2)
Topic: MyGui.Destroy() does not work ? Topic is solved
Replies: 14
Views: 1162

Re: MyGui.Destroy() does not work ? Topic is solved

teadrinker yes i add the msgbox what i now see is, that after excecution of MyGui.Destroy() the last added window (#6) will be removed the windows #1 -#5 are still on the screen btw. this script should be act later as a "status line" window in which the line "I=" is constantly changing after each l...
by Maxsteinfeld
09 Feb 2023, 04:37
Forum: Ask for Help (v2)
Topic: MyGui.Destroy() does not work ? Topic is solved
Replies: 14
Views: 1162

Re: MyGui.Destroy() does not work ? Topic is solved

thx
if I change the "Gui.show" line to

Code: Select all

MyGui.Show("autosize y100 x" . 0 + I*200)
i see 5 separate windows in a line side by side
these windows are not removed either after execution of

Code: Select all

MyGui.Destroy()	
by Maxsteinfeld
09 Feb 2023, 04:02
Forum: Ask for Help (v2)
Topic: MyGui.Destroy() does not work ? Topic is solved
Replies: 14
Views: 1162

Re: MyGui.Destroy() does not work ? Topic is solved

@teadrinker
thx but the window still will not be removed
by Maxsteinfeld
09 Feb 2023, 02:57
Forum: Ask for Help (v2)
Topic: MyGui.Destroy() does not work ? Topic is solved
Replies: 14
Views: 1162

MyGui.Destroy() does not work ? Topic is solved

Hi @all I'm testing AHKv2 here is a short script to test the GUI-function my problem is, that »MyGui.Destroy()« does not Remove the window it remains on the screen. After reloading the script the window will be removed (off course) What's wrong ? ^1:: ;Strg+1 { I:="0" again: I++ MyGui:=Gui() MyGui.O...
by Maxsteinfeld
31 May 2022, 15:23
Forum: Ask for Help (v1)
Topic: How to open a Rar-archive with a password that contains a " (quotation mark)
Replies: 8
Views: 778

Re: How to open a Rar-archive with a password that contains a " (quotation mark)

Thx for your help I'm familiar with AHK 'legacy' and 'expression' styles - that is not the problem ! The problem is, that a password containing a (") will not be processed correctly in an AHK script. In my opinion, a password can very well contain a quotation mark (") e.g. password = abc"def. If suc...
by Maxsteinfeld
31 May 2022, 02:10
Forum: Ask for Help (v1)
Topic: How to open a Rar-archive with a password that contains a " (quotation mark)
Replies: 8
Views: 778

Re: How to open a Rar-archive with a password that contains a " (quotation mark)

Hi Bobo Thx for the reply unfortunately no success :| 1. pls note, the password-string is: abc"def ( not "abc""def") 2. if i try msgbox % ProgramFiles . "\winrar\winrar.exe x -y -p "" . password "" "" . A_LoopFileFullPath . "" "" . Verz " . "\Extract\"" ",, Hide a msgbox apears with the text: Hide i...
by Maxsteinfeld
30 May 2022, 17:01
Forum: Ask for Help (v1)
Topic: How to open a Rar-archive with a password that contains a " (quotation mark)
Replies: 8
Views: 778

How to open a Rar-archive with a password that contains a " (quotation mark)

Hi i have the following problem in a loop to unpack rar-archives automatically: opening a password-protected rar-archive fails , if the password contains a " (quotation mark) e.g. Password contains the string: abc"def ... runwait, %ProgramFiles%\winrar\winrar.exe x -y -p"%Password%" "%A_LoopFileFull...
by Maxsteinfeld
14 Oct 2021, 07:48
Forum: Ask for Help (v1)
Topic: How to extract the "image recording date" ("date taken") in Exif Topic is solved
Replies: 5
Views: 775

Re: How to extract the "image recording date" ("date taken") in Exif Topic is solved

THX for the reply :D
the proposed 'exiftool' provides the "date taken"-information required
the commandline is: exiftool.exe -T -createdate test.jpg >out.txt
regards
Max
by Maxsteinfeld
14 Oct 2021, 02:20
Forum: Ask for Help (v1)
Topic: How to extract the "image recording date" ("date taken") in Exif Topic is solved
Replies: 5
Views: 775

How to extract the "image recording date" ("date taken") in Exif Topic is solved

Hi @all
i have a lot of .jpg-files and i want to extract the "date taken string" from Exif
to modify the filename of the image.
Is there a simple ahk-command or ahk-script?
Need help !
Max

Go to advanced search