Search found 445 matches

by DataLife
24 Jan 2024, 00:16
Forum: Ask for Help (v1)
Topic: Need help removing duplicate lines
Replies: 7
Views: 196

Re: Need help removing duplicate lines

Code: Select all

Loop Parse, txt, `n, `r
 noDupes .= InStr(noDupes, "*" StrSplit(A_LoopField, "*")[5] "*") ? ""
          : (noDupes = "" ? "" : "`n") A_LoopField
MsgBox 0, Result, % noDupes
Now, that is some nifty code. It works great. I am going to study how that works.
by DataLife
23 Jan 2024, 23:39
Forum: Ask for Help (v1)
Topic: Need help removing duplicate lines
Replies: 7
Views: 196

Re: Need help removing duplicate lines

Instead of seeing whether your string contains text , see whether it contains *text* . Let me ask you something else. I do this alot, and I mean alot. Seems like there would be a better way to avoid a blank line at the beginning of a variable if NoDuplicates = NoDuplicates = %a_loopfield% else NoDu...
by DataLife
23 Jan 2024, 23:36
Forum: Ask for Help (v1)
Topic: Need help removing duplicate lines
Replies: 7
Views: 196

Re: Need help removing duplicate lines

mikeyww wrote:
23 Jan 2024, 23:25
Instead of seeing whether your string contains text, see whether it contains *text*.
I would have spent hours and come up with a complicated solution, when all I had to do was change

Code: Select all

IfNotInString, NoDuplicates, %OutputArray5%
to

Code: Select all

IfNotInString, NoDuplicates, *%OutputArray5%*
thanks again
by DataLife
23 Jan 2024, 23:33
Forum: Ask for Help (v1)
Topic: Need help removing duplicate lines
Replies: 7
Views: 196

Re: Need help removing duplicate lines

mikeyww wrote:
23 Jan 2024, 23:25
Instead of seeing whether your string contains text, see whether it contains *text*.
Good suggestion. I am working on that now.
thanks
by DataLife
23 Jan 2024, 23:14
Forum: Ask for Help (v1)
Topic: Need help removing duplicate lines
Replies: 7
Views: 196

Need help removing duplicate lines

I need to elimiate all lines with duplicate OutputArray5, the rest of the line does not matter. It does not matter which line it deletes that have a matching OutputArray5 In this example it does not matter which of these 2 it removes, because OutputArray5 (MIN100) is an exact match. Vases*S/10 Hinge...
by DataLife
23 Jan 2024, 10:28
Forum: Ask for Help (v1)
Topic: Help with assigning a number to variables in loop Topic is solved
Replies: 2
Views: 125

Re: Help with assigning a number to variables in loop Topic is solved

mikeyww wrote:
23 Jan 2024, 10:20
Are you trying to say that

Code: Select all

 numB := 2 * A_Index
 numA := numB - 1
:?:
Fantastic, exactly what I meant. 2 lines of code that work no matter how many loops.
thank you
by DataLife
23 Jan 2024, 10:14
Forum: Ask for Help (v1)
Topic: Help with assigning a number to variables in loop Topic is solved
Replies: 2
Views: 125

Help with assigning a number to variables in loop Topic is solved

Would someone be able to help me write this shorter? Seems like there has to be a better way. This needs to work if I change the number of loops. Right now it is 5, later it maybe 9 and then I may change it again. Depending on my needs per script. numA and numB needs to equal 1 and 2 on the first lo...
by DataLife
12 Jan 2024, 15:09
Forum: Ask for Help (v1)
Topic: A bigger tooltip
Replies: 20
Views: 3243

Re: A bigger tooltip

Works great Good to hear, here's a newer version (though written a few years ago): title := "Hello!" text := "This is my custom TrayTip.`nIt will disappear in five seconds." hToolTip := CustomToolTip({ title: title, text: text, icon: 1, closeButton: true , backColor: 0xFFC141, textColor: 0x50669F, ...
by DataLife
12 Jan 2024, 01:15
Forum: Ask for Help (v1)
Topic: A bigger tooltip
Replies: 20
Views: 3243

Re: A bigger tooltip

