Search found 459 matches

by gwarble
15 Jul 2020, 18:36
Forum: Scripts and Functions
Topic: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
Replies: 115
Views: 26822

Re: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.

beautiful i’m not an expert on robocopy but the google machine is while i always prefer native ahk vs using an external program or library, sometimes results are more important and robocopy delivers its been around since the NT days to so i like to think its as robust (failsafe?) as the name suggest...
by gwarble
14 Jul 2020, 22:03
Forum: Scripts and Functions
Topic: RandomPW() : Random password and simple string hash.
Replies: 11
Views: 4819

Re: RandomPW() : Random password and simple string hash.

it sounds like hex-editing the compiled exe to make it only run with a password as the 1st command line parameter, but the password isn’t stored, only the hash?
by gwarble
14 Jul 2020, 21:45
Forum: Scripts and Functions
Topic: RandomPW() : Random password and simple string hash.
Replies: 11
Views: 4819

Re: RandomPW() : Random password and simple string hash.

i’m still confused, but intrigued... whats @offset-50?
by gwarble
14 Jul 2020, 20:08
Forum: Scripts and Functions
Topic: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
Replies: 115
Views: 26822

Re: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.

yes (and there are a ton of useful options for copying as well, just be careful if you remove the /L it will actually do stuff not just report info) MsgBox, % FolderSize(A_Desktop " *.ahk") notice the space before the wildcard *, the "file" parameter to robocopy is seperate from the source folder Ed...
by gwarble
14 Jul 2020, 19:23
Forum: Ask For Help
Topic: get center of an area
Replies: 18
Views: 5081

Re: get center of a area

sounds complicated and interesting hard to think through without a real world application as there will be intricacies that determine success, but what if you iterate through each point, calculate the average distance away each other point is, and take the point with the smallest average, then 5 clo...
by gwarble
14 Jul 2020, 18:18
Forum: Scripts and Functions
Topic: FolderSize() - get folder size quickly
Replies: 6
Views: 2923

Re: FolderSize() - get folder size quickly

Interesting results in one scenario here, COM wins locally, robocopy wins on network share via VPN over internet: Local Folder: Robocopy: 127 GB 5304ms COM: 127 GB 4555ms Network Share via VPN over internet: Robocopy: 16.8 GB 31294ms COM: 16.8 GB 37097ms overall very comparable results in both cases
by gwarble
14 Jul 2020, 17:54
Forum: Scripts and Functions
Topic: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
Replies: 115
Views: 26822

Re: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.

you're welcome, I would like to duplicate this speed with some native method, Xtra posted a COM method that is faster when permissions don't halt it... for me c:\ is 211gb only takes robocopy 13.2 seconds [on old core2 duo 2.4ghz 4gb win7 64] also in that time you also get more data for free, like t...
by gwarble
13 Jul 2020, 23:39
Forum: Scripts and Functions
Topic: FolderSize() - get folder size quickly
Replies: 6
Views: 2923

Re: FolderSize() - get folder size quickly

thanks, exactly what i wanted (faster and not dependent on another exe)

Works on A_Desktop, any idea about overcoming error 0x800A0046 when running on A_WinDir?
by gwarble
13 Jul 2020, 19:13
Forum: Scripts and Functions
Topic: FolderSize() - get folder size quickly
Replies: 6
Views: 2923

FolderSize() - get folder size quickly

