Settimer limit Topic is solved
Re: Settimer limit
Telepathy works great, I had the idea while you was writing it
Thank you very much !
By the way I'm surprized the script can delete itself before it finishes. I guess it is loaded to RAM (any confirmation welcomed).
Please let me ask again if there is an other way to load a parallel thread without requiring creating and running a script file ?
Thank you very much !
By the way I'm surprized the script can delete itself before it finishes. I guess it is loaded to RAM (any confirmation welcomed).
Please let me ask again if there is an other way to load a parallel thread without requiring creating and running a script file ?
Re: Settimer limit
@Rohwedder
I'm not familiar with ~.ahk .
I can only assume that the ~ has something to do with the currently running script?
To be honest, I'm actually too nervous to even run the script to find out because of the FileDelete,
I'm not familiar with ~.ahk .
I can only assume that the ~ has something to do with the currently running script?
To be honest, I'm actually too nervous to even run the script to find out because of the FileDelete,
Re: Settimer limit
~.ahk is just an arbitrary file name that I always use for this purpose.
Temporary file names often begin with a tilde, for example ~WRL0005.tmp.
If you use tmp.ahk instead, for example, it works the same way.
FileDelete, ~.ahk really only deletes the file ~.ahk.
Temporary file names often begin with a tilde, for example ~WRL0005.tmp.
If you use tmp.ahk instead, for example, it works the same way.
FileDelete, ~.ahk really only deletes the file ~.ahk.
Re: Settimer limit
@Rohwedder
Thank you.
Thank you.
Re: Settimer limit
@renArD
is there an other way to load a parallel thread without requiring creating and running a script file ?
Perhaps: AutoHotkey_H
https://hotkeyit.github.io/v2/
AutoHotkey_H adds functionality to original AutoHotkey and offers true multi-threading using NewThread() function or AutoHotkey.dll
is there an other way to load a parallel thread without requiring creating and running a script file ?
Perhaps: AutoHotkey_H
https://hotkeyit.github.io/v2/
AutoHotkey_H adds functionality to original AutoHotkey and offers true multi-threading using NewThread() function or AutoHotkey.dll
Re: Settimer limit
Thanks for this suggestion !
I looks promising... and complicated too, mainly because it seams to rely on AHK v2 whereas I wrote my program for v1, which means many changes in syntax. Maybe I should go and translate/adapt everything and be meticulous.
Thanks again to all who helped with my initial case !
I looks promising... and complicated too, mainly because it seams to rely on AHK v2 whereas I wrote my program for v1, which means many changes in syntax. Maybe I should go and translate/adapt everything and be meticulous.
Thanks again to all who helped with my initial case !
Re: Settimer limit
It is also available for v1: https://github.com/HotKeyIt/ahkdll-v1-release/archive/master.zip
Re: Settimer limit
Thanks for your answer !
I may be wrong but it looks that NewThread() isn't available in v1 but in v2 only.
v1 : https hotkeyit.github.io /v1/docs/commands/ Broken Link for safety
v2 : https hotkeyit.github.io /v2/docs/commands/NewThread.htm Broken Link for safety
I may be wrong but it looks that NewThread() isn't available in v1 but in v2 only.
v1 : https hotkeyit.github.io /v1/docs/commands/ Broken Link for safety
v2 : https hotkeyit.github.io /v2/docs/commands/NewThread.htm Broken Link for safety
Re: Settimer limit
Correct, in v1 you have to use AhkThread, which uses AutoHotkey.dll from Resources or disk.
Re: Settimer limit
Hello,
Just to say that this solution worked :
Just to say that this solution worked :
However, it implies loading an ahk file, which seams to be possible only on computers that have AHK installed (because of the "Run, ~.ahk" instruction). I'm working on an other solution but any help will be appreciated.Rohwedder wrote: ↑11 Mar 2020, 07:52Or:Code: Select all
title = Blabla MsgBoxTitle = %title% - Confirmation FileDelete, ~.ahk FileAppend, ( winwait, %MsgBoxTitle%,,1 controlSetText, Button1, This, %MsgBoxTitle% controlSetText, Button2, That, %MsgBoxTitle% controlSetText, Button3, Zout, %MsgBoxTitle% ), ~.ahk Run, ~.ahk MsgBox, 35,% MsgBoxTitle,blabla
Re: Settimer limit
Well, I managed to do the trick by creating an .exe file containing my function :
I integrate this .exe to my program :
Then I run the file with the parameters I wanted to give to my function.
To clean up on close :
I hope this can help someone
Code: Select all
#NoTrayIcon
MsgBox %1% - %2%
ExitApp
Code: Select all
FileInstall, external.exe, %A_Temp%\external.exe, 1
Code: Select all
Run, %A_Temp%\external.exe "%param1%" "%param2%"
Code: Select all
OnExit("EndFunc")
EndFunc()
{
Process, Close, external.exe ;In case it is still open
FileDelete, %A_Temp%\external.exe ;Delete the external program, not to let dirts
}