Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - JokeBOx

Pages: [1] 2
1
Technical support / HELP PLZ
« on: November 11, 2012, 17:43 »
how to change icons for new post and other icons in smf forum ... please help me

2
Offtopic / Dota 2?
« on: April 07, 2012, 07:39 »
hi guys i will be very happy if some1 will give me dota 2 invite i will never forgot it ... who can give me plz
if some1 want to give me can send me pm to  talk and tell him mail to send me invite thanks guys!

3
Programming / [TuTuRiAL] Simple Login System in VB.Net
« on: February 07, 2012, 22:30 »
Simple login System

Ok guys, code is here :) GOOD LUCK

Code: [Select]
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If TextBox1.Text = "a" And TextBox2.Text = "b" Then
            MessageBox.Show("Login Accepted!")
            Form2.Show()
            Me.Hide()
        Else
            MessageBox.Show("Login denied!")
        End If
    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)

    End Sub

    Private Sub Form1_Load_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub
End Class

4
Programming / [Release/VB.Net] Ghost theme
« on: February 07, 2012, 20:47 »
This was my first theme, so there are some bugs in this theme:
Textbox outline flickers
Listbox is bugged



Animated demo:
[/b]

http://flickcabin.com/public/view/full/135706 here is demo.

BUT MBY IT WILL BE WITH MONEY OR YOU WILL NEED TO DONATE TO PD.EU I WILL GIVE INFO SOON! NEED TO CONTACT ADMIN!

5
Programming / [Source/Tutorial] Remote Desktop Viewer [VB.Net]
« on: February 07, 2012, 20:16 »
Remote Desktop Viewer


Hello HF, this will be a fairly simple tutorial on how to code a Remote Desktop Viewer. You can use this to either make your own Team Viewer or implement it in a RAT for different purposes... it will be coded in reverse-connection and will use object serialization. I hope you will enjoy this  8)  If you find any errors, please post and I will fix.

Client (Sender)

-Create a windows form project in VS or VB 2010/2008 and call it RDV Client.
-Add 2 buttons and label them Connect and Stream respectively.
-Add a timer and set it to 1000.
-Right click the form and select "View Code"

Header Code required to shortcut your main code.

Code: [Select]
Imports System.IO
Imports System.Net
Imports System.Net.Sockets
Imports System.Threading
Imports System.Drawing
Imports System.Runtime.Serialization.Formatters.Binary

This goes right below "Public Class Form1". They are global TCPClient and Networkstream to allow connection and streaming.

Code: [Select]
Dim client As New TcpClient
Dim nstream As NetworkStream

Now we make a function which returns the screenshot when called.

Code: [Select]
Public Function Desktop() As Image
  Dim bounds As Rectangle = Nothing
  Dim screenshot As System.Drawing.Bitmap = Nothing
  Dim graph As Graphics = Nothing
  bounds = Screen.PrimaryScreen.Bounds
  screenshot = New Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
  graph = Graphics.FromImage(screenshot)
  graph.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)
  Return screenshot
    End Function

Code: [Select]
Image sending function through serialization. It will call the screenshot and send it using the networkstream.
Code: [Select]
Private Sub SendImage()
  Dim bf As New BinaryFormatter
  nstream = client.GetStream
  bf.Serialize(nstream, Desktop())
    End Sub

Double click the timer and type this in to call SendImage function.

Code: [Select]
SendImage()
Double click the Connect button and add this. This will connect to localhost on port 8085.

Code: [Select]
Try
client.Connect("127.0.0.1", 8085)
Catch ex As Exception
MsgBox("Failed to connect...")
End Try

Double click the Stream button and add this to start the timer.

Code: [Select]
Timer1.start()
Conclusion: The client will connect to the server and stream images every 1 second. Done, now moving on to the server.

Server (Receiver)

-Create a windows form project in VS or VB 2010/2008 and call it RDV Server.
-Add a picturebox, fill dock it and change the sizemode to Stretch.
-Add 1 buttons and label it Listen. (if it dissapears try to bring it to front from the control panel)
-Right click the form and select "View Code"

Same imports as the last one.

Imports System.IO
Imports System.Net
Imports System.Net.Sockets
Imports System.Threading
Imports System.Drawing
Imports System.Runtime.Serialization.Formatters.Binary


Global Variables.. the only difference is that we make 2 threads now to prevent our window from lagging. One for listening and the other for receiving. Also we have the listening server.
Code: [Select]
Dim client As New TcpClient
    Dim server As New TcpListener(8085)
    Dim nstream As NetworkStream
    Dim listening As New Thread(AddressOf Listen)
    Dim getImage As New Thread(AddressOf receiveImage)

