Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ChatGPT seems to generate correct QM response!
#1
If image doesn't show:
https://ibb.co/vkNbKt5

[Image: 1.png]
#2
The results I obtained are different, but they are Basically correct. For some simple problems, the results are very good
The referenced URL cannot be opened, the domain name has been switched, which may affect the results?

 To delete a file in Quick Macros, you can use the DeleteFile function. Here's an example code:
 
Code:
Copy      Help
str filename = "example.txt";
if(DeleteFile(filename) == 0) out "Failed to delete file.";
else out "File deleted successfully!";
 This code uses the
 
Code:
Copy      Help
DeleteFile
function to delete the file named "example.txt". If the function returns a value of 0, the deletion has failed, and the program prints a failure message. Otherwise, if the function succeeds, the program prints a success message.
Reference:
[1]
#3
Chatgpt seems to be talking nonsense  Big Grin

Ask:
Do you know LibreAutomation

Answer:
Yes, I am familiar with LibreAutomate. It is an open-source automation and task automation app for Android devices.
#4
It's interesting. I have also tried asking ChatGPT to write QuickScore/LA code to implement several rather complicated tasks on my computer. ChatGPT does a fantastic job with the questions I ask, and the generated code is very clear, with comments for each step. What I do is I provide ChatGPT with more details about QuickMacro. I paste a piece of example code written by Gintaras into ChatGPT and inform ChatGPT that the code snippet is written in a programming language called qm. I let ChatGPT learn the pattern/grammar rule. If needed, I will provide more example codes. Then I ask ChatGPT what I want to do and also instruct ChatGPT not to make changes to the programming language grammar rules. The outcome is really good.

[Image: x9URrX0.jpg]
[Image: QYu9UXD.jpg]

[Image: pk4HWRk.jpg]

PS: This code snippet is not written by Gintaras. It’s a test.
#5
The information in this post is very helpful for ChatGPT to understand the QM programming language. If there are any training methods to help ChatGPT gain a deeper understanding of QM, it would be great.  Smile

https://www.libreautomate.com/forum/show...5#pid22555
#6
Some time ago I tried to find a way to "train" ChatGPT to understand a programming library. Unsuccessfully.
#7
Thank you for your time and effort spent on this. Functional programming in the QM language is very convenient for solving some everyday small problems.

Llama 3.1 has released an open-source version, which seems more powerful according to performance benchmarks. Is it feasible to use it to train QM?
#8
In QM, calling Win32 API is quite convenient, but it requires some type conversions, which can be difficult for beginners. Now, with ChatGPT, there is still a need for some QM-specific prompts to help ChatGPT understand. Could anyone provide some relevant prompts

For example, I would like to know how to use the `GetFileVersionInfoSize` and `GetFileVersionInfo` functions in QM, with sample code.

The following post is what I found through a search on the forum. It contains sample code for GetFileVersionInfoSize and GetFileVersionInfo. However, there are still many functions that cannot be found on the forum, which is why I made the request above.

https://www.libreautomate.com/forum/show...2#pid34032

If the unique syntax rules of QM could be provided to ChatGPT, and after it learns or is trained on them, a GPTS assistant could be created, it would be incredibly convenient. Wink


Forum Jump:


Users browsing this thread: 2 Guest(s)