Results 1 to 6 of 6

Thread: message at the refresh rate.

  1. #1

    Thread Starter
    New Member VBfang's Avatar
    Join Date
    Jan 2005
    Location
    in front of a computor
    Posts
    13

    Question message at the refresh rate.

    hi, my friend asked me if i could make a program for him that will blink a message at the refresh rate of the computer, I.E. imperseptabel, he is wondering if he could tech himself vocabulary words with it.

    all i want is to display text, nothing fancy like shapes or pictures, but it can't have any flicker (that would be incredibly anoying) any help of with this would be greatly apprecieated, thanks
    here is a question you can never get right:
    "is the answer to this qestion no?"

    "no, i am not crazy... a grown man on his front lawn in a tutu screeming "i'm a cantalope" now that is crazy" - me

  2. #2
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918

    Re: message at the refresh rate.

    Do you mean at the refresh rate of the monitor? eg 85 hertz or whatever?
    Pete

    No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.

  3. #3
    Addicted Member
    Join Date
    Nov 2004
    Posts
    171

    Re: message at the refresh rate.

    Wouldn't you first have to check the refresh rate of the monitor? As far as I know, this changes from monitor to monitor, so that would be your first step.
    Sherminator ~ I'll be back.

  4. #4

    Thread Starter
    New Member VBfang's Avatar
    Join Date
    Jan 2005
    Location
    in front of a computor
    Posts
    13

    Re: message at the refresh rate.

    yeah, sorry, that is what i ment, but i didn't really explain my self verry well, i just want somthing that works as fast as possable, i don't really care about the refresh rate of the moniter.

    P.S. i was woundring, would this appear on the screen? or would it just flip through th code to fast?

    VB Code:
    1. lable1.visible = true
    2. lable1.visible = false

    when i run it on a computer with an old moniter, i get some flicker.
    (the funny thing about this program is that if it is working you won't know it )
    here is a question you can never get right:
    "is the answer to this qestion no?"

    "no, i am not crazy... a grown man on his front lawn in a tutu screeming "i'm a cantalope" now that is crazy" - me

  5. #5
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: message at the refresh rate.

    Try this instead:

    VB Code:
    1. Private Sub Form_Activate()
    2.  
    3.      AutoRedraw = True
    4.  
    5.      Do
    6.  
    7.           DoEvents
    8.  
    9.           If Label1.Visible = True Then
    10.  
    11.                Label1.Visible = False
    12.  
    13.           Else
    14.  
    15.                Label1.Visible = True
    16.  
    17.           End If
    18.  
    19.      Loop
    20.  
    21. End Sub

  6. #6
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    Re: message at the refresh rate.

    You need to access some hardware port that gives you a sync signal. You can do it in DirectX
    http://msdn.microsoft.com/library/en...efreshrate.asp

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width