Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Tutorials!]Flashing Screen/Title!

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Pepsiguy
I post too much
Reputation: 0

Joined: 16 Aug 2007
Posts: 2016

PostPosted: Sun Dec 16, 2007 3:27 pm    Post subject: [Tutorials!]Flashing Screen/Title! Reply with quote

Today i will be teaching you to make a flashing screen on a command,label, etc...

First add a Label and make the caption TEST just to test it

Add 2 timers to the form

in Timer1 set the interval to 500
in Timer2 set the interval to 650

in Timer1 write the code
Code:
Label1.Visible = False

in Timer2 write the code
Code:
Label1.Visible = True


now Test Your Project press F5 and then the label will Flash

_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun Dec 16, 2007 4:34 pm    Post subject: Reply with quote

Or you can just do the equivalent of this because I don't know VB's syntax and get the same effect with 1 timer.
Code:

if (label1.Visible == true)
                label1.Visible = false
            else
                label1.Visible = true
Back to top
View user's profile Send private message
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Sun Dec 16, 2007 7:38 pm    Post subject: Reply with quote

You don't need 2 timers.
Back to top
View user's profile Send private message
Pepsiguy
I post too much
Reputation: 0

Joined: 16 Aug 2007
Posts: 2016

PostPosted: Sun Dec 16, 2007 8:58 pm    Post subject: Reply with quote

sorry my bro wrote this tut i knew the way slovach posted
_________________
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Mon Dec 17, 2007 7:13 am    Post subject: Reply with quote

Beings that the Visible property is a boolean, you can toggle it in one line of code.

Code:
Private Sub Timer1_Timer()
    Label1.Visible = Not Label1.Visible
End Sub

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites