-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Macros #8
Comments
Thanks for asking! Yes I have lots of plans and opinions for macros, especially for AC. I'd actually like to implement some of these fake QOL updates by suggesting default macros to use based on the content on your screen. I'm just waiting to get my video capture device before testing more. As for a DSL, I've outlined our API spec that is written with lots of consideration for people writing macros: https://github.com/juharris/switch-remoteplay/blob/master/server/README.md#api |
That's a really cool video! Reading the API it appears to me that the parsing should be done by the client (so it can take care of the wait instruction). I think that may unsync the sequence. I mean Also I'm thinking of adding some control structures, like a |
WaitYeah I'm not completely sure who should do the wait but I am leaning more towards the server doing it: advantages for server:
advantage for client:
LoopsYes I've also been thinking of a good looping syntax. For loop I want to support:
I was thinking of supporting:
|
BTW As for security of these things, I'm not so worried since I hope people don't really expose their servers too publicly but I have lots of plans for various security features and configuration to enable/disable them. For example, we would have options to allow/ban infinite loops and an option for max N for a loop. |
I think
It's a bit more wasteful with the character count, but not that much. Braces would be ok too. For the conditionals we need some kind of expression first. Maybe we should wait for the video capture to really know which kind of interesting conditions exist. |
I don't have strong feeling for Yeah that multiline style is nice but I image people would write macros within our client page in the browser and so the actual API styling would be handled elsewhere. Although I guess we should support loading macros from a file so this styling does matter. Even though I do like Python, I think for non-devs, we shouldn't really rely on just whitespace to parse commands, so have braces is safer than only whitespace/indents. Yeah character count isn't great but I think that's ok for macros. I mainly want to make sure that natural input from keystroke, controllers, etc. is as fast as possible. |
BTW you should DM me on Twitter and I can add you to our Discord server. LMK if you don't have Twitter: https://twitter.com/jusharris |
Macros: save, edit, and delete. They're stored in your browser. Relates to #8
I was just thinking of developing something that allows me to automate a little my ACNH experience. But instead of writing my own I think I can help you with this.
I'll be happy to make a DSL for writing and running macros.
Do you have any strong opinions on the subject?
The text was updated successfully, but these errors were encountered: