Search found 214 matches

by oif2003
20 Dec 2018, 02:25
Forum: Ask For Help
Topic: AHK v2: converting/optimizing scripts Topic is solved
Replies: 266
Views: 32567

Re: AHK v2: converting/optimizing scripts Topic is solved

I was thinking along the lines of using StrPut... but maybe that is slow, too. And the callee has to read the string char by char right? We can put the needle first so the callee will obtain the needle before the haystack. But probably easier to just assume a max length for needle and give them fixe...
by oif2003
20 Dec 2018, 02:06
Forum: Ask For Help
Topic: AHK v2: converting/optimizing scripts Topic is solved
Replies: 266
Views: 32567

Re: AHK v2: converting/optimizing scripts Topic is solved

I'm playing with the code you posted right now... Hey, just an idea, if the number of parameters causes significant slow down, can we cheat by using a pipe character to separate them so we can send them together? There are plenty of unused Unicode characters. Also, since we have full control of the ...
by oif2003
20 Dec 2018, 00:31
Forum: Ask For Help
Topic: AHK v2: converting/optimizing scripts Topic is solved
Replies: 266
Views: 32567

Re: AHK v2: converting/optimizing scripts Topic is solved

Fascinating stuff there! I will need to reread these posts a few more times to get more out of them. I think many or all of the AHK_H stuff works from AutoHotkey.exe, so there's no need to wrap DynaCall inside another DllCall. I'm already using it and so far it feels no different from AHK v2 aside f...
by oif2003
19 Dec 2018, 20:08
Forum: Ask For Help
Topic: AHK v2 - Local Help file - Window Spy
Replies: 13
Views: 3744

Re: AHK v2 - Local Help file - Window Spy

AHK v2 doesn't come with Window Spy. When you removed everything in the AHK folder you probably also deleted Window Spy. I use Window Spy from v1. It is not a bug.
by oif2003
19 Dec 2018, 17:51
Forum: Ask For Help
Topic: Function equivalents for AHK commands
Replies: 6
Views: 965

Re: Function equivalents for AHK commands

swagfag wrote:
19 Dec 2018, 17:43
:lol:
by oif2003
19 Dec 2018, 15:57
Forum: Ask For Help
Topic: Sort Array (2D) ? Topic is solved
Replies: 15
Views: 3165

Re: Sort Array (2D) ? Topic is solved

Hi,
It is not obvious to me how one would sort a 2D array. Are you trying to say, sort by rows first, then by columns? or the other way around?
by oif2003
19 Dec 2018, 14:24
Forum: Ask For Help
Topic: AHK v2 - Local Help file - Window Spy
Replies: 13
Views: 3744

Re: AHK v2 - Local Help file - Window Spy

Hi,
I did not encounter those problems when using AHK v2, so the solutions may not work:
1) try https://www.quora.com/How-do-I-open-chm ... in-Windows
2) try using AHK_L to load the Window Spy Script
by oif2003
19 Dec 2018, 14:02
Forum: Ask For Help
Topic: AHK v2: converting/optimizing scripts Topic is solved
Replies: 266
Views: 32567

Re: AHK v2: converting/optimizing scripts Topic is solved

I found it!!! to enable C99: -std=c99 After that the function became super short in disassembler. lol ... so what do u think of Anchor function? Do u use complex GUI frequently? https://www.autohotkey.com/boards/viewtopic.php?p=253072#p253072 That is good to know! :thumbup: I will keep that in mind...
by oif2003
19 Dec 2018, 02:38
Forum: Ask For Help
Topic: AHK v2: converting/optimizing scripts Topic is solved
Replies: 266
Views: 32567

Re: AHK v2: converting/optimizing scripts Topic is solved

Hey, Cygwin64's gcc.exe worked for me msgbox(DllCall(MCode("2,x64:uCoAAADD"))) MCode(mcode) { static e := {1:4, 2:1}, c := (A_PtrSize=8) ? "x64" : "x86" if !regexmatch(mcode, "^([0-9]+),(" c ":|.*?," c ":)([^,]+)", m) return if !DllCall("crypt32\CryptStringToBinary", "str", m.value(3), "uint", 0, "...
by oif2003
19 Dec 2018, 01:37
Forum: Ask For Help
Topic: AHK v2: converting/optimizing scripts Topic is solved
Replies: 266
Views: 32567

Re: AHK v2: converting/optimizing scripts Topic is solved

vvhitevvizard wrote:
19 Dec 2018, 01:32
Yeah, I think it's time to find a new compiler! Maybe give GCC a shot? joedf has a MCode generator that you can use, too, as a bonus
https://www.autohotkey.com/boards/viewt ... =mcode+gcc
by oif2003
19 Dec 2018, 01:21
Forum: Ask For Help
Topic: AHK v2: converting/optimizing scripts Topic is solved
Replies: 266
Views: 32567

