Search found 125 matches

by Sam_
02 Jul 2020, 10:35
Forum: Scripts and Functions
Topic: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
Replies: 113
Views: 26386

Re: RunCMD()

This function is awesome! Thank you for sharing it.
SKAN wrote:
23 Apr 2020, 16:55
This is not a streaming version. I didn't write one since no one asked for it.
Will you pretty please also provide a streaming version?
by Sam_
30 Jun 2020, 14:36
Forum: Offtopic
Topic: Report False-Positives To Anti-Virus Companies
Replies: 61
Views: 290025

Re: Report False-Positives To Anti-Virus Companies

Symantec has identified parts of AutoHotkey_1.1.33.00_setup.exe as malicious based on heuristic rules. I have submitted it to them as a false positive, but now I have corporate Incident Response breathing down my neck (not that I blame them, it's their job to stay on top of any and all potential thr...
by Sam_
26 Jun 2020, 14:42
Forum: About This Community
Topic: Version in Docs <> Version in Download
Replies: 2
Views: 1170

Re: Version in Docs <> Version in Download

Thanks. Sorry I didn't notice the other topic before posting.
by Sam_
26 Jun 2020, 13:53
Forum: About This Community
Topic: Version in Docs <> Version in Download
Replies: 2
Views: 1170

Version in Docs <> Version in Download

Thought I would put this here since the forum category description included discussion about "this website". A while ago, the version in the changelog was updated to V1.1.33.00, but the Download Current Version on the main website retrieves AutoHotkey_1.1.32.00_setup.exe. This is a bit confusing sin...
by Sam_
08 Jun 2020, 14:06
Forum: Forum Issues
Topic: Archived Forums Search Gives 403 Error
Replies: 1
Views: 342

Archived Forums Search Gives 403 Error

Trying to perform a custom search on the Archived Forums results in a 403 Error for me. Is this a known issue?
by Sam_
02 Jun 2020, 17:15
Forum: Ask For Help
Topic: Check if variable exists without querying its contents
Replies: 5
Views: 315

Re: Check if variable exists without querying its contents

gregster wrote:
02 Jun 2020, 16:47
Perhaps this helps: https://www.autohotkey.com/boards/viewtopic.php?f=6&t=9656
I forgot about that function, thanks. It makes getting the list of global variables easier. I guess I'd still have to do something inline to get the local variables.
by Sam_
02 Jun 2020, 16:32
Forum: Ask For Help
Topic: Check if variable exists without querying its contents
Replies: 5
Views: 315

Re: Check if variable exists without querying its contents

Would it be possible/reasonable to silently query the variables list from the script's main window? Not elegant, but a proof of concept: #Warn All, StdOut ; Enable warnings to assist with detecting common errors. ; Check a variable that does not exist, and display the text we're checking against Ms...
by Sam_
02 Jun 2020, 13:49
Forum: Ask For Help
Topic: Check if variable exists without querying its contents
Replies: 5
Views: 315

Re: Check if variable exists without querying its contents

Do you mean that you want to check if a variable has been assigned a value without triggering a warning if it hasn't? Yes, exactly this. V2 has isSet for that, I don't think it was added to v1, in which case there is no way to do that in v1. That is exactly what I'm looking for, but yes I meant for...
by Sam_
02 Jun 2020, 12:40
Forum: Scripts and Functions
Topic: [Class] GuiControlTips - Tooltips for GUI controls
Replies: 13
Views: 5292

Re: [Class] GuiControlTips - Tooltips for GUI controls

Was it intended to set a static constant for WS_EX_TOPMOST? Maybe this?

Code: Select all

Static WS_EX_TOPMOST      := 0x00000008 ; Source: https://docs.microsoft.com/en-us/windows/win32/winmsg/extended-window-styles
by Sam_
02 Jun 2020, 12:33
Forum: Ask For Help
Topic: Check if variable exists without querying its contents
Replies: 5
Views: 315

Check if variable exists without querying its contents

Is there a way to check if a variable has been defined without querying its contents? I'm looking for a IsVariable(), somewhat analogous to IsObject(), IsFunc(), or Object.HasKey(). What I want to avoid is doing something like #Warn All, StdOut ; Enable warnings to assist with detecting common error...
by Sam_
10 Apr 2020, 09:36
Forum: Offtopic
Topic: Report False-Positives To Anti-Virus Companies
Replies: 61
Views: 290025

Re: Report False-Positives To Anti-Virus Companies

roysubs From a quick search, it appears Chrome uses the Google Safe Browsing API to determine if a download or site is malicious. You can read the articles on " Malware and Unwanted Software " and " Security Issues Report ", however, submitting false positive reports doesn't appear to be strait for...
by Sam_
27 Mar 2020, 15:39
Forum: Scripts and Functions
Topic: MemoryFileIO
Replies: 17
Views: 3437

Re: MemoryFileIO

So I should use this as my new line? Bin := New MemoryFileIO(FileOpen(BinToDecompile,"r").ReadRaw()) I'm not familiar with .ReadRaw(). In general, you'll want to read a file into memory, and then initialize MemoryFIleIO to point to that buffer. Alternatively, you can initialize MemoryFileIO with a ...
by Sam_
24 Jan 2020, 18:02
Forum: Tutorials
Topic: How to optimize the speed of a script as much as possible.
Replies: 102
Views: 104403

Re: How to optimize the speed of a script as much as possible.

What is the specific mechanism I need to initiate through AHK to push CPU rate up to at least x2 or ~50% or even more than this ? AHK is single threaded. Each instance of a running script will only ever use a single CPU core. You can SetBatchLines to -1 and change the process priority to above norm...
by Sam_
09 Jan 2020, 15:26
Forum: Scripts and Functions
Topic: MemoryFileIO
Replies: 17
Views: 3437

Re: MemoryFileIO

It's not released under any particular license. Feel free to assume WTFPL, so you're welcome to do what you want with it, including rename it. I believe that legally, if the author doesn't specify a license, than the most restrictive rules on copyright apply. If the author wants to allow for libera...
by Sam_
08 Jan 2020, 12:58
Forum: Ask For Help
Topic: Simplifying an A_Args parse?
Replies: 6
Views: 842

Re: Simplifying an A_Args parse?

Instead of defining the individual vars as global, I would suggest to set an Settings object as super global and fill it with the command line parameters. Agreed. Global Settings:={} A_Args:=["asdf","jkl","abcd"] ; Just for this example For Index, Value in A_Args Settings[Value]:=1 MsgBox % Setting...
by Sam_
07 Jan 2020, 17:47
Forum: Ask For Help
Topic: Simplifying an A_Args parse?
Replies: 6
Views: 842

Re: Simplifying an A_Args parse?

From docs : Also note that it is not currently possible to declare a dynamic variable such as global Array%i%. Prevents you from doing For Index, Value in A_Args Global %Value%:=1 Which sounds like what you want. Use Switch or make it a bit faster and concise For Index, Value in A_Args { If (Value="...
by Sam_
29 Nov 2019, 15:34
Forum: Tutorials
Topic: How to optimize the speed of a script as much as possible.
Replies: 102
Views: 104403

Re: How to optimize the speed of a script as much as possible.

What is the specific mechanism I need to initiate through AHK to push CPU rate up to at least x2 or ~50% or even more than this ? AHK is single threaded. Each instance of a running script will only ever use a single CPU core. You can SetBatchLines to -1 and change the process priority to above norm...
by Sam_
28 Nov 2019, 20:05
Forum: Tutorials
Topic: How to optimize the speed of a script as much as possible.
Replies: 102
Views: 104403

Re: How to optimize the speed of a script as much as possible.

Anyone have problems with an AHK script that at first sight works (in my case it's a RegExReplace function), but after a few parses the file (or appended file) will reduce to 0kb? I'm running 1 ahk regex script on a file that's a little bit over 1000kb. I can delete data from these files or apply t...
by Sam_
27 Jul 2019, 09:25
Forum: Offtopic
Topic: utilities/websites to test a PC's speed
Replies: 3
Views: 1418

Re: utilities/websites to test a PC's speed

MATLAB's bench() function, with a few iterations.

Go to advanced search