Can somone help me to do this part of this script :
if LButton is pressed{
Send y
}
if Rbutton is pressed{
Send n
}
This is the script :
#If WinActive("Add ahk_exe anki.exe")
^m::
WinClose Add ahk_exe anki.exe
if WinActive("Anki ahk_exe anki.exe"){
if LButton is pressed{
Send y
}
if Rbutton is pressed
Send n
}
#If
I’ve tried this but didn’t work :
#If WinActive("Add ahk_exe anki.exe")
^m::
WinClose Add ahk_exe anki.exe
if WinActive("Anki ahk_exe anki.exe"){
KeyWait, LButton ,D
if not ErrorLevel{
Send y
}
Else{
KeyWait, RButton ,D
Send n
}
#If
Any help please, I’Il be so appreciated