Search found 447 matches
- 07 Apr 2024, 20:15
- Forum: Ask for Help (v1)
- Topic: WinHttp.WinHttpRequest IsInternetConnected()
- Replies: 3
- Views: 200
Re: WinHttp.WinHttpRequest IsInternetConnected()
@Imstern thanks for the suggestions. I modified the function and posted below. I ran "BITSADMIN /LIST /ALLUSERS /VERBOSE" and 0x80072EFE error code was not in the output. There were two https entries and both were related to a firefox update That article mentioned "Using a browser, try to download i...
- 05 Apr 2024, 12:17
- Forum: Ask for Help (v1)
- Topic: WinHttp.WinHttpRequest IsInternetConnected()
- Replies: 3
- Views: 200
WinHttp.WinHttpRequest IsInternetConnected()
I found this function by Linear Spoon on the old forum at this address....https://www.autohotkey.com/board/topic/111086-solved-check-if-connected-to-the-internet/ It checks if the computer has access to the internet. It works really fast (around 200 ms), but I occasionally get errors. My script chec...
- 24 Jan 2024, 00:16
- Forum: Ask for Help (v1)
- Topic: Need help removing duplicate lines
- Replies: 7
- Views: 200
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
- 23 Jan 2024, 23:39
- Forum: Ask for Help (v1)
- Topic: Need help removing duplicate lines
- Replies: 7
- Views: 200
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...
- 23 Jan 2024, 23:36
- Forum: Ask for Help (v1)
- Topic: Need help removing duplicate lines
- Replies: 7
- Views: 200
Re: Need help removing duplicate lines
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%
Code: Select all
IfNotInString, NoDuplicates, *%OutputArray5%*
- 23 Jan 2024, 23:33
- Forum: Ask for Help (v1)
- Topic: Need help removing duplicate lines
- Replies: 7
- Views: 200
- 23 Jan 2024, 23:14
- Forum: Ask for Help (v1)
- Topic: Need help removing duplicate lines
- Replies: 7
- Views: 200
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...
- 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: 128
Re: Help with assigning a number to variables in loop Topic is solved
Fantastic, exactly what I meant. 2 lines of code that work no matter how many loops.mikeyww wrote: ↑23 Jan 2024, 10:20Are you trying to say that
Code: Select all
numB := 2 * A_Index numA := numB - 1
thank you
- 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: 128
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...
- 12 Jan 2024, 15:09
- Forum: Ask for Help (v1)
- Topic: A bigger tooltip
- Replies: 20
- Views: 3347
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, ...
- 12 Jan 2024, 01:15
- Forum: Ask for Help (v1)
- Topic: A bigger tooltip
- Replies: 20
- Views: 3347
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 ...
- 26 Dec 2023, 17:51
- Forum: Scripts and Functions (v1)
- Topic: Sort INI alphabetically
- Replies: 0
- Views: 579
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...
- 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: 1516
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...
- 04 Dec 2023, 10:37
- Forum: Ask for Help (v1)
- Topic: convert function to Ansi
- Replies: 2
- Views: 244
Re: convert function to Ansi
thanks, that workedjust me wrote: ↑04 Dec 2023, 06:53Might be enough to change the parameter type to WStr:Code: Select all
, DllCall("ole32\CLSIDFromString", "WStr",FOLDERID, "Ptr",&CLSID)
- 03 Dec 2023, 15:59
- Forum: Ask for Help (v1)
- Topic: convert function to Ansi
- Replies: 2
- Views: 244
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...
- 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: 711
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...
- 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: 711
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...
- 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: 711
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...
- 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: 711
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...
- 04 Nov 2023, 22:26
- Forum: Scripts and Functions (v1)
- Topic: Yet another IP changer
- Replies: 3
- Views: 3256
Re: Yet another IP changer
Select Adapter is blank on my system.