View Single Post
  #1245  
Old 14.03.2020, 20:43
zreenmkr zreenmkr is offline
JD Addict
 
Join Date: Feb 2020
Posts: 169
Default

Quote:
Calling the AHK Script in Eventscripter:
awesome, didnt know that could be done.

Quote:
I have not yet understood what was wrong with the exe obtained from autohotkey
its pretty much the same as autoit, its more benificial to focus on one.

Quote:
...I would like to try to understand why <jdHotkey.exe> doesn't work
a few params check was put in place to prevent exe executed by error such as double click

Quote:
...could you tell me what you wrote in au3...
Code:
Global $titleJd = '[CLASS:SunAwtFrame; TITLE:JDownloader 2]'

;help - https://www.autoitscript.com/autoit3/docs/functions/Send.htm

If Not WinExists($titleJd) Then Exit

; If no parameters has been entered
If $CmdLine[0] = 0 Then Exit

; Checking parameter
If $CmdLine[1] == "-hkey" Then
	; if the parameter check out

	If WinActive($titleJd) Then Send('{CtrlDown}{DEL}{CtrlUp}')
	;If WinActive($titleJd) Then Send('{F2}')
EndIf

Exit
Reply With Quote