Search found 270 matches

by Peter2
08 Nov 2020, 15:03
Forum: Ask For Help
Topic: Find attributes of folders - 2 solutions with FileExist Topic is solved
Replies: 3
Views: 96

Re: Find attributes of folders - 2 solutions with FileExist Topic is solved

Thanks to both, Xtra's answer is what I was looking for.
by Peter2
06 Nov 2020, 19:11
Forum: Ask For Help
Topic: Find attributes of folders - 2 solutions with FileExist Topic is solved
Replies: 3
Views: 96

Find attributes of folders - 2 solutions with FileExist Topic is solved

The help describes how to find if a file has the "hidden attribute": if InStr(FileExist("C:\My File.txt"), "H") MsgBox The file is hidden. For me that's clear, I see the idea behind it Now I found an old posting - "How to find if the current data has the "folder attribute". Sounds to be the same way...
by Peter2
06 Nov 2020, 17:52
Forum: Ask For Help
Topic: Loop parse - delimiter with or without blanks? Topic is solved
Replies: 5
Views: 126

Re: Loop parse - delimiter with or without blanks? Topic is solved

Thanks for the explanation, @boiler
I'm very creative in creating crazy code.
by Peter2
06 Nov 2020, 13:05
Forum: Ask For Help
Topic: Loop parse - delimiter with or without blanks? Topic is solved
Replies: 5
Views: 126

Re: Loop parse - delimiter with or without blanks? Topic is solved

I see the problem. I tried to create a "Loop parse" snippets which can be called with different delimiters. So I made it like this: FileContents := "Like this example" delimiter = `n, `r Loop, parse, FileContents, %delimiter% ; Specifying `n prior to `r allows both Windows and Unix files to be parse...
by Peter2
06 Nov 2020, 12:28
Forum: Ask For Help
Topic: Loop parse - delimiter with or without blanks? Topic is solved
Replies: 5
Views: 126

Loop parse - delimiter with or without blanks? Topic is solved

The help for "Lop, parse" here https://www.autohotkey.com/docs/commands/LoopParse.htm tells us: Loop, parse, FileContents, `n, `r ; Specifying `n prior to `r allows both Windows and Unix files to be parsed. { MsgBox, 4, , Line number %A_Index% is %A_LoopField%.`n`nContinue? IfMsgBox, No, break } I t...
by Peter2
02 Nov 2020, 11:47
Forum: Ask For Help
Topic: Tool for measuring speed of internal LAN
Replies: 4
Views: 85

Re: Tool for measuring speed of internal LAN

Thanks to all.

I made a simple script - select source folder, select target folder, copy from source to target and take the time from start till end.
Not high sofisticated and not scientific, but gives an idea on "real life".
by Peter2
29 Oct 2020, 06:01
Forum: Ask For Help
Topic: FileCopyDir: In- and Outputload on LAN? Topic is solved
Replies: 4
Views: 108

Re: FileCopyDir: In- and Outputload on LAN? Topic is solved

TAC109 wrote:
28 Oct 2020, 17:19
To copy files from server to server without going through your PC you would need ...
Yes, I think that's the core question.

Thanks to all.
by Peter2
28 Oct 2020, 11:41
Forum: Ask For Help
Topic: FileCopyDir: In- and Outputload on LAN? Topic is solved
Replies: 4
Views: 108

Re: FileCopyDir: In- and Outputload on LAN? Topic is solved

Do you see the same traffic if you use a non-AHK approach? .... That's under "current research". The used time to copy something is approx. the same, so I think the load will be the same. I just heard that there are some "copy options" (for advanced user) - with and without verifying, something abo...
by Peter2
28 Oct 2020, 08:59
Forum: Ask For Help
Topic: FileCopyDir: In- and Outputload on LAN? Topic is solved
Replies: 4
Views: 108

FileCopyDir: In- and Outputload on LAN? Topic is solved

This is maybe only a side effect of AHK, but .. I used FileCopyDir to copy two folders from server A to server B (the copy command was started from my PC which is on LAN with server A) - one folder with 1.2 GB and 1200 files - one folder with 0.9 GB and 1 file Now I watched the traffic on our fibre-...
by Peter2
26 Oct 2020, 06:17
Forum: Ask For Help
Topic: FileSelectFolder: StartingFolder disables selection Topic is solved
Replies: 3
Views: 87