This is the fastest method I could find to get the size of a folder, any way to do this faster or similarly fast with the WinAPI? File Loop , PowerShell , COM, winmgmts? FolderSize(folder) { ;gwarble 2020 - any faster method to get folder size? Loop, Parse, % RunCMD("robocopy /l /nfl /ndl " folder "...
by gwarble
13 Jul 2020, 19:10
Forum: Scripts and Functions
Topic: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
Replies: 115
Views: 26822

Re: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.

awesome thanks for sharing powershell sure adds a lot of bloat, even an empty folder is 10 times slower than robocopy... anyone know how robocopy does this so fast? FolderSize(folder) { ;gwarble 2020 - any faster method to get folder size? Loop, Parse, % RunCMD("robocopy /l /nfl /ndl " folder " . /r...
by gwarble
09 Jul 2020, 19:06
Forum: Ask For Help
Topic: Math evaluation is incorrect using calc function. Topic is solved
Replies: 15
Views: 5028

Re: Math evaluation is incorrect using calc function. Topic is solved

well there is another interpreter invoked somehow, that I don't fully understand, and for no real benefit I mean sure if the native way took a measurable amount of time in practice that was not required with the javascript approach I might make a different argument, but I don't see that... I also wo...
by gwarble
09 Jul 2020, 18:46
Forum: Ask For Help
Topic: Math evaluation is incorrect using calc function. Topic is solved
Replies: 15
Views: 5028

Re: Math evaluation is incorrect using calc function. Topic is solved

so everyone's comparing the same thing, this is the Eval() version I referenced above from Pulover i believe... Thanks for sharing the alternatives everyone, but out of principal I don't like the idea of using javascript for this... Eval(x) { ; expression preprocessing Static pi = 3.141592653589793,...
by gwarble
09 Jul 2020, 13:11
Forum: Ask For Help
Topic: Math evaluation is incorrect using calc function. Topic is solved
Replies: 15
Views: 5028

Re: Math evaluation is incorrect using calc function. Topic is solved

try searching for Eval() as a replacement? Of course test thoroughly but I use it often and haven't noticed any problems
by gwarble
02 Jul 2020, 23:29
Forum: Scripts and Functions
Topic: Reduce Flicker dramatically (Double Buffer)
Replies: 17
Views: 6558

Re: Reduce Flicker dramatically (Double Buffer)

this works pretty well in my test in windows 7 and windows 10 without WinSet Transparent , many thanks for sharing... I'm looking forward to going back to some old scripts and trying this the same code unfortunately intermittently suffers from major clipping on Windows 10 when using WinSet, Transpar...
by gwarble
02 Jul 2020, 18:16
Forum: Ask For Help
Topic: Is there a way to put an icon outside the hidden tray icons by default?
Replies: 35
Views: 6253

Re: Is there a way to put an icon outside the hidden tray icons by default?

i think he is only mistaken on the fact that we want a programmatic solution its common terminology to call the entire full width bar the "task bar" including the system tray, so it makes perfect sense when he says from the system stray pop-up and put it on the task bar that he means drag the icon t...
by gwarble
30 Jun 2020, 23:01
Forum: Ask For Help
Topic: Is there a way to put an icon outside the hidden tray icons by default?
Replies: 35
Views: 6253

Re: Is there a way to put an icon outside the hidden tray icons by default?

I keep a keen eye out for this issue and don't recollect anything from this morning, although it's possible that I missed it...but I just checked all my emails from the group yesterday and today...no dice. Regards, Joe very weird, I must have been looking at an old post thinking it was new, but I s...
by gwarble
30 Jun 2020, 15:18
Forum: Ask For Help
Topic: Is there a way to put an icon outside the hidden tray icons by default?
Replies: 35
Views: 6253

Re: Is there a way to put an icon outside the hidden tray icons by default?

I swear I saw a post this morning where someone linked to that thread and to this thread... i dont know

anyway, I think the smart people here got really close to a solution on Windows 10 above, hopefully bumping it will get a solution
by gwarble
30 Jun 2020, 14:22
Forum: Ask For Help
Topic: Is there a way to put an icon outside the hidden tray icons by default?
Replies: 35
Views: 6253

Re: Is there a way to put an icon outside the hidden tray icons by default?

I thought I just saw a post asking about doing this but couldn't find it again... So many thanks to jeeswg and teadrinker the above code works for me in Windows 7 now to get it to work with Windows 10, i think it needs a little pointer manipulation based on change of the interface (new uuid but more...
by gwarble
23 Jun 2020, 21:32
Forum: Scripts and Functions
Topic: EitherMouse 0.8 - Multiple mice, individual settings...
Replies: 322
Views: 136711

Re: EitherMouse 0.8 - Multiple mice, individual settings...

Thank you, and thanks for the suggestions... I also would find both useful and have had them on my to do list for a while, but haven't got around to them. I will try to prioritize some further investigation into this... Of course if you want to "hack" around, this is totally doable yourself, I won't...
by gwarble
18 Jun 2020, 09:27
Forum: Scripts and Functions
Topic: EitherMouse 0.8 - Multiple mice, individual settings...
Replies: 322
Views: 136711

Re: EitherMouse 0.8 - Multiple mice, individual settings...

No sorry, EitherMouse only reacts to the mouse being used, it doesn't intercept the source of that input... try searching for AutoHotInterception maybe?

Go to advanced search