PDA

View Full Version : Hack Status Icons



personperson
09-02-2007, 06:24 PM
This simple tutorial will show you how to use simple shapes to show whether a hack is active or not. There are many different ways to do this. I will explain how to do it when both an off and an on button are used.

It is simple. Create a shape. The shape button looks like this:

http://img73.imageshack.us/img73/9639/shapedz0.jpg

Click on it to add a shape. You may change that to a square, rectangle, circle or oval on the properties sidebar. Now the part you are interested in. Changing the color of the image. On your "On" button code, add:


Shape1.FillColor = green

And on your off button, add:


Shape1.FillColor = red

Of course, set the default color to red, so when you load the hack, they appear red as default. Now, these color codes won't work, since the FillColor property uses hex color codes. So you must add this on top of your module:


Public Const red As Long = &HC0&
Public Const green As Long = &H8000&

Those are the hex codes for the shades of red and green I chose.

Now you're done! Your buttons will turn the hack on and off and change the image to "green" and "red" respectively. Remember to change Shape1 to the name of the shape you're changing.

Happy hacking!
Forcystos aka personperson

he24
09-07-2007, 03:07 PM
Thats HelpFully