Author Topic: Screensavers  (Read 3713 times)

0 Members and 1 Guest are viewing this topic.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Screensavers
« on: July 02, 2011, 03:10:29 am »
So the other day I was bored, so I made a neat screensaver in Axe, then I wondered how the program could autorun after some minutes of inactivity. You would use hooks right? So you would put the Axe program somewhere in archive, then install the hook to make the Axe program to execute when the cursor blinks or somethink, and with that you need some asm right?

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Screensavers
« Reply #1 on: July 02, 2011, 08:00:56 am »
Maybe use the apd timer?
I'm not a nerd but I pretend:

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Screensavers
« Reply #2 on: July 02, 2011, 09:32:48 pm »
Probably. What is it?

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Screensavers
« Reply #3 on: July 05, 2011, 11:36:18 pm »
Well, here's the specifics for the hook. If your going to use it, you can either assemble it yourself, or I'm going to need your program name.

Code: [Select]
cursorHook:
add a, e
ld a, (apdTimer)
cp $25 ;starts at $74, so...
ld a, b
jr z, isZero
ret nc ;have to ret NZ
isZero:
bcall(_closeEditBuf)
ld hl, programName
rst 20h
bcall(_executePrgm)
xor a
ld (menuCurrent), a
bcall(_jForceCMDNoChar)

programName:
.db protProgObj, "YOURNAME"
cursorHookEnd:
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Screensavers
« Reply #4 on: July 06, 2011, 02:40:11 am »
So that's the hook installer? It makes prgmYOURNAME run each time the cursor blink? If so, I have to make the program count how much time it had been ran. Also there must be some  way to reset the counter when something has been typed?

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: Screensavers
« Reply #5 on: July 06, 2011, 02:47:47 am »
I'm pretty sure it counts how many times the cursor has blinked with inactivity. The timer resets every time a button is pressed. I'm just assuming that though.