Search found 85 matches

by Sam_
18 Apr 2019, 06:02
Forum: Offtopic
Topic: Report False-Positives To Anti-Virus Companies
Replies: 32
Views: 2503

Re: Report False-Positives To Anti-Virus Companies

RachelKieran wrote:
17 Apr 2019, 06:10
Antiviruses generally makes the PC performance low and sometimes it even sends virus in your computer if you do not purchase the premium version of many software.
Please cite your sources. I'm interested to know where you are getting this information.
by Sam_
28 Mar 2019, 10:08
Forum: Ask For Help
Topic: append callstack to handled and unhandled exceptions
Replies: 3
Views: 354

Re: append callstack to handled and unhandled exceptions

Latest version of my code can be found on GitHub: https://github.com/Sampsca/PS_ExceptionHandler A copy of the version on GitHub as of 20190328 is provided below: ; ; AutoHotkey Version: 1.1.30.01 ; Language: English ; Platform: Optimized for Windows 10 ; Author: Sam. ; ;;;;; Reference Documents ;;;...
by Sam_
27 Mar 2019, 16:20
Forum: Ask For Help
Topic: Possible to detect if in try block?
Replies: 7
Views: 225

Re: Possible to detect if in try block?

I want every exception object to include a traceback of the current callstack. As far as I can tell, the situation is as follows: If you are in a try block: The only way to include a traceback is to add it to the exception object before it is thrown via throw (that is to say, before the stack unwind...
by Sam_
27 Mar 2019, 12:58
Forum: Ask For Help
Topic: Possible to detect if in try block?
Replies: 7
Views: 225

Re: Possible to detect if in try block?

I'm throwing an exception. If the exception is thrown in a try block, I want to include a traceback in the exception object. If it is not, I need to wait to add the traceback until the exception is caught by OnError().
by Sam_
27 Mar 2019, 12:20
Forum: Ask For Help
Topic: Possible to detect if in try block?
Replies: 7
Views: 225

Possible to detect if in try block?

Is it possible to detect if the current running code (let's say a function) is encapsulated within a try block?
by Sam_
26 Mar 2019, 16:01
Forum: Offtopic
Topic: Report False-Positives To Anti-Virus Companies
Replies: 32
Views: 2503

Re: Report False-Positives To Anti-Virus Companies

More often than not, I have found that AV software tends to complain about compiled AHK scripts when they have been compressed with mpress. Apparently, overzealous AV software sees compressed EXEs as an attempt to hide or obfuscate ("malicious") code, which I find a shame. As a result, I have gone a...
by Sam_
12 Mar 2019, 14:28
Forum: Ask For Help
Topic: Script not exiting properly with throw and Gui +OwnDialogs
Replies: 5
Views: 219

Re: Script not exiting properly with throw and Gui +OwnDialogs

Always more for me to learn. Any script that uses the GUI command anywhere is automatically persistent ( even if the GUI command is never actually executed ). no problem there In red is what I didn't know, or have forgotten. Honestly I find it a bit surprising. It is possible to have the script exit...
by Sam_
12 Mar 2019, 12:51
Forum: Ask For Help
Topic: Script not exiting properly with throw and Gui +OwnDialogs
Replies: 5
Views: 219

Script not exiting properly with throw and Gui +OwnDialogs

Every time I think I've found a bug with AHK, it turns out to be intended behavior, a failure of my understanding, or unclear (to me) documentation. Last time I was given the directive to post any future issues in the Ask For Help section of the forums first, and if it really is a bug can be moved l...
by Sam_
28 Feb 2019, 16:34
Forum: Ask For Help
Topic: help formatting DllCall to decorated function Topic is solved
Replies: 14
Views: 694

Re: help formatting DllCall to decorated function Topic is solved

I for one am definitely hoping for a PR & Merge. This provides a significant benefit at no cost.
by Sam_
28 Feb 2019, 16:28
Forum: Scripts and Functions
Topic: MemoryFileIO
Replies: 10
Views: 756

Re: MemoryFileIO

New version on GitHub . It adds the option to store the buffer internally, and hopefully doesn't break backwards compatibility. I've done some basic testing, and it seems to work as intended. Note that if the buffer is resized, any stored address or pointer to it will be invalidated (but variable re...
by Sam_
26 Feb 2019, 17:38
Forum: Scripts and Functions
Topic: MemoryFileIO
Replies: 10
Views: 756

Re: MemoryFileIO

If I understand you correctly, I did exactly this in my second example above. I wanted the ability to read/write to structures outside of the class itself, so I didn't make the buffer internal (just the pointer to it). Yes one can modify your object to do exactly what I want - but as it will be the...
by Sam_
26 Feb 2019, 11:31
Forum: Scripts and Functions
Topic: MemoryFileIO
Replies: 10
Views: 756

Re: MemoryFileIO

That being said I find it strange that you expect a variable in the constructor. To me it would make more sense if you would expect a variable, a pointer + size or nothing. I rarely use variables as storage and it kind of defeats the point if I have to keep a superglobal/global or similar variable ...
by Sam_
26 Feb 2019, 10:32
Forum: Scripts and Functions
Topic: PushLog
Replies: 0
Views: 160

PushLog

Pushlog is a short class that allows a script to attach to a console window in order to display debug information including errors, warnings, and other info. It also has the ability to save this log to a file. It is available on GitHub . My implementation of this basic concept is much more minimalis...
by Sam_
26 Feb 2019, 10:11
Forum: Scripts and Functions
Topic: MemoryFileIO
Replies: 10
Views: 756

Re: MemoryFileIO

@burque505 Inter-script communication is not a topic I have ever looked into. Intuitively, I'd say MemoryFileIO might help, but it isn't a solution in and of itself as the other script still won't know where in memory to look for the information it needs. RHCP's classMemory may be of interest as it ...
by Sam_
17 Feb 2019, 16:15
Forum: Scripts and Functions
Topic: MemoryFileIO
Replies: 10
Views: 756

Re: MemoryFileIO

@Sam_, thank you for this class. I would appreciate an example, if you don't mind. I recall nnnik just wrote about why not to use FileAppend . Will this offer advantages over opening the file for reading, doing all the processes you need to, and then closing the file, as he describes? (I'm sure it ...
by Sam_
15 Feb 2019, 19:17
Forum: Scripts and Functions
Topic: MemoryFileIO
Replies: 10
Views: 756

MemoryFileIO

MemoryFileIO is a class that wraps NumGet, NumPut, StrGet, and StrPut to provide File Object-like syntax for in-memory files and structures. It is available on GitHub . This is a dependency of several other classes/libraries that I hope to release in the semi-near future. The early versions had a lo...
by Sam_
10 Feb 2019, 20:12
Forum: Ask For Help
Topic: help formatting DllCall to decorated function Topic is solved
Replies: 14
Views: 694

Re: help formatting DllCall to decorated function Topic is solved

I have implemented thiscall for AHK's built-in function dllcall, it seems simple, if you want to try I can send you an executable, or you can build it yourself from my fork on github. I will just need to make it for v1 first, I did it in the v2 branch. Next alternative is that you rebuild the dll u...
by Sam_
08 Feb 2019, 18:34
Forum: Ask For Help
Topic: help formatting DllCall to decorated function Topic is solved
Replies: 14
Views: 694

Re: help formatting DllCall to decorated function Topic is solved

I have implemented thiscall for AHK's built-in function dllcall, it seems simple, if you want to try I can send you an executable, or you can build it yourself from my fork on github. I will just need to make it for v1 first, I did it in the v2 branch. Next alternative is that you rebuild the dll u...
by Sam_
08 Feb 2019, 13:54
Forum: Ask For Help
Topic: help formatting DllCall to decorated function Topic is solved
Replies: 14
Views: 694

Re: help formatting DllCall to decorated function Topic is solved

Well damn. The majority of the functions in the 32-bit DLL (I started with the x64 one, then tried to add compatibility for x86) unmangle to __thiscall. Any workarounds?
by Sam_
06 Feb 2019, 17:36
Forum: Ask For Help
Topic: help formatting DllCall to decorated function Topic is solved
Replies: 14
Views: 694

Re: help formatting DllCall to decorated function Topic is solved

@Helgef
Thank you very much for your help! After studying your explanations and examples, I have been able to construct a good number of DllCalls on my own. Your sharing of knowledge has increased my own, and I sincerely thank you for it. I will look for a way to pay it forward.

Go to advanced search