They both communicate with each other and it works fine
AHK script sends a key to activate the other and wait for it to find the image which then receives a 'a' input and moves on
Code: Select all
Input, SingleKey, C, a ; Wait for other script to finish
I tried
Code: Select all
Input, SingleKey, C, a,b ; Wait for other script to finish
;----- ShortCut
If (SingleKey = a)
{
Sleep 3000
MouseMove 1177, 82 ; Close
Send {LButton}
Sleep 5000
Send z
Sleep 940000
Send z
Sleep 19000
}
If (SingleKey = b)
{
MouseMove 784, 987 ; check result
Send {LButton}
Sleep 1500
MouseMove 954, 683 ; Confirm
Send {LButton}
Sleep 3000
MouseMove 1177, 82 ; Close
Send {LButton}
Sleep 60500
}
I also tried
Code: Select all
Input, SingleKey, C, a,b ; Wait for other script to finish
;----- ShortCut
If (SingleKey = a)
{
...
}
Else If (SingleKey = b)
{
...
}
Code: Select all
Input, SingleKey, C, a,b ; Wait for other script to finish
;----- ShortCut
If (SingleKey = a)
{
...
}
Else
{
...
}
Thanks in advance