Claude Code pro - a useful little trick - automated

JackKirk

Well-Known Member
Licensed User
Longtime User
O this is so incestuous...:D

Following on from my previous thread:

Claude Code pro - a useful little trick

I found the task of running down first thing in the morning to tickle Claude Code - and thus start the 5 hour reset window ticking - was a bit too much for my lifestyle.

So I thought "how could I automate this" - so I prompted Claude Code with:

write a windows 10 b4j app that prompts for a date and time in the future then runs a timer every minute until that date time is exceeded then stops the timer and sends an enter key to what ever window has the focus

The result is the attached zip.

Run it and it prompts for a date and time in the future - do this last thing in the day - and set a date and time for the next morning - say 8 am.

Then make sure you have Claude Code running and put a minor prompt of some description in it - BUT do not enter it.

Make sure the Claude Code prompt window has the focus.

Retire.

Next morning saunter down at say 10 am to find Claude Code digested the minor prompt at 8 am and set the 5 hour reset window to reset at 1 pm.
 

Attachments

  • EnterKeyScheduler.zip
    4 KB · Views: 31
Last edited:

JackKirk

Well-Known Member
Licensed User
Longtime User
Obviously, you could apply this to any other AI code tool (or for that matter anything) that has a similar text window to Claude Code.
 

Jerryk

Active Member
Licensed User
Longtime User
Hi. I'm retired too. I have an app on Google Play, and I have an idea for a new one. I would like to ask you how you specifically use Claude?
1. how to use AI for working code? Do you use Claude Desktop? Projects? Instructions? What prompts?
2. how to use AI when creating a new project?
I'm just interested in technical procedures. I'm asking you as an experienced developer.
 

JackKirk

Well-Known Member
Licensed User
Longtime User
Hi. I'm retired too. I have an app on Google Play, and I have an idea for a new one. I would like to ask you how you specifically use Claude?
1. how to use AI for working code? Do you use Claude Desktop? Projects? Instructions? What prompts?
2. how to use AI when creating a new project?
I'm just interested in technical procedures. I'm asking you as an experienced developer.
Firstly do not consider me any sort of expert - whenever my father was called that he used to say "ex" = "has been", "spurt" = "drip under pressure" :)

You maybe should read here and also here re my current opinion of Claude - in summary:
  • I still maintain extreme reservations about ability of such LLM's to be really creative - vibe coding is in the old G-I-G-O/S-I-S-O category in my view.
  • It is proving to be a very able assistant:
    • small enhancements in a big code base where the creativity is already done.
    • non b4x code (java and objective c)
    • brilliant bug and documentation auditor
    • tracking run time bugs
how to use AI for working code? - see above
Do you use Claude Desktop? - using the CLI - not using the API (although I had a look)
Projects? yes - but in a non-creative, "improvement" way
Instructions? - I've started using its memory capability - simply prompt what you want it to remember and say "remember this" - for example it will quote you b4x file line numbers which do not tally with the IDE line numbers, so I have instructed it to:

quote line numbers as the file line number minus line number containing "@EndOfDesignText@" — so they match what the B4X IDE shows --- remember this

Interestingly it periodically forgets this and I have to prompt IDE line numbers please or similar to refresh it

What prompts? - where to start, for auditing I will typically prompt something like:

read *.b4a and *.bas in d:\xxx\b4x\myproject and audit for bugs
read *.b4a and *.bas in d:\xxx\b4x\myproject and audit for doc boo boos


how to use AI when creating a new project? - 2 words "you don't" - for anything that requires more than am ounce of creativity.

I have actually done this here - but the creativity was nothing.

Good luck...
 
Top