#1
|
||||
|
||||
Eventscripter multiple buttons for the same trigger
I want to launch several Autohotkey macros from linkgrabber bottom toolbar. But I want each button launches only the assigned macro. Currently any button launches all the macros because their trigger is the same "Linkgrabber Bottombar Button Pressed"
Code:
callAsync(function(exitCode, stdOut, errOut) {}, ["d:\\BACKUP THIS\\jdownloaderl.exe"]); Code:
callAsync(function(exitCode, stdOut, errOut) {}, ["d:\\BACKUP THIS\\moveall.exe"]); |
#2
|
||||
|
||||
__________________
JD-Dev & Server-Admin |
#3
|
|||
|
|||
@tunayx
Coalado showed me how it can be done.
Code:
//If Button1 is pressed if (name == "Button1") { //Execute this Macro alert("You pressed Button 1") } //If Button2 is pressed if (name == "Button2") { //Execute this Macro alert("You Pressed Button2") } //If Button3 is pressed if (name == "Button3") { //Execute this Macro alert("You Pressed Button3") } Last edited by mgpai; 16.10.2015 at 13:53. |
|
|