## Search found 28 matches

15 Jun 2017, 08:32
Forum: Scripts and Functions
Topic: AutoHotkey Mini-Framework Release
Replies: 3
Views: 1552

### Re: AutoHotkey Mini-Framework Release

New Mini-Framework Version 0.4.0.5 Released.

Change Log can be found here

Lots of improvements, New classes including an Advanced StringBuilder class

14 May 2017, 19:20
Topic: Negative Hex value complements?
Replies: 0
Views: 449

### Negative Hex value complements?

I am working on a few hex conversion functions I am wondering about AutoHotkey negative hex values. Is -0xfa the 16's complement of 0xfa or is -0xfa it the 15's complement of 0xfa I am thinking it is the 15's complement so to convert to positive hex -0xfa converts to 0xf9 as 15's complement and 0xfa...
09 May 2017, 01:15
Topic: What are the limits of a Float? min, max, NAN, -infinity, +infinity Topic is solved
Replies: 6
Views: 1656

### Re: What are the limits of a Float? min, max, NAN, -infinity, +infinity Topic is solved

I wrapped all of my SetFormat calls into a single function, that way I can just update that function for AutoHotkey v2 if needed. I was able to figure out min, max, NAN, -infinity, +infinity for float. Helgef post was a big help. :bravo: Here is the class in its current state; Requires Mini-Framewor...
08 May 2017, 19:16
Topic: What are the limits of a Float? min, max, NAN, -infinity, +infinity Topic is solved
Replies: 6
Views: 1656

### Re: What are the limits of a Float? min, max, NAN, -infinity, +infinity Topic is solved

You may like to know about this function: Format https://autohotkey.com/docs/commands/Format.htm Also, SetFormat is due to be removed in AHK v2. I am Well aware of the SetFromat command. However was not aware that it was being remove in v2. How would you future proof you code for the removal of Set...
08 May 2017, 18:14
Topic: What are the limits of a Float? min, max, NAN, -infinity, +infinity Topic is solved
Replies: 6
Views: 1656

### Re: What are the limits of a Float? min, max, NAN, -infinity, +infinity Topic is solved

Hi AmourSpirit , does this help you? SetFormat, float, 0.16e Msgbox, % 1.7976931348623157E+308+0.0000000000000000E+308 Msgbox, % 1.7976931348623157E+308+0.0000000000000001E+308 Cheers. This may help lots! Would this be on the right track? A simplified version of what I am trying to do in part Class...
08 May 2017, 16:34
Topic: What are the limits of a Float? min, max, NAN, -infinity, +infinity Topic is solved
Replies: 6
Views: 1656

### What are the limits of a Float? min, max, NAN, -infinity, +infinity Topic is solved

I as doing work on float class for Mini-Framework and a parsing of floats that also take formatting into account. I would like to know the maximum value of a float in AutoHotkey, In C# it is public const double MaxValue = 1.7976931348623157E+308; The MinValue in C# is public const double MinValue = ...
07 May 2017, 15:37
Topic: how to read float bytes from Memory?
Replies: 4
Views: 1402

### Re: how to read float bytes from Memory?

I have just one more question about the _FloatToInt64() and _Int64ToFloat() methods.
What would be the correct size to use for VarSetCapacity() seeing as

Code: Select all

``````val := 1.12345675646456456456
MsgBox % VarSetCapacity(val) ; returns 126``````
Settign the Capacity to 8 seems like it might be too small.
07 May 2017, 15:33
Topic: how to read float bytes from Memory?
Replies: 4
Views: 1402

### Re: how to read float bytes from Memory?

I figured it out. It was an issue with the way that I was converting bytes. My negative value integer was not getting complements2 bytes as I thought it was. Once I correct this I was able to get the integer value from _FloatToInt64( ) and convert into byte array that could be converted back to prop...
07 May 2017, 01:00
Topic: how to read float bytes from Memory?
Replies: 4
Views: 1402

### how to read float bytes from Memory?

I am wondering if there is a way to read float bytes from memory directly and put them into an array I am building some converters for Byte, Nibbles, and Binary for Mini-Framework . I can work out bytes for any integer type and have also constructed a class to handle UInt64. This is possible as I al...
01 May 2017, 12:58
Topic: Is it possible to edit AutoHotkey array in memory? Topic is solved
Replies: 13
Views: 2300

### Re: Is it possible to edit AutoHotkey array in memory? Topic is solved

Helgef wrote:If you want to be sure the memory is zero filled, yes.
Thanks
01 May 2017, 12:12
Topic: Is it possible to edit AutoHotkey array in memory? Topic is solved
Replies: 13
Views: 2300