Another one big tooltip: title := "Hello," text := "This is my custom ToolTip!`nIt will disappear in five seconds." hToolTip := CustomToolTip(text,,, title, 1, true, 0xFFC141, 0x50669F, "Calibri", "s18", true, 5000) Timer := Func("UpdateText").Bind(hToolTip, [ StrReplace(text, "five seconds", "one ...
by DataLife
26 Dec 2023, 17:51
Forum: Scripts and Functions (v1)
Topic: Sort INI alphabetically
Replies: 0
Views: 570

Sort INI alphabetically

For readability, I needed to have my INI file sections and keys sorted alphabetically. Readablity? I needed to verify something was written correctly to the INI and got tired of reading each line and using the Find option. I searched the AutoHotkey forum and could not find something. I searched goog...
by DataLife
26 Dec 2023, 09:57
Forum: Ask for Help (v1)
Topic: Trigger virustotal via its API (or CMD) using an AHK script
Replies: 2
Views: 1512

Re: Trigger virustotal via its API (or CMD) using an AHK script

Hi folks, I've already searched the forum for "virustotal" but I've only found threads about false positive alerts regarding the ahk-executable itself. Do you know an ahk script/function to trigger virustotal.com (means its API) to handover files for virus scanning? At virustotal's API documentatio...
by DataLife
04 Dec 2023, 10:37
Forum: Ask for Help (v1)
Topic: convert function to Ansi
Replies: 2
Views: 239

Re: convert function to Ansi

just me wrote:
04 Dec 2023, 06:53
Might be enough to change the parameter type to WStr:

Code: Select all

     , DllCall("ole32\CLSIDFromString", "WStr",FOLDERID, "Ptr",&CLSID)
thanks, that worked
by DataLife
03 Dec 2023, 15:59
Forum: Ask for Help (v1)
Topic: convert function to Ansi
Replies: 2
Views: 239

convert function to Ansi

Can someone convert this function to Ansi for me? I got this function from https://www.autohotkey.com/boards/viewtopic.php?t=75602 SHGetKnownFolderPath(FOLDERID, KF_FLAG:=0) { ; By SKAN on D356 @ tiny.cc/t-75602 Local CLSID, pPath:="" ; Thanks teadrinker @ tiny.cc/p286094 Return Format("{4:}", VarSe...
by DataLife
03 Dec 2023, 14:32
Forum: Ask for Help (v1)
Topic: Help with getting current path of 'Save As' dialog please Topic is solved
Replies: 9
Views: 694

Re: Help with getting current path of 'Save As' dialog please Topic is solved

No need to guess at the location of Downloads, Music, Pictures and Videos. Skan created a function to get these locations and many more. https://www.autohotkey.com/boards/viewtopic.php?t=75602 FOLDERID_Downloads := "{374DE290-123F-4565-9164-39C4925E467B}" MsgBox % SHGetKnownFolderPath(FOLDERID_Downl...
by DataLife
28 Nov 2023, 21:03
Forum: Ask for Help (v1)
Topic: Help with getting current path of 'Save As' dialog please Topic is solved
Replies: 9
Views: 694

Re: Help with getting current path of 'Save As' dialog please Topic is solved

It seems like all of them can be built off of one of the built-in variables, and if not, you could hard-code in the paths for all the outliers, assuming it’s just for you. (btw, I left off the “My” in some of the variable names in my prior post) Not just for me. For anyone that uses my SavePictureA...
by DataLife
28 Nov 2023, 20:09
Forum: Ask for Help (v1)
Topic: Help with getting current path of 'Save As' dialog please Topic is solved
Replies: 9
Views: 694

Re: Help with getting current path of 'Save As' dialog please Topic is solved

One thing you could do is check the result, and when it retrieves one of those, then you can use the contents of the associated built-in variable, such as A_Documents , A_MyDesktop , etc. And for the ones that don’t have built-in variables, they can typically be constructed from the ones that do, s...
by DataLife
28 Nov 2023, 18:10
Forum: Ask for Help (v1)
Topic: Help with getting current path of 'Save As' dialog please Topic is solved
Replies: 9
Views: 694

Re: Help with getting current path of save as dialog please Topic is solved

Try this: ControlGetText, ThisPath, ToolbarWindow324, ahk_class #32770 This works great except when "This PC > Downloads" or "This PC > Documents" or "This PC > Pictures" and similar "This PC" locations are in the control, then it only retrieves "Downloads", "Documents", "Pictures" ETC... Any ideas...
by DataLife
04 Nov 2023, 22:26
Forum: Scripts and Functions (v1)
Topic: Yet another IP changer
Replies: 3
Views: 3218

Re: Yet another IP changer

Select Adapter is blank on my system.
by DataLife
08 Oct 2023, 16:21
Forum: Scripts and Functions (v1)
Topic: Simple alarm (e-motiv)
Replies: 3
Views: 1954

Re: Simple alarm (e-motiv)

Please explain how to use this.

I downloaded the script and ran it expecting to see the GUI, instead my computer went into hibernation.
by DataLife
05 Oct 2023, 00:08
Forum: Scripts and Functions (v1)
Topic: Windows 10 available *.dll Icons
Replies: 6
Views: 1419

Re: Windows 10 available *.dll Icons

@pcg
I very much need this.
Thanks

Go to advanced search