Search found 17 matches

by HakitoJin
13 May 2019, 08:25
Forum: Scripts and Functions
Topic: [V2] Assembly to Machine-code using Keystone.dll
Replies: 3
Views: 1020

Re: [V2] Assembly to Machine-code using Keystone.dll

Is this exclussive for ahk v2 or is there a possibility to have it in v1? (V1 throws "ERROR AT KS_ASM") Cheers and thanks for sharing! Here is some code that seems to work in v1, also, ew v1... Keystone("C:\Users\Hakito\Desktop\keystone.dll") Msgbox % Keystone("ADD EAX,0x2; CMP EAX,0x2; JG label; S...
by HakitoJin
08 May 2019, 17:49
Forum: Scripts and Functions
Topic: [V2] Assembly to Machine-code using Keystone.dll
Replies: 3
Views: 1020

[V2] Assembly to Machine-code using Keystone.dll

This open-source assembler seems to have an ok license, so I made a function for it, expect assembly of small code to take around 0.3ms. You will need a dll (step1-2), my function (step3), and the knowledge of how to use said function (step4-5). Let me know if anything doesn't work, I will make sure...
by HakitoJin
09 Apr 2019, 09:05
Forum: Ask For Help
Topic: AHK v2 question: Running a file with chinese characters throws an error in v2, not in v1 Topic is solved
Replies: 4
Views: 971

Re: AHK v2 question: Running a file with chinese characters throws an error in v2, not in v1 Topic is solved

When notepad++ saves a file as UTF-8, there is literally no difference between that file, and the same file saved as ANSI. So autohotkey loads the UTF-8 file as ANSI, because there is no way to distinguish it (no idea why your ahk1 loads it as UTF-8 though). Also, when you save the same file as UTF-...
by HakitoJin
28 Mar 2019, 12:25
Forum: Scripts and Functions
Topic: [v2] Cursor Manager (+33 RGB cursors)
Replies: 0
Views: 627

[v2] Cursor Manager (+33 RGB cursors)

Easily change cursors on the fly, comes with 33 fully animated RGB cursors. Can be made to run on startup or minimize to tray by right-clicking the program's tray icon. Then it can be shown again with a single left-click on its tray icon. Downloads: Release Page: https://github.com/HakitoJin/Cursor...
by HakitoJin
08 Mar 2019, 07:08
Forum: Bug Reports
Topic: [BUG] Gui controls can't use x+-10 as position Topic is solved
Replies: 4
Views: 1249

[BUG] Gui controls can't use x+-10 as position Topic is solved

This:

Code: Select all

gui:=guicreate("")
gui.add("button","x5 w200 h200","large one")
gui.add("button","x+-10","small one")
gui.show("")
Gives this error:
Error: Invalid option.
Specifically: x+-10
(can't post images)
by HakitoJin
12 Sep 2018, 16:37
Forum: Scripts and Functions
Topic: [AHK2] FileAssociate() - Works with Win10
Replies: 3
Views: 1770

[AHK2] FileAssociate() - Works with Win10

Change PlayerPath and EditorPath to paths of executables that can run mp3 files, and run the script. Type "/useplayer" or "/useeditor" (anywhere) to change which program is associated with mp3 files. Example usage is shown in the script, you can associate any extension with anything, but you can't a...
by HakitoJin
27 Aug 2018, 05:14
Forum: Bug Reports
Topic: (SOLVED) [AHK2] A_LoopFileFullPath is over 10 times slower than in AHK1
Replies: 3
Views: 1417

(SOLVED) [AHK2] A_LoopFileFullPath is over 10 times slower than in AHK1

Edit : { Not a bug, A_LoopFileLongPath was changed to A_LoopFileFullPath in AHK2... } Here's a comparison: https://i.imgur.com/wqxEou7.png And it gets exponentially worse the more files there are, for example, looping through 'C:\Windows\SysWOW64'... A_LoopFilePath : 13,494 A_LoopFileFullPath : 2,5...
by HakitoJin
25 Aug 2018, 17:32
Forum: Ask For Help
Topic: [Ahk2] How to disable "Type mismatch"?
Replies: 6
Views: 1191

Re: [Ahk2] How to disable "Type mismatch"?

"Type mismatch" is an error message, not the error. Yes I know, I am just saying it's as bad as an error message, and now I can't do iF(x+y="") to check if one of two numbers is empty, nor iF(x&1) to check for even numbers. The only way to do that is to modify the program itself, in C++. So... why ...
by HakitoJin
25 Aug 2018, 15:48
Forum: Ask For Help
Topic: [Ahk2] How to disable "Type mismatch"?
Replies: 6
Views: 1191

Re: [Ahk2] How to disable "Type mismatch"?

Type mismatch IS the error though.
by HakitoJin
25 Aug 2018, 15:01
Forum: Ask For Help
Topic: [Ahk2] How to disable "Type mismatch"?
Replies: 6
Views: 1191

[Ahk2] How to disable "Type mismatch"?

I just want my invalid expressions to return null like they used to, is that too much to ask? Object warnings were annoying too until I found how to disable them in the documentation, so I'm hoping there's something for mismatch too. Here's the code for that unrelated object warning thing, just call...
by HakitoJin
20 Aug 2018, 18:45
Forum: Scripts and Functions
Topic: GUI Skinning Methods
Replies: 60
Views: 27703

Re: GUI Skinning Methods

Oh, it seems I accidentally used the 32bit version of 1.1.24.5 and the 64bit of the newer one, ha, haha, ahaha... ^—^``
Thanks mate!
by HakitoJin
20 Aug 2018, 13:45
Forum: Scripts and Functions
Topic: GUI Skinning Methods
Replies: 60
Views: 27703

Re: GUI Skinning Methods

Neither of those seem to work after I've upgraded from 1.1.24.5 to 1.1.29.01 (not sure which version broke them), anyone knows what's wrong?
by HakitoJin
10 Aug 2018, 10:21
Forum: Ask For Help
Topic: Does IniWrite rewrite the whole file every time? Topic is solved
Replies: 7
Views: 1325

Re: Does IniWrite rewrite the whole file every time? Topic is solved

Well, in your test it is obvious that using FileAppend you write everything at once, and on the contrary, you are calling IniWrite 30 times. You can write everything at once: IniValues= ( Entry1=837 Entry2=837 Entry3=837 Entry4=837 Entry5=837 Entry6=837 Entry7=837 Entry8=837 Entry9=837 Entry10=837 ...
by HakitoJin
10 Aug 2018, 10:02
Forum: Ask For Help
Topic: Does IniWrite rewrite the whole file every time? Topic is solved
Replies: 7
Views: 1325

Re: Does IniWrite rewrite the whole file every time? Topic is solved

In my experiment IniWrite was about 2 times faster than FileAppend, but only when saving a single key with IniWrite and 30 with FileAppend. If you save 30 keys with both, then IniWrite becomes up to TEN TIMES SLOWER than FileAppend, holy guacamole! Stats: 30 Keys with FileAppend = 0.5-1.0ms / 1640-3...
by HakitoJin
10 Aug 2018, 08:55
Forum: Ask For Help
Topic: Does IniWrite rewrite the whole file every time? Topic is solved
Replies: 7
Views: 1325

Re: Does IniWrite rewrite the whole file every time? Topic is solved

Right, but isn't IniWrite just "FileRead FileDelete FileAppend" over and over? If it doesn't do anything special then I'd rather format my stuff to look like an ini, use FileAppend to save it, and then IniRead to read pieces of it. Hm, I'll go to test if IniWrite is faster than FileAppend, if it rew...
by HakitoJin
10 Aug 2018, 07:07
Forum: Ask For Help
Topic: Does IniWrite rewrite the whole file every time? Topic is solved
Replies: 7
Views: 1325

Does IniWrite rewrite the whole file every time? Topic is solved

Because I got like 50 IniWrites and I am thinking FileAppend would be faster.
by HakitoJin
04 Jun 2018, 12:55
Forum: Wish List
Topic: Change the base of Log() using second parameter
Replies: 1
Views: 1089

Change the base of Log() using second parameter

Here is what I am currently using:

Code: Select all

LogBase(Number,Base=10)
{
	return Log(Number)/Log(Base)
}
It would be neat if the built-in version could do the same.

Go to advanced search