### Re: Is it possible to edit AutoHotkey array in memory? Topic is solved

HotKeyIt wrote:Some test show it does not so we need DllCall("RtlFillMemory","PTR",this.GetAddress(""),"PTR",size,"UCHAR",0).
I am not clear on this part!
Should we call RtlFillMemory to zero fill after using ObjSetCapacity or not?
01 May 2017, 09:50
Topic: Is it possible to edit AutoHotkey array in memory? Topic is solved
Replies: 13
Views: 2300

### Re: Is it possible to edit AutoHotkey array in memory? Topic is solved

@ HotKeyIt , is the memory allocated by ObjSetCapacity guaranteed to be zero-filled? Cheers. For the MfStringBuilder class yes Zero filled and set by ObjSetCapacity , this is done by the default by the MfMemoryString Class. The MfMemoryString Class However is intended to be an internal class and ha...
30 Apr 2017, 22:33
Topic: Is it possible to edit AutoHotkey array in memory? Topic is solved
Replies: 13
Views: 2300

### Re: Is it possible to edit AutoHotkey array in memory? Topic is solved

I have already done much of the work on My StringBullder Class. I opted to use a MfMemoryString class I constructed. the MfMemoryString class uses a lot of numput, numGet, strget, strput and DllCall RtlMoveMemory I was wondering about accessing the contents of byte array directly in memory but I hav...
30 Apr 2017, 17:49
Topic: Is it possible to edit AutoHotkey array in memory? Topic is solved
Replies: 13
Views: 2300

### Is it possible to edit AutoHotkey array in memory? Topic is solved

I have been working on a StringBuilder similar to .net StringBuilder class for Mini-Framework . I am wondering if it is possible to edit an AutoHotkey array of byte values directly in memory. for instance in C# to edit text as a char array directly in memory it would be something like this. fixed (c...
13 Mar 2017, 22:21
Topic: [Solved] How can I determine if integer is greater then Max Integer Topic is solved
Replies: 2
Views: 940

### Re: How can I determine if integer is greater then Max Integer Topic is solved

Thanks lexikos. Seems to work fine. I do not need to check for whitespace so this works fine for me. Works for negative values as well. ; value must be passed in as a string ; "9223372036854775808" will report false ; 9223372036854775808 will report true as without ; quotes AutoHotkey will convert t...
13 Mar 2017, 18:20
Topic: Functions returning two different results every time
Replies: 4
Views: 1208

### Re: Functions returning two different results every time

Mini-Framework contains a TimeSpan Class that may help.
Note the FromMilliseconds Method.

See Post AutoHotkey Mini-Framework Release
13 Mar 2017, 18:09
Topic: [Solved] How can I determine if integer is greater then Max Integer Topic is solved
Replies: 2
Views: 940

### [Solved] How can I determine if integer is greater then Max Integer Topic is solved

How Can I determine if a var is greater than the max integer value of 9223372036854775807 or less then the min integer value of -9223372036854775808 var := "9223372036854775807" . "1" MsgBox % var > 9223372036854775807 ; result is false I am working on a script that will do a procedure if the value ...
20 Feb 2017, 22:17
Forum: Scripts and Functions
Topic: xsdOut a new tool that converts XSD to AutoHotkey or C# is Released
Replies: 0
Views: 1009

### xsdOut a new tool that converts XSD to AutoHotkey or C# is Released

I have released a new project called xsdOut today. It can convert xsd files to AutoHotkey classes or C# Classes. Project can be found on GitHub at https://github.com/Amourspirit/XSD-to-AutoHotkey-or-CS There is a Demo/Help page that explains the command line options with examples. The tool can gener...
17 Feb 2017, 00:50
Forum: Scripts and Functions
Topic: AutoHotkey Mini-Framework Release
Replies: 3
Views: 1552

### Re: AutoHotkey Mini-Framework Release

The Library open up many potentials going forward. For instance AutoHotkey Snippit is in part built upon the Mini-Framework. There are many other class that are part of the framework and plans for new Namespaces that add functionality to AutoHotkey that may have previously been much more tedious to ...
17 Feb 2017, 00:36
Forum: Scripts and Functions
Topic: AutoHotkey Snippit Releaed
Replies: 0
Views: 729

### AutoHotkey Snippit Releaed

Announcing the release of a new AutoHotkey tool AutoHotkey Snippit . AutoHotkey Snippit is a tool that can do many complex related task that AutoHotkey is well suited at doing. The goal of AutoHotkey Snippit is to make it simple to have flexible ways to have, create, share and switch profiles for ea...