Search found 2115 matches

by HotKeyIt
22 Sep 2020, 18:57
Forum: Ask For Help
Topic: How do I reuse a thread? Topic is solved
Replies: 5
Views: 119

Re: How do I reuse a thread? Topic is solved

Code: Select all

#Persistent
ahkdll:=AhkThread(0)
MySub:
	ahkdll.ahktextdll("SoundPlay,*-1")
	Random,randomvar,1000,2000
	settimer,MySub,% randomvar
return
by HotKeyIt
21 Sep 2020, 11:58
Forum: Ask For Help
Topic: How do I reuse a thread? Topic is solved
Replies: 5
Views: 119

Re: How do I reuse a thread? Topic is solved

Are you using the latest version, it works fine for me.
by HotKeyIt
25 Aug 2020, 01:40
Forum: Scripts and Functions
Topic: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Replies: 20
Views: 1396

Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation

@guest3456 ScriptGuard2 will definitely not work with H, but ScriptGuard1 should work if the resource name is changed in the script above to that used in the H version of Ahk2Exe. @HotKeyIt could confirm? Cheers AFAIK yes. @TAC109 well as far as i know, the script is not stored in plaintext in AHK_...
by HotKeyIt
15 Aug 2020, 15:39
Forum: AutoHotkey_H
Topic: AHK_H code conflicts in master download
Replies: 3
Views: 1863

Re: AHK_H code conflicts in master download

Yes, that will be fixed in next merge, unfortunately don't have much time currently.
by HotKeyIt
13 Aug 2020, 18:08
Forum: Ask For Help
Topic: right click compile
Replies: 5
Views: 1926

Re: right click compile

You can make a batch script or a shortcut.
Alternatively you can compile Ahk2Exe.
by HotKeyIt
10 Aug 2020, 14:10
Forum: AutoHotkey_H
Topic: Missing function in dll
Replies: 2
Views: 1251

Re: Missing function in dll

When I download the release and create AutoHotkey.ahk in Win32w folder with following content, all works fine:

Code: Select all

ahk:=AhkThread("MsgBox 'From thread'")
Msgbox 'Main thread'
by HotKeyIt
06 Aug 2020, 16:52
Forum: Development
Topic: Gui not usable in a110?
Replies: 2
Views: 1107

Re: Gui not usable in a110?

Thanks, will correct it when I merge latest v2.
by HotKeyIt
02 Aug 2020, 13:10
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 818
Views: 479753

Re: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]

Increase buffers in global properties: Options->Open Global properties->buffers=20.
by HotKeyIt
23 Jul 2020, 08:05
Forum: Ask For Help
Topic: ThreadObj() Not Found
Replies: 1
Views: 1070

Re: ThreadObj() Not Found

ThreadObj exists only in v2, simply use AhkThread: MonitorRWin := Ahkthread("RWin:=0`nLoop {`nKeyWait RWin, D`nQueryPerformanceCounter(getvar(RWinP1:=0))`nKeyWait RWin`nQueryPerformanceCounter(getvar(RWinP2:=0))`nRWin:=RWinP2-RWinP1`n} return") Alias(RWin,MonitorRWin.ahkgetvar("RWin",1)) Loop { Tool...
by HotKeyIt
20 Jul 2020, 02:21
Forum: Ask For Help
Topic: Duplicate class definition when launching Ahk2exe.ahk
Replies: 5
Views: 1675

Re: Duplicate class definition when launching Ahk2exe.ahk

There is a bug in source code, I will fix when I merge latest v1.
by HotKeyIt
08 Jul 2020, 20:28
Forum: Ask For Help
Topic: Compression, Encryption & MPress Work together?
Replies: 1
Views: 1298

Re: Compression, Encryption & MPress Work together?

Yes, afaik they do work together.
by HotKeyIt
04 Jul 2020, 09:02
Forum: Ask For Help
Topic: "Error: Duplicate hotkey" when hotkey is not duplicate
Replies: 5
Views: 1912

Re: "Error: Duplicate hotkey" when hotkey is not duplicate

In task manager, add column "command line parameters" in tab details!
by HotKeyIt
03 Jul 2020, 16:10
Forum: Ask For Help
Topic: Switch-box for exclude some thread ? Topic is solved
Replies: 3
Views: 1837

Re: Switch-box for exclude some thread ? Topic is solved

You should read the checkbox from thread, otherwise you can transfer a value using thread.ahkassign("var",value).
by HotKeyIt
02 Jul 2020, 16:01
Forum: Ask For Help
Topic: "Error: Duplicate hotkey" when hotkey is not duplicate
Replies: 5
Views: 1912

Re: "Error: Duplicate hotkey" when hotkey is not duplicate

Check the command line parameters for AutoHotkey.exe in Taskmanager after reboot, obviously there is another script started automatically, also check autostart folder in C:\Users\YOUR_USER_NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
by HotKeyIt
01 Jul 2020, 19:35
Forum: Ask For Help
Topic: Run Script with AHK.dll
Replies: 1
Views: 724

Re: Run Script with AHK.dll

Pls show your script and code.
by HotKeyIt
30 Jun 2020, 19:36
Forum: Gaming
Topic: How to pause multiple toggle scripts with the same hotkey
Replies: 3
Views: 1180

Re: How to pause multiple toggle scripts with the same hotkey

I can't see the same hotkey in your scripts?
Anyway you can use e.g. ~F5:: so each script and system will see the key: https://www.autohotkey.com/docs/Hotkeys.htm
Otherwise you will need to use the hotkey in only one script and that script will need to toggle pause all other scripts!
by HotKeyIt
30 Jun 2020, 19:31
Forum: Ask For Help
Topic: "Error: Duplicate hotkey" when hotkey is not duplicate
Replies: 5
Views: 1912

Re: "Error: Duplicate hotkey" when hotkey is not duplicate

Do you get the error message when you run the code manually?
What AutoHotkey version are you using MsgBox % A_AhkVersion?
by HotKeyIt
30 Jun 2020, 12:14
Forum: Ask For Help
Topic: wake up from suspension
Replies: 3
Views: 1650

Re: wake up from suspension

Does this work? Hibernate( T="", O=0, U="H" ) { ; by SKAN www.autohotkey.com/forum/viewtopic.php?t=50733 T += %O%,%U% EnvSub, T, 16010101, S VarSetCapacity(FT,8), DllCall( "LocalFileTimeToFileTime", Int64P,T:=T*10000000,UInt,&FT ) If hTmr := DllCall( "CreateWaitableTimer", UInt,0, UInt,0, UInt,0 ) I...

Go to advanced search