View Single Post
  #1243  
Old 14.03.2020, 19:16
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,545
Default

@BJN01: AHK Example

AHK Script (notepad.ahk):
Code:
run notepad
WinWait, Untitled - Notepad
WinActivate,  Untitled - Notepad
SendInput, %1%
Send, !fs

Calling the AHK Script in Eventscripter:
Code:
// AHK demo

var ahk = "C:\\AHK\\AutoHotkeyU32.exe";
var script = "C:\\AHK\\Scripts\\notepad.ahk";
var text = getAllDownloadLinks().map(function(link) {
    return [link.getPackage().getName(), link.getName(), link.getUrl()].join(", ");
}).join("\n")

callSync(ahk, script, text);
Reply With Quote