Receive Image and deserialize function (opposite to SendImage)
Code: [Select]
Private Sub receiveImage()
  Dim bf As New BinaryFormatter
  While client.Connected = True
    nstream = client.GetStream
    picturebox1.Image = bf.Deserialize(nstream)
  End While
    End Sub

Listening function to accept clients.
Code: [Select]
Private Sub Listen()
  While client.Connected = False
    server.Start()
    client = server.AcceptTcpClient
  End While
  getImage.Start()
    End Sub

Double click the Listen button.
Code: [Select]
listening.Start()
Conclusion: The server is ready to listen and accept any incoming connection. It will receive the images sent by the client.

How to use: Seriously? Open the client and server, click listen (server), then connect (client) and stream(client).

Note: If you wish to use this outside the local network, you might need to portforward the port you used and change the IP address.


I work on this 2 days and finaly finish!

6
Programming / [Tutorial]How to Make Multy Auto Typer VB
« on: February 06, 2012, 10:23 »
Ok, GUys i will tell/learn you how to make multy auto-typer in VIsual Basic..

Name the form Multi Auto Typer
Add 2 check boxes, 2 text boxes, and 3 buttons.
Also drag a timer on to the form to add a timer.

Next double click on start and type this in

timer1.start()

Then double click on Stop and add this

timer1.stop()

After that double click on end and type this

close()

OK guys, now the buttons are coded, we need to code timers..

Duble click on Timer1, and add this code:

If CheckBox1.Checked = True Then
            On Error Resume Next
            SendKeys.Send(TextBox1.Text)
            On Error Resume Next
            SendKeys.Send("{Enter}")
        End If
        If CheckBox2.Checked = True Then
            On Error Resume Next
            SendKeys.Send(TextBox2.Text)
            On Error Resume Next
            SendKeys.Send("{Enter}")
        End If
IT Should look like this


Then adjust however you want your layout to look like locking the form in fixed single and setting minimize and maximize to false.
And debug and test it out!

GOOD LUCK!


7
Programming / Visual Basic (5)
« on: February 05, 2012, 11:32 »
So to recap things first appearance on the program to continue with the program codes. With the opening of a new project selecting standard. Exe project in the form of the program draw objects that we need to display data or based on some of our input data to perform certain functions. Facilities draw on his own desire and the menu properties of each object we choose its features. In each of the facilities and in the form of the program can write code that will meet our needs.

There are several important ways to set the program to execute many commands by writing a little code than you normally would. As the first and most important command is to check whether the program is true or not true, or whether something is so or not be selected appropriate.

This command is written as follows

If А =1 then
    А=2
End if


In this command check whether the value of A = 1. If one then we can change in 2, and if nothing happened, that A will have the value and further which is different from the first

If А =1 then
    А=2
Else
    A=5
End if


With this command check whether A = 1 if January is changing in the A = 2, but if not equal to 1, then the value of A now edit and A = 5. This translation would mean.

If A = 1 then
     A = 2
Other (if not)
     A = 5
end if

Example program
If Text1.Text = "Merkur" Then
     MsgBox "True Answer", vbOKOnly, "Answers"
Else
     MsgBox "Sorry Wrong Answer", vbOKOnly, "Answers"
End If

THATS FROM ME CYA!!!

8
Programming / Visual Basic (4)
« on: February 04, 2012, 17:55 »
What are the basic things to make a program. When starting Visual Basic must first have an open project which will form the program or the appearance of the program. In this program you put objects on which each of them will assign a specific function. Can the tools in the left part to put various objects in which they are assigned different codes for displaying text or other data. If the program can be completed it will be found in a circle and will be blocked for that purpose, use ctrl + Pause Break. Double click on any of the facilities are open part of the code of that object. Now surely interest you and how you write code, and whether they have logic. Sure you have slowly and logic must explain the whole system functioning to explain the codes which achieve our requirements of a program.

So in the left part we have facilities like Label object to paste text without the possibility of change after program start. Text box in this facility is free to write in the program. CommandButton this will not be the most widely used facility whom will perform on some orders.

So now we go with a simple program where the shape of the program will draw two objects and two TextBox objects underneath CommandButton. The first object in itself would have already written text and Text1 and Text2 so in the right part of Visual Basic find where writes Caption, and Text1 to it and delete it to remain empty, do the same with the second object. In CommandButton objects change the Caption of Command1 to CHANGE Exit first object and second object. Once we created the look of the program will now go to the programming of the program for this purpose will first double-click the form to the program, just beware not to click on an object and write the following code

Text1. Text = 66
Text2. Text = 99


between those already out words.

Private Sub Form_Load()

End Sub


So in the end should look like this.

Private Sub Form_Load()
Text1.Caption = 66
Text2.Caption = 99
End Sub


