Search found 1616 matches

by HotKeyIt
26 Mar 2018, 18:30
Forum: AutoHotkey_H
Topic: How to add parameters into AhkThread ? Topic is solved
Replies: 5
Views: 286

Re: How to add parameters into AhkThread ? Topic is solved

Code: [Select all] [Expand]GeSHi © Codebox Plus

by HotKeyIt
26 Mar 2018, 03:36
Forum: AutoHotkey_H
Topic: Bug on Windows XP Prof. SP3 32 bit Topic is solved
Replies: 4
Views: 240

Re: Bug on Windows XP Prof. SP3 32 bit Topic is solved

There is a missing function in XP that is now loaded dynamically when it exist.
You will have to whitelist the AutoHotkeySC.bin file in Norton.
by HotKeyIt
25 Mar 2018, 16:14
Forum: AutoHotkey_H
Topic: Crash… crash… crash…
Replies: 11
Views: 608

Re: Crash… crash… crash…

I see, I think this depends on your script since there is only one WorkingDir across all threads in a process. Running a simple MsgBox script in a different path via AhkThread does not change WorkingDir for me. Multithreaded applications and shared library code should not use the GetCurrentDirectory...
by HotKeyIt
25 Mar 2018, 10:20
Forum: AutoHotkey_H
Topic: Bug Report (AHK.dll) Topic is solved
Replies: 9
Views: 476

Re: Bug Report (AHK.dll) Topic is solved

Tried but it did not add the script to the list, when starting again I got this error: There were errors while trying to run scripts: DLL path not specified: Std I believe the bug has been fixed in the last release, can you test it please: https://github.com/HotKeyIt/ahkdll-v1-release/archive/master...
by HotKeyIt
25 Mar 2018, 10:09
Forum: AutoHotkey_H
Topic: Help me generate script run with real multithread Topic is solved
Replies: 9
Views: 326

Re: Help me generate script run with real multithread Topic is solved

This error is due to using AutoHotkey_H v2, try using AutoHotkey_H v1. AFAIK your Gdip functions are also not compatible with v2, otherwise you need to use proper syntax for v2:
ProcessSetPriority("High"), also remove Setbatchlines.
by HotKeyIt
25 Mar 2018, 10:05
Forum: AutoHotkey_H
Topic: Bugs and flaws or stupid me?
Replies: 17
Views: 667

Re: Bugs and flaws or stupid me?

Thanks for fixing the issues. There is one more in AhkThread that I had forgot about: due to a badly formed comparison it doesn't free objects when the obj parameter is not specified. It should be if (obj="") , not if obj="" . For testing: msgbox, % testFunc() testFunc(o...
by HotKeyIt
25 Mar 2018, 09:57
Forum: AutoHotkey_H
Topic: Help me generate script run with real multithread Topic is solved
Replies: 9
Views: 326

Re: Help me generate script run with real multithread Topic is solved

Yes but the script above is for AutoHotkey_H v1, your picture is not displayed unfortunately, can you type down the error?
by HotKeyIt
25 Mar 2018, 09:54
Forum: AutoHotkey_H
Topic: Crash with ahkThread on Win10 x64 - v1.1.28
Replies: 29
Views: 1087

Re: Crash with ahkThread on Win10 x64 - v1.1.28

I think I have found the problem, can you please try latest release.
by HotKeyIt
25 Mar 2018, 08:29
Forum: AutoHotkey_H
Topic: Help me generate script run with real multithread Topic is solved
Replies: 9
Views: 326

Re: Help me generate script run with real multithread Topic is solved

Try something like this: threads:=[] Loop 8 threads[A_Index]:=AhkThread(" ( SetBatchLines, -1 gdipToken := Gdip_Startup() #Include Gdip_All.ahk #Include Gdip_ImageSearch.ahk run: running:=true bmpHaystack := Gdip_CreateBitmapFromFile(link) bmpNeedle := Gdip_CreateBitmapFromFile(linkb) RET := Gd...
by HotKeyIt
25 Mar 2018, 08:06
Forum: AutoHotkey_H
Topic: Crash… crash… crash…
Replies: 11
Views: 608

Re: Crash… crash… crash…

You can call AhkThread without giving a path, it will use included dll from resources.
by HotKeyIt
24 Mar 2018, 19:01
Forum: AutoHotkey_H
Topic: Crash… crash… crash…
Replies: 11
Views: 608

Re: Crash… crash… crash…

I downloaded your files and replaced MainTestScript.exe with latest AutoHotkey.exe from Win32w folder and script worked fine.
Can you please test again with latest version and let me know if it works.
by HotKeyIt
24 Mar 2018, 18:51
Forum: AutoHotkey_H
Topic: Crash with ahkThread on Win10 x64 - v1.1.28
Replies: 29
Views: 1087

Re: Crash with ahkThread on Win10 x64 - v1.1.28

Code: [Select all]GeSHi © Codebox Plus

#Persistent
testThread := ahkThread("#Persistent`n#NoTrayIcon`nSoundBeep`nReturn")
SoundBeep
Return

Just tested with latest release (1.1.28.0-H006) using 32w, 32a and 64 bit also in C:\Temp and no crash, script runs as expected :?
Can you please test again with the newest release?
by HotKeyIt
24 Mar 2018, 18:40
Forum: AutoHotkey_H
Topic: Bugs and flaws or stupid me?
Replies: 17
Views: 667

Re: Bugs and flaws or stupid me?

I have updated Compiler lib functions and fixed ResGet to return the size and reset buffer properly.

Can you test again and give me an example showing the problem with regards to UTF-8 and StrGet/FileAppend.
by HotKeyIt
20 Mar 2018, 09:46
Forum: Ask For Help
Topic: AutoHotkey.dll and COM interface setup issue
Replies: 3
Views: 230

Re: AutoHotkey.dll and COM interface setup issue

Try running regsvr32 from cmd as Administrator!
by HotKeyIt
19 Mar 2018, 04:57
Forum: AutoHotkey_H
Topic: Bug Report (AHK.dll) Topic is solved
Replies: 9
Views: 476

Re: Bug Report (AHK.dll) Topic is solved

What OS do you use?
Can you write down the steps you do to cause the crash?
by HotKeyIt
18 Mar 2018, 19:30
Forum: AutoHotkey_H
Topic: Bug Report (AHK.dll) Topic is solved
Replies: 9
Views: 476

Re: Bug Report (AHK.dll) Topic is solved

I can't reproduce it on Win 10 64-bit, in your script you are not using ahk.dll, can you provide a full example showing the problem?
by HotKeyIt
11 Mar 2018, 16:21
Forum: Ask For Help
Topic: Error while Including Autohotkey.dll
Replies: 2
Views: 211

Re: Error while Including Autohotkey.dll

You can't include a dll, best is to use AHK_H with AutoHotkey.dll and AhkThread to launch a new thread. Otherwise you will need to call DllCall("LoadLibrary","Str",PathToAutoHotkeyDLL,"Ptr") , and then start a thread using ahkdll or ahktextdll , see docs .

Go to advanced search