|
-
Feb 28th, 2005, 06:05 PM
#1
Thread Starter
New Member
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
-
Feb 28th, 2005, 07:18 PM
#2
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.
-
Feb 28th, 2005, 07:29 PM
#3
Addicted Member
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.
-
Mar 1st, 2005, 12:37 PM
#4
Thread Starter
New Member
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:
lable1.visible = true
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
-
Mar 1st, 2005, 12:45 PM
#5
Re: message at the refresh rate.
Try this instead:
VB Code:
Private Sub Form_Activate()
AutoRedraw = True
Do
DoEvents
If Label1.Visible = True Then
Label1.Visible = False
Else
Label1.Visible = True
End If
Loop
End Sub
-
Mar 1st, 2005, 12:53 PM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|