With this we have assigned value of those items in startup. Click twice on the object which is named after CHANGE us out

Private Sub Command1_Click()

End Sub


You need it to write the following

temporaryvariable = Text1.Text
Text1. Text = Text2. Text
Text2. Text = temporaryvariable


This will change the values ​​of first and second text object by clicking CHANGE in the program when we have spawning.
The object on which written Exit, write the following:

Private Sub Command2_Click()
End
End Sub


Here's how it should look like the program and code. Program step by step can be viewed by pressing F8 or immediately run the F5.

9
Programming / [Tutorial]IP-address in VISUAL BASIC!
« on: February 04, 2012, 11:47 »
I will tell you how to make program for ip adress, but not local..... WAN!

Code: [Select]
Private Sub Form_Load()
Dim strHtml As String

strHtml = Inet1.OpenURL("http://simple.showmyip.com/")
Text1.Text = strHtml:P

End Sub

But ofc, you need to add int control in the form (Microsoft Internet Transfer Control)

10
Programming / Visual Basic (3)
« on: February 04, 2012, 11:21 »
As a basis of programming, as in mathematics is a variable that can be various latter or word on each and assign value, data that we would work. The same can not be change or the same to get a myriad of other data that is the purpose of many programs.
Example.

x=1,

х=”visual basic”,

forum=”internet website”


The first is a variable that shows numbers and therefore not in quotes, while others are text variables. In Visual Basic these variables receive the name itself drawing the object where you want something to write, so the same name can change according to our wish and it will be the name of that variable, that obejct. So in our first program we have drawn an object to whom we gave the name lblHello. If you select the object right below gives us options to change the name (Name). Here below are given all the options that can change the object as (Apperance 1-3d) it is his appearance, (Caption) - This option is the variable that will assign the value, value of the building. Variable and the object is the same object layout, a variable's value, fact that object. At this facility the beginning we don't give a value, but the code we wrote a program that is equal to “Hello World!”.

Example. lblHello.Caption = “Hello World!”

If you wish to change the name of this object go right below select Name and place of lblHello write new name VARIABLE.

With this object in the program will be VARIABLE.Caption =”Hello World!”

All objects are placed on the left side and a selection of them will be able to draw objects, and the object who  write Hello World! and object who write Close.

 
BYE!

11
Programming / Visual Basic (2)
« on: February 03, 2012, 23:30 »
Today we will talk for some things, who will be use for programming. We will talk for events are executed at the click of a button:

msgbox "have error", vbRetryCancel This use when user want to tell some msg to the program and that msg he can choice between two buttons Retry and Cancel.  When he write than after msg comma than it show one list on allowed keys like this:

vbOkYes, vbOk , vbYesNo and others.

inputbox "Write your Name ( first and secound)"
when program required some information of user. As the above article, and here after the comma can add different buttons.

The Next theme of this tutorial is how to organize your coode easy. As program is with open code who wants to change your code should be written, every1 can understand it. I will explain now:

msgbox "how are you"

After this we can write next for example for why it serves:

'The following is self explanatory in the code that is made with apostroph', Mon apostrophe is like explaining the code in that line.

For show some information  = This code will be with green color and this will serves as an explanation code.

Before the explanation if it doesn't put ' than when we start program it will show error and the program will not start  until you correct the error.

To say one important thing. If the program that we want to run independently without the need to run by pressing F5 on your keyboard, then by the time you make program and test that no errors then go to the menu File, than click on MakeExeFile than choice location for where you want to make that exe fail. When we make it, than go to the location when its maked and start exe file.

Thats from me. Dont forget to replay and if you have problems call me!

12
Programming / Visual Basic (1)
« on: February 03, 2012, 20:29 »
Hi to all.  From now i will post some helpful tutorials in visual basic, so lets start.

First to introduce you with the look of the program.

<!--[if gte vml 1]> <![endif]--><!--[if !vml]--><!--[endif]-->

Lets we started with First application
[/b]

Start Program than go to File→New than you see one window. Than choice StandardEXE and click ОК. It will open one window. Than we will draw one button and than go to  properties if you want to change color on button backColour, you have written in it is caption. Then if it is active or in any event it to become active Visible and other. when we draw button, click 2 times on the button and it will show one window, coding on the button. The upper part has a dropdown menu and there is chosen for which object we write code. now we close object and we draw other object LabelBox. Click again 2 times on the button and we write next cod  between PrivateSub and EndSub:

label.caption="HI TO ALL!"    this or that without the quotes after the equal

form1.backcolour="red" this or that without the quotes after the equal

Than we start the program with click on F5 when we click f5 in the program should to show text "HI TO ALL!" and to change color of white to red

