Search found 1789 matches

by HotKeyIt
Today, 07:13
Forum: Announcements
Topic: Test build - InputHook, long paths, switch-case
Replies: 5
Views: 147

Re: Test build - InputHook, long paths, switch-case

That is looking very good, many thanks :thumbup:
Input vs InputHook says The Input command limits the length of the input to 16383, while InputHook limits it to 1023. but InputHook help says: If unspecified, the length limit is 16383..
by HotKeyIt
18 Apr 2019, 15:18
Forum: AutoHotkey_H
Topic: How can I tell if a "dll handle" is available?
Replies: 14
Views: 250

Re: How can I tell if a "dll handle" is available?

MT is not multithreading compatible between exe and dll or dll and dll!!!
by HotKeyIt
17 Apr 2019, 17:24
Forum: AutoHotkey_H
Topic: How can I tell if a "dll handle" is available?
Replies: 14
Views: 250

Re: How can I tell if a "dll handle" is available?

Can't do it that way.
The 59 dlls problem does not exist for me, I can load 1000+ dlls
by HotKeyIt
17 Apr 2019, 15:01
Forum: AutoHotkey_H
Topic: How can I tell if a "dll handle" is available?
Replies: 14
Views: 250

Re: How can I tell if a "dll handle" is available?

Can you try if it fails if you only redo the procedure including loading a new dll and threads without restarting, not sure how to debug restarting exe :(
If it fails too, please upload new example. Thank you ;)
by HotKeyIt
17 Apr 2019, 14:55
Forum: Ask For Help
Topic: A_AhkExe() error
Replies: 8
Views: 166

Re: A_AhkExe() error

Try this

Code: Select all

A_AhkExe(){
  static e,i:=VarSetCapacity(e,520),i1:=DllCall(""GetModuleFileName"",PTR,0,Str,e,UInt,260), i2:=VarSetCapacity(e,-1)
  return e
}
by HotKeyIt
16 Apr 2019, 14:28
Forum: AutoHotkey_H
Topic: How can I tell if a "dll handle" is available?
Replies: 14
Views: 250

Re: How can I tell if a "dll handle" is available?

Sorry but I will need an example :(
by HotKeyIt
15 Apr 2019, 14:55
Forum: AutoHotkey_H
Topic: How can I tell if a "dll handle" is available?
Replies: 14
Views: 250

Re: How can I tell if a "dll handle" is available?

Can you try putting this into a variable and also check the result of it when it fails: pi.name " & " pi.id
by HotKeyIt
15 Apr 2019, 14:50
Forum: Ask For Help
Topic: A_AhkExe() error
Replies: 8
Views: 166

Re: A_AhkExe() error

You should use AhkExported for simplicity, otherwise you need to pass all 10 parameters: DllCall(A_AhkExe ""\ahkFunction"",""Str"",""MyFunction"",""Str"", Text, ""Str"", "", ""Str"", "", ""Str"", "", ""Str"", "", ""Str"", "", ""Str"", "", ""Str"", "", ""Str"", "", ""Str"", "", ""Cdecl Str"") Can Ahk...
by HotKeyIt
13 Apr 2019, 17:53
Forum: Ask For Help
Topic: [AHK_H v2] problem with Single/Multi Thread Apartment? Topic is solved
Replies: 2
Views: 107

Re: [AHK_H v2] problem with Single/Multi Thread Apartment? Topic is solved

Seems to work fine with ExeThread, Com/SendMessage does not work with dll: (

Code: Select all

T := ExeThread("
(
	#Persistent
	#NoTrayIcon

	IE := ComObjCreate("InternetExplorer.Application")
	IE.Visible := true
	IE.Navigate("www.google.com")

	OnExit(() => IE.Quit())
)")

Esc::
	ExitApp()
Return
by HotKeyIt
02 Apr 2019, 15:22
Forum: Помощь
Topic: Помогите пожалуйста написать два простых скрипта Topic is solved
Replies: 1
Views: 119

Re: Помогите пожалуйста написать два простых скрипта Topic is solved

1:

Code: Select all

#MaxThreadsPerHotkey 2
$Alt::
	toggle:=!toggle
	While toggle {
		Send {Alt}
		Sleep 100
	}
	toggle:=0
Return
2:

Code: Select all

#MaxThreadsPerHotkey 2
$Alt::
	toggle:=!toggle
	While toggle {
		Send {Alt}
		Sleep 2000
		Send {Space}
	}
	toggle:=0
Return 
by HotKeyIt
31 Mar 2019, 15:24
Forum: AutoHotkey_H
Topic: H2W 383 Error
Replies: 12
Views: 407

Re: H2W 383 Error

Should be fixed now.
by HotKeyIt
31 Mar 2019, 05:17
Forum: AutoHotkey_H
Topic: Just started with _H v2... but.. where do I start??? Topic is solved
Replies: 5
Views: 269

Re: Just started with _H v2... but.. where do I start??? Topic is solved

You have always to pass string to your thread, you can always check if you code looks proper via msgBox. ahkExec only executes some code and deletes it afterwards, main exe is waiting for execution to finish so it can tidy up the code. ahktextdll starts a new script from string, AhkThread does it in...
by HotKeyIt
30 Mar 2019, 17:40
Forum: AutoHotkey_H
Topic: Just started with _H v2... but.. where do I start??? Topic is solved
Replies: 5
Views: 269

Re: Just started with _H v2... but.. where do I start??? Topic is solved

Read the docs about new features (http://hotkeyit.github.io/v2/docs/AHKH_Features.htm), everything else is normal ahk v2: https://lexikos.github.io/v2/docs/AutoHotkey.htm Here is a simple code to get started with multithreading: obj := CriticalObject() ; Create new critical object Loop 4 ; Create 4 ...
by HotKeyIt
28 Mar 2019, 20:04
Forum: AutoHotkey_H
Topic: H2W 383 Error
Replies: 12
Views: 407

Re: H2W 383 Error

You have to create debug dll and debug exe in Visual Studio, then every time you load ahkdll you have to copy to new dll and load it, then you will see where error is happening For example (use correct path for dll): ahkdll(){ ver:=A_TickCount,init:=FileCopy(a_ahkdir "\AutoHotkey.dll",a_ahkdir "\Aut...
by HotKeyIt
28 Mar 2019, 16:48
Forum: AutoHotkey_H
Topic: H2W 383 Error
Replies: 12
Views: 407

Re: H2W 383 Error

So does the code above cause an error in latest version for you?
It seems to work fine for me, also debugger does not report any problem? (same os and ahk)
by HotKeyIt
27 Mar 2019, 18:47
Forum: AutoHotkey_H
Topic: H2W 383 Error
Replies: 12
Views: 407

Re: H2W 383 Error

Try latest version.
by HotKeyIt
27 Mar 2019, 15:08
Forum: AutoHotkey_H
Topic: H2W 383 Error
Replies: 12
Views: 407

Re: H2W 383 Error

Still no problem here! What OS and which version do you have?
by HotKeyIt
26 Mar 2019, 19:57
Forum: AutoHotkey_H
Topic: H2W 383 Error
Replies: 12
Views: 407

Re: H2W 383 Error

Can't reproduce, this works fine:

Code: Select all

f:=AhkThread()
t:=f.addScript
t["MsgBox",0]
by HotKeyIt
26 Mar 2019, 16:35
Forum: C/C++
Topic: C++: setting an AHK script as a variable in cpp source
Replies: 4
Views: 397

Re: C++: setting an AHK script as a variable in cpp source

Yes it is.
The simplest is to add it to LIB resources, this works like a normal library, take a look in resources of the exe with ResourceHacker.

Go to advanced search