Search found 1846 matches

by HotKeyIt
17 Apr 2019, 17:24
Forum: AutoHotkey_H
Topic: How can I tell if a "dll handle" is available?
Replies: 14
Views: 1291

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: 1291

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: 735

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: 1291

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: 1291

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: 735

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: 476

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: 509

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: 1183

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: 1023

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: 1023

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: 1183

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: 1183

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: 1183

Re: H2W 383 Error

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

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: 1183

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: 911

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.
by HotKeyIt
26 Mar 2019, 16:28
Forum: AutoHotkey_H
Topic: H2W 383 Error
Replies: 12
Views: 1183

Re: H2W 383 Error

Looks like the stack is full, how many threads are running and what could they be doing that stack gets full?
by HotKeyIt
25 Mar 2019, 14:15
Forum: C/C++
Topic: C++: setting an AHK script as a variable in cpp source
Replies: 4
Views: 911

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

All this is implemented in ahk_h, so why not simply use it. Including a default script in cpp is not a good idea since it won't be able to receive parameters, instead in ahk_h you can execute a different script then compiled one by using /E or /Execute (therefore you have to use the exe instead bin ...
by HotKeyIt
24 Mar 2019, 07:55
Forum: AutoHotkey v2 Development
Topic: Merging AutoHotkey_L and AutoHotkey_H Topic is solved
Replies: 1
Views: 481

Re: Merging AutoHotkey_L and AutoHotkey_H Topic is solved

AHK_H is an extended version so it it is 99,9% compatible and there is no need to merge. AFAIK Lexikos is not interested in all the features I implemented and probably does not like my code and ideas. Also he does not want to have MemoryModule since it is not officially supported by MS and can't loa...

Go to advanced search