FileSelectFolder: StartingFolder disables selection Topic is solved

I use

Code: Select all

"FileSelectFolder, my_selection, c:\data\test"
The problem is: When want to select another folder I just can go "down", like to folder "c:\data\test\project_a". But I can not go "up" to "c:\data" or to "d:\backup"

Is this intended?
by Peter2
23 Oct 2020, 03:40
Forum: Ask For Help
Topic: Tool for measuring speed of internal LAN
Replies: 4
Views: 85

Tool for measuring speed of internal LAN

I want to measure the speed of our LAN connection between two departments and would see a simple solution: - Prepare a folder with a lot of files - copy it from Server A to Server B - take the time that it needs - write it to log-file Before I reinvent the wheel - does a tool / snippet for things li...
by Peter2
19 Aug 2020, 08:09
Forum: Ask For Help
Topic: AHK Main dialogue - displayed variables are truncated Topic is solved
Replies: 3
Views: 369

Re: AHK Main dialogue - displayed variables are truncated Topic is solved

lexikos wrote:
19 Aug 2020, 03:19
.... For instance, DebugVars, ....
really great :bravo: :bravo:
by Peter2
17 Aug 2020, 05:07
Forum: Ask For Help
Topic: Use a REG-file: with "regedit" or with AHK
Replies: 4
Views: 1460

Re: Use a REG-file: with "regedit" or with AHK

Thanks, Bobo

I just learned that I don't need

Code: Select all

Runwait, regedit /s,%a_temp%\my_file.reg
-> this calls always the dialogue.
I just need only

Code: Select all

Runwait, %a_temp%\my_file.reg
For RegWrite I suppose it's fine for single values, but here I have to extract / to loop the content of the reg-file?
by Peter2
17 Aug 2020, 03:46
Forum: Ask For Help
Topic: Use a REG-file: with "regedit" or with AHK
Replies: 4
Views: 1460

Re: Use a REG-file: with "regedit" or with AHK

Thanks for quick reply. An AHK-noob with, so far, 254 postings at the forum? ... Yes. Twice a year I spent 2 days to try to remember things that I have done on a simple level and to try to not mix up with other languages .. :( ...Just out of curiosity, as you are from CH, what's your native/main lan...
by Peter2
17 Aug 2020, 01:29
Forum: Ask For Help
Topic: Use a REG-file: with "regedit" or with AHK
Replies: 4
Views: 1460

Use a REG-file: with "regedit" or with AHK

I have a REG file which I have to read (to fill into) the registry. I would use "RunWait, regedit /s my_settings.reg", or ...

Is there a better solution in AHK?

Peter
by Peter2
14 Aug 2020, 11:00
Forum: Ask For Help
Topic: AHK Main dialogue - displayed variables are truncated Topic is solved
Replies: 3
Views: 369

AHK Main dialogue - displayed variables are truncated Topic is solved

I'm sure it's an old and simple topic, but nevertheless .. The Main dialogue of AHK shows the current values of the variables, and because I often use rather long strings (Network paths; read lines from textfiles) they are often trunc..... (truncated) Can they displayed in their entire length? Thanks!
by Peter2
13 Feb 2020, 05:45
Forum: Ask For Help
Topic: Where to place SETTIMER? Topic is solved
Replies: 4
Views: 440

Re: Where to place SETTIMER? Topic is solved

@boiler
thanks. :bravo:

The reason for "WinWaitClose": Copy & paste from another code without detailed understanding :thumbdown:
by Peter2
13 Feb 2020, 03:07
Forum: Ask For Help
Topic: Where to place SETTIMER? Topic is solved
Replies: 4
Views: 440

Re: Where to place SETTIMER? Topic is solved

@Rohwedder
thanks, but no success.

The problem seem to be that the GUI is waiting for input, and this waiting stops the entire software. And I don't see how to make the GUI waiting and the background running ..

Go to advanced search