Re: AHK v2: converting/optimizing scripts Topic is solved

Thanks to HotKeyIt. He really has done some wonderful things with AHK H.
vvhitevvizard wrote:
19 Dec 2018, 01:04
LOL it has a call to another function wcschr. :D
so the rabbit hole continues ... Anyhow, what tools are you using to map those functions? It looks pretty awesome :P
by oif2003
19 Dec 2018, 00:47
Forum: Ask For Help
Topic: AHK v2: converting/optimizing scripts Topic is solved
Replies: 266
Views: 32567

Re: AHK v2: converting/optimizing scripts Topic is solved

Hey, I think I will switch over to AutoHotkey H v2 for a little bit. Being able to use AHK features from other programs is pretty awesome and that MemoryModule is pretty slick, too: msgbox(DllCall(MemoryGetProcAddress(MemoryLoadLibrary(A_Desktop "\\tcc64\\test2.dll"),"hello"), "AStr", A_UserName)) 8...
by oif2003
19 Dec 2018, 00:28
Forum: Ask For Help
Topic: AHK v2: converting/optimizing scripts Topic is solved
Replies: 266
Views: 32567

Re: AHK v2: converting/optimizing scripts Topic is solved

A quick look inside wchar.h :shock: /** * This file has no copyright assigned and is placed in the Public Domain. * This file is part of the w64 mingw-runtime package. * No warranty is given; refer to the file DISCLAIMER within this package. */ #ifndef _INC_WCHAR #define _INC_WCHAR #include <_mingw...
by oif2003
19 Dec 2018, 00:04
Forum: Ask For Help
Topic: AHK v2: converting/optimizing scripts Topic is solved
Replies: 266
Views: 32567

Re: AHK v2: converting/optimizing scripts Topic is solved

That was one of those things I was unsure of, and that's why I left them there. I think AStr was also faster, too on some of my tests. Here's a more slim version I was messing around with last night. I changed the Str inside __Get to AStr, removed a few things, and updated some examples. I managed ...
by oif2003
18 Dec 2018, 17:47
Forum: Ask For Help
Topic: AHK v2: converting/optimizing scripts Topic is solved
Replies: 266
Views: 32567

Re: AHK v2: converting/optimizing scripts Topic is solved

BTW, have you seen this? AHK H v2 comes with MemoryModule (by the same person that wrote the tutorial I linked earlier) that allows you to load DLL directly into memory... MemoryModule was developed by Joachim Bauch and is released under MPL 2.0. The default windows API functions to load external li...
by oif2003
18 Dec 2018, 16:43
Forum: Ask For Help
Topic: AHK v2: converting/optimizing scripts Topic is solved
Replies: 266
Views: 32567

Re: AHK v2: converting/optimizing scripts Topic is solved

And since you like this sort of thing: DllCall("VirtualProtect",'ptr',&(p:=FileRead(f:=A_Desktop "\otest.bin","RAW")),'uint',FileGetSize(f),'uint',0x40) loop 3 msgbox(DllCall(&p)) :lol: Anyway, I copied and pasted old code I used and didn't think much of it. I am not sure why it works here. Anyway, ...
by oif2003
18 Dec 2018, 16:38
Forum: Ask For Help
Topic: AHK v2: converting/optimizing scripts Topic is solved
Replies: 266
Views: 32567

Re: AHK v2: converting/optimizing scripts Topic is solved

That's some really nice work, btw. This worked for me: good to know. ;) but the query is could we get rid of redundant copying from 1 buffer to another? can we just assign 1st buffer address obtained from FileRead ? Very good point, I don't know why that never occurred to me :facepalm: p:=FileRead(...
by oif2003
18 Dec 2018, 16:29
Forum: Ask For Help
Topic: AHK v2: converting/optimizing scripts Topic is solved
Replies: 266
Views: 32567

Re: AHK v2: converting/optimizing scripts Topic is solved

You uploaded the .o file so I figure I can maybe just load part (or all) of it to get it to work, but apparently I have failed! omg. I made a botch again. =) ok, I re-uploaded the right file. in the same post. .o was output made by ur first script posted concerning TCC combined with AHK All good ma...
by oif2003
18 Dec 2018, 16:21
Forum: Ask For Help
Topic: AHK v2: converting/optimizing scripts Topic is solved
Replies: 266
Views: 32567

Re: AHK v2: converting/optimizing scripts Topic is solved

You uploaded the .o file so I figure I can maybe just load part (or all) of it to get it to work, but apparently I have failed!

Go to advanced search