Welcome Guest.   Make a donation to an author on the site October 24, 2014, 03:35:26 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Learn about the DonationCoder.com microdonation system (DonationCredits).
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA: Graphic Countdown with Random Reset  (Read 4283 times)
flisflis
Participant
*
Posts: 5

View Profile Give some DonationCredits to this forum member
« on: February 12, 2007, 02:09:11 PM »

Hello

I have been trying to work on this myself but not very successfully, as I haven't done much of this before.

I need a countdown, starting at 500, which is displayed at 1 second intervals. The countdown is never to reach 0; at random intervals, the countdown restarts. The restart is from a random number between 500 and the current number (I need it to be a little less obvious than restarting from 500 each time).

Ideally I would like the numbers to be displayed as seven-segment digits, like on stop watches, and as large as possible.

Thanks
Logged
Crush
Member
**
Posts: 399



Hello dude!

see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: February 12, 2007, 02:49:54 PM »


GREAT IDEA!
...
How to hell could someone use this crazy counter in a senseful way?
Logged
flisflis
Participant
*
Posts: 5

View Profile Give some DonationCredits to this forum member
« Reply #2 on: February 12, 2007, 06:15:26 PM »

It's part of an art project looking at avoided endings. I'm not sure if that counts as 'senseful', but it's why.
Logged
mouser
First Author
Administrator
*****
Posts: 33,581



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: February 12, 2007, 07:35:42 PM »

easy enough to do.. i'm sure someone will come along and write this up.  would be nice to hear more about your experiment though..
Logged
hwtan
Charter Member
***
Posts: 72



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #4 on: February 12, 2007, 11:07:58 PM »

You can find the program at http://donationcoders.com...s/CountDown/CountDown.rar
Source code is available at http://donationcoders.com...ountDown/CountDownSrc.rar

To customize the LEDs, please edit the LED?.gif files in the images directory.  A photoshop image (LED.psd) is included.
To go to full-screen mode, please double-clicked on the digits.


Logged
flisflis
Participant
*
Posts: 5

View Profile Give some DonationCredits to this forum member
« Reply #5 on: February 13, 2007, 08:14:52 AM »

Thanks so much!

Unfortunately when I extract this, I get a warning message when I try to run the .exe file:

"Countdown.exe: Unable to locate component
This application has failed to start because MFC71.DLL was not found."

Flis
Logged
flisflis
Participant
*
Posts: 5

View Profile Give some DonationCredits to this forum member
« Reply #6 on: February 13, 2007, 08:28:05 AM »

Fixed it!

Sorry, takes me a little longer to work these things out. Art student, and all that. It looks great - you're a star!

Flis
Logged
skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: February 13, 2007, 12:08:24 PM »

 smiley Or for a proper random, proper restart, transparent, maximized version, try BadCountDown.

Save the script as BadCountDown.ahk, download and install AutoHotkey to run.

It uses ethan's images, so place the images in subfolder called images, and name them LED0.gif through LED9.gif.

Skrommel

[copy or print]
;BadCountDown.ahk
; Counts down, but never reaches 0
;Skrommel @2007

#NoEnv
#SingleInstance,Force

firststart=500

Gui,Destroy
Gui,-Border -Caption +ToolWindow +AlwaysOnTop
Gui,Margin,0,0
Gui,Color,FFFFFF
StringSplit,char_,firststart
w:=A_ScreenWidth/char_0
Loop,% char_0
{
  picture:="images\LED" . char_%A_Index% . ".gif"
  Gui,Add,Picture,vpic%A_Index% x+0 yp w%w% h-1,%picture%
}
Gui,Show,,Timer!
WinSet,TransColor,FFFFFF,Timer!

start:=firststart
Loop
{
  If A_Index>1
    Random,start,% start-count,% firststart
  Random,count,1,% start-1
  Loop,% count
  {
    Sleep,999
    number:=start-A_Index+1000000
    StringRight,number,number,StrLen(firststart)
    StringSplit,char_,number
    w:=A_ScreenWidth/char_0
    Loop,% char_0
    {
      picture:="images\LED" . char_%A_Index% . ".gif"
      GuiControl,,pic%A_Index%,%picture%
    }
  }
}
« Last Edit: February 13, 2007, 12:12:00 PM by skrommel » Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
flisflis
Participant
*
Posts: 5

View Profile Give some DonationCredits to this forum member
« Reply #8 on: February 19, 2007, 03:42:15 PM »

Thanks!!

Flis
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.034s | Server load: 0.21 ]