View Single Post
Old 03-30-2024, 10:27 PM   #7
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,665
Karma: 7908443
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by Rellwood View Post
I have actually used Chat AI for creating scripts for stuff in the past to go through batches of files for things. It actually worked!
Yes I was astonished when gpt succesfully created for me an MS Word macro that would insert simple Anki Cloze-like {c1} brackets on selected text. It presented two ways to do it, depending on Office 32 or 64 bit version, so it was a bit tricky to get it working like I wanted:

Spoiler:
Sub InsertCloze()
Dim clozeNumber As Integer
clozeNumber = 1
Dim currentRange As Range
Set currentRange = Selection.Range

Dim dataObj As New MSForms.DataObject
dataObj.GetFromClipboard
Dim clipboardText As String
clipboardText = dataObj.GetText

currentRange.Text = Replace(currentRange.Text, Selection.Text, "{{c" & clozeNumber & "::" & Selection.Text & "}}")
clozeNumber = clozeNumber + 1
End Sub


And it also helped creating a similar AHK script.
I guess it works well for programming stuff that don't require too much critical 'thinking'

Last edited by Comfy.n; 03-30-2024 at 11:23 PM.
Comfy.n is online now   Reply With Quote