For anything problem you can ask me here! BYE!

13
Programming / [Tutorial]Vectors in c++
« on: February 03, 2012, 13:35 »
A bit vector is a vector with binary elements, that is, each element is either a 0 or a 1. Small bit vectors are conveniently represented by unsigned integers. For example, an unsigned char can represent a bit vector of 8 elements. Larger bit vectors can be defined as arrays of such smaller bit vectors. Complete the implementation of the Bitvec class, as defined below. It should allow bit vectors of any size to be created and manipulated using the associated operators.

Code: [Select]
enum Bool {false, true}; 
typedef unsigned char uchar;   
class BitVec { 
public:     
BitVec       (const short dim);     
BitVec       (const char* bits);     
BitVec       (const BitVec&);     
~BitVec    (void)       
 { delete vec;
}     
BitVec& operator =    (const BitVec&);     
BitVec& operator &=   (const BitVec&);
BitVec& operator |=   (const BitVec&);   
BitVec& operator ^=   (const BitVec&);   
BitVec& operator <<=  (const short);     
BitVec& operator >>=  (const short);   
 int    operator []    (const short idx);     
void   Set       (const short idx);     
void   Reset        (const short idx);       
BitVec  operator ~    (void);     
BitVec  operator &    (const BitVec&);     
BitVec  operator |    (const BitVec&);   
 BitVec  operator ^    (const BitVec&);   
 BitVec  operator <<   (const short n);   
 BitVec  operator >>   (const short n);     
Bool   operator ==   (const BitVec&);     
Bool   operator !=    (const BitVec&);     
friend ostream& operator << (ostream&, BitVec&);   
private:     uchar  *vec;        // vector of 8*bytes bits     
short   bytes;       // bytes in the vector 
};

14
Programming / [Tutorial]Compling c/c++ program on linux
« on: February 02, 2012, 22:25 »
OK you written a program, or found a program on internet, and now you want to compile it on linux... you need to use gcc (which is c compiler) and g++ (which c++ compiler). Most of the options are same on both compilers so i will speak about compiling c program on linux.

Now here is a program which you have written or downloaded from internet, helloworld.c

Code: [Select]
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char** argv){
 printf("Hello world\n");
 return 0;
}

Now once i have done with program, i have to compile it. Compilation is the process of converting human readable code into a form which the machine can understand. So to compile the above program, i give the following command on console or shell or terminal i don't know what you call it.

Code: [Select]
$ gcc helloworld.c

If there are no syntax errors, the program will be successfully compiled and the compiler will create an executable file named, a.out.  If you want your compiler to give different name then, use this option.

Code: [Select]
$ gcc -o hello helloworld.c
Now simply execute it.

Code: [Select]
$./a.out

the result will be display.. in this manner you can port your all c or c++ programs in linux.

15
Programming / [Tutorial]C# - Foreach Statements
« on: February 02, 2012, 19:06 »
I'm going to teach you to input or click something (i.e textbox or button) using Foreach statements.
Foreach statements are also good for input or clicking something without a id or name.

This is webBrowser only.

Ok, if the html source of a textbox is:

Code: [Select]
<input id="email" class="textbox_email" type="text" value="" name="email">
ok so our id is email and our name is email.

We are going to use id for now, you can use name if you want since there the same


These are attributes of our Html sources.
We need theses.

Theres also type, class, and value, but we don't thoses (for now)

now here is what we are going to do:

Code: [Select]
foreach (HtmlElement umad in webBrowser1.Document.All)
{

}


ok so we are saying for each umad (you can say whatever but I like saying umad ) as HtmlElement (the element/attribute source) in the webpage, do this in between the brackets.

Now we are going to do this:

Code: [Select]
foreach (HtmlElement umad in webBrowser1.Document.All)
{
if (umad.GetAttribute("id") == "email")
{

}

}

Ok, sounds fimilar amirite?
*cough*webBrowser1.Document.GetElementById("email");*cough*

Ok now we are going to set the value to what ever you or anyone inputs.

Code: [Select]
foreach (HtmlElement umad in webBrowser1.Document.All)
{
if (umad.GetAttribute("id") == "email")
{
umad.SetAttribute("value", txtEmail.Text);
}

}


Now if you want to click a button.

Assuming this is the html source

Code: [Select]
<input id="submit" class="form_buttonl" type="button" value="" name="submit">

You would just:

Code: [Select]
foreach (HtmlElement umad in webBrowser1.Document.All)
{
if (umad.GetAttribute("id") == "email")
{
umad.InvokeMember("click");
}

}

sounds fimilar amirite?
*cough*webBrowser1.Document.GetElementById("submit").Invo keMember("click");*cough*

Pages: [1] 2