Possible wait for specific key press only?
Title
What do you expect to happen when you run the script/macro?
Currently if I select a file on my Mac Finder window, if I run this macro it will open the "Get Info" window for the file by using the key command CMD + I, then I have the macro tabbing all the way to the comment section so that I may start typing.
All that works as it should.
The issue is I would be that I would like to add some sort of "Wait or Pause Until Condition is Met" action for when I press the "Return" key after I type what I need to type on the comments whcih will close the "Get Info" window by using the key command CMD + W. The comments will always be unique as well.
Are you seeing an error?
No
What happens when you run this script?
When I currently run the macro it works as it should. I would need help figuring out the rest of it when I would like to add comments and then close the window after the comments have been added.
How were you running this script?
I used a Stream Deck button
How important is this issue to you?
5
Details
{
"inputExpected": "Currently if I select a file on my Mac Finder window, if I run this macro it will open the \"Get Info\" window for the file by using the key command CMD + I, then I have the macro tabbing all the way to the comment section so that I may start typing. \n\nAll that works as it should.\n\nThe issue is I would be that I would like to add some sort of \"Wait or Pause Until Condition is Met\" action for when I press the \"Return\" key after I type what I need to type on the comments whcih will close the \"Get Info\" window by using the key command CMD + W. The comments will always be unique as well. ",
"inputIsError": false,
"inputWhatHappens": "When I currently run the macro it works as it should. I would need help figuring out the rest of it when ",
"inputHowRun": {
"key": "-MpfwmPg-2Sb-HxHQAff",
"title": "I used a Stream Deck button"
},
"inputImportance": 5
}
Source
//Macro converted to script
sf.keyboard.press({
keys: "cmd+i",
fast: false,
});
sf.keyboard.press({
keys: "tab, tab, tab, tab, tab, tab, tab, tab, tab, tab, tab",
fast: true,
});
Links
User UID: oUJTF38gsEPkopNeGhXAxLKEVBm2
Feedback Key: sffeedback:oUJTF38gsEPkopNeGhXAxLKEVBm2:-MwZckCVyXNSI7Xytm3i
Linked from: