Panha wrote: ↑Mon Sep 30, 2024 12:00 pm
moe33 wrote: ↑Mon Sep 30, 2024 11:30 am
Because I'm too lazy to type, I wrote this script... just click the mouse
This code is written in Gemini, because I can't write code (lll¬ω¬)
But it works well~
Maybe it would be better to change it to a floating window (because it's too long...), but Gemini can't do it, so leave it like this ┑( ̄Д  ̄)┍
Download here
Thanks~
Please make a tutorial about how to use Gemini to write Lua code for Moho to help people who can't write code, I tried it some time ago but it does not work, and I don't really know how to place the code inside the code template that I took from Moho script website.
1.
https://mohoscripting.com/new_script I will first use this tool to make a code template, such as what buttons or text boxes I need. If I know there are similar scripts, I will copy some codes into the template myself.
2. Then send the code template to Gemini and tell it that
this is a lua script for Moho and what function I need this code to achieve.
3. Then run the script code it replies to me in Moho. The code written by Gemini is usually wrong, but Moho will prompt which line of code has a problem. I will first look at the line of code with the error, and then go to
https://mohoscripting.com/ to find which page it is on.
4. Then select and copy the relevant page, send it directly to Gemini, tell it that
these are Moho's APIs, and let it modify the code again.
In short, just repeat the above steps until it can run.
I used Chatgpt before, but now it has a limit on the number of chats (and it seems to have become stupid now), so I chose Gemini, but Gemini doesn't feel very smart.
You can try Cursor
https://www.cursor.com/, which has many AIs to choose from.