Golden Sun Hacking Community

The Community => Open Discussion => Tech, Gaming and Entertainment => Topic started by: Daddy Poi's Oily Gorillas on 01, July, 2009, 11:01:00 PM

Title: Visual Basic
Post by: Daddy Poi's Oily Gorillas on 01, July, 2009, 11:01:00 PM
Visual Basic

Post programs you made, or useful programs you really enjoy here and feel it will benefit others.

Okay, if you want to download Visual Basic so you can code too, google it: Visual Basic 2008.

Here is where you may also ask questions concerning how to do things on the program..


Also I happen to have made this nice looking program with it, hope you like it.

P. S. - If anyone has trouble with it let me know. (Any errors, etc. or want to suggest something)

Lottery V1 (http://willhostforfood.com/access.php?fileid=72728)- Version 1.0

(http://willhostforfood.com/users/C/charleysdrpepper/Lottery.jpg)

Okay, Email field is only so I may contact you if I feel like it, if you click yes (default) for the alert box that appears for when you click Spin! Currently this has no real use, but just to play around with, if you want. Through my learning some codes, I put this together in 1 day. It sends the email to charleysdrpepper@gmail.com, but ONLY if you click Yes to the alert box.

Edit: If you happen to be testing this program right now, I do not mind if you click Yes, but try not to do it too much because it will be like spam, thank you!

This post has been edited by charleysdrpepper on Jul 2 2009, 11:02 AM
Title: Visual Basic
Post by: Salanewt on 01, July, 2009, 11:14:00 PM
Oh cool, this looks interesting. Unfortunately, I do not have access to my computer, so I will have to wait until Sunday before I can download it. By the way, what type of coding does it use?

Have a nice day.
:MercurySet:  
Title: Visual Basic
Post by: Daddy Poi's Oily Gorillas on 01, July, 2009, 11:24:00 PM
here is a sample: (from what I used on the lottery, it's all the coding that I needed to manually put in, everything else was visual. )

Imports System.Net.Mail

Public Class Form1

   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
       Dim Msg, Style, Title, Help, Ctxt, Response ', MyString
       Msg = "Do you want to email the results to me ?" + vbCr + "(The Email Field, Your Numbers, and the Winning Numbers)"   ' Define message.
       Style = vbYesNo + vbQuestion + vbDefaultButton1   ' Define buttons.
       Title = "Email Me?"   ' Define title.
       Help = "DEMO.HLP"   ' Define Help file.
       Ctxt = 1000   ' Define topic
       ' context.
       ' Display message.
       If Button1.Text = "Spin!" Then
           Response = MsgBox(Msg, Style, Title)
           If Response = vbYes Then   ' User chose Yes.
               Randomize()
               Label4.Text = Int(100 * Rnd())  ' Perform some action.
               Label5.Text = Int(100 * Rnd())
               Label6.Text = Int(100 * Rnd())
               Label7.Text = Int(100 * Rnd())
               Label8.Text = Int(100 * Rnd())
               Label9.Text = Int(1000 * Rnd())

               
               Dim smtpServer As New SmtpClient()
               ProgressBar1.Value = 8
               Dim mail As New MailMessage()
               ProgressBar1.Value = 16
               smtpServer.Credentials = New Net.NetworkCredential("charleysdrpepper@gmail.com", "PASSWORD HERE")
               ProgressBar1.Value = 24
               smtpServer.Port = 587
               ProgressBar1.Value = 32
               smtpServer.Host = "smtp.gmail.com"
               ProgressBar1.Value = 40
               smtpServer.EnableSsl = True
               ProgressBar1.Value = 48
               mail = New MailMessage()
               ProgressBar1.Value = 56
               mail.From = New MailAddress("charleysdrpepper@gmail.com")
               'mail.From = txtFrom.Text
               ProgressBar1.Value = 64
               mail.To.Add("charleysdrpepper@gmail.com")
               ProgressBar1.Value = 72
               mail.Subject = "Lottery"
               ProgressBar1.Value = 80
               mail.Body = TextBox1.Text + vbCr + vbCr + "Your Numbers: " + TextBox2.Text + " " + TextBox3.Text + " " + TextBox4.Text + " " + TextBox5.Text + " " + TextBox6.Text + " " + TextBox7.Text + vbCr + "Winning Numbers: " + Label4.Text + " " + Label5.Text + " " + Label6.Text + " " + Label7.Text + " " + Label8.Text + " " + Label9.Text
               ProgressBar1.Value = 88
               smtpServer.Send(mail)
               ProgressBar1.Value = 100
               MsgBox("Mail Sent!")

               Button1.Text = "Clear!"

           Else   ' User chose No.
               Randomize()
               Label4.Text = Int(100 * Rnd())  ' Perform some action.
               Label5.Text = Int(100 * Rnd())
               Label6.Text = Int(100 * Rnd())
               Label7.Text = Int(100 * Rnd())
               Label8.Text = Int(100 * Rnd())
               Label9.Text = Int(1000 * Rnd())

               Button1.Text = "Clear!"
           End If
       Else
           TextBox2.Text = ""
           TextBox3.Text = ""
           TextBox4.Text = ""
           TextBox5.Text = ""
           TextBox6.Text = ""
           TextBox7.Text = ""
           Label4.Text = "--"
           Label5.Text = "--"
           Label6.Text = "--"
           Label7.Text = "--"
           Label8.Text = "--"
           Label9.Text = "---"

           ProgressBar1.Value = 0
           Button1.Text = "Spin!"

       End If
   End Sub
End Class

This post has been edited by charleysdrpepper on Jul 1 2009, 10:25 PM
Title: Visual Basic
Post by: Salanewt on 01, July, 2009, 11:30:00 PM
Oh, thank you for the code. This will help me when I try to make a program. However, I was wondering if the coding is Java, or if it is something else.


Thank you in advance, and please have a nice day.
:MercurySet:  
Title: Visual Basic
Post by: Daddy Poi's Oily Gorillas on 01, July, 2009, 11:34:00 PM
Java, I don't think it is, I been new to this since like... yesterday. (and I don't know any Java)

EDIT since June 29th, i think, *correction*

I would expect it to be the Visual Basic language itself?


Additionally, in the code I took out my password so no one could steal it. It says PASSWORD HERE now *hint hint*

This post has been edited by charleysdrpepper on Jul 1 2009, 10:57 PM
Title: Visual Basic
Post by: Salanewt on 01, July, 2009, 11:52:00 PM
Oh yeah, I think I should try this program of yours out when I can.

Anyway, Turing is also a program with its own coding. I think that with it, you can do similar things with Visual Basic. You should consider trying it out, since it might be good practice with coding (if you need any).

Have a nice day.
:MercurySet:  
Title: Visual Basic
Post by: Daddy Poi's Oily Gorillas on 01, July, 2009, 11:59:00 PM
with visual basica you can literally put the textbox, etc. how you want them VISUAL!! woot! oh and it was June 29th i downloaded Visual Basic.


Edit, ok thanks, I'll take a look.

This post has been edited by charleysdrpepper on Jul 1 2009, 11:00 PM
Title: Visual Basic
Post by: Atrius on 02, July, 2009, 07:13:00 AM
Just so you know, it's a very bad idea to program your password into anything.  I could very easily get it out of the programs code if I wanted to.
Title: Visual Basic
Post by: Salanewt on 02, July, 2009, 11:17:00 AM
Actually, now that I look at your Lottery code for the program that you made, I noticed that there are many similarities to Turing. However, Turing can be harder to use, I think. Also, to make for example, a House, you have to use ovals and rectangles and so many other things. Anyway, I think that I like this Visual Basic, and I have not even tried it out yet. I think I will have to download it on Sunday when I get back to the apartment.

Have a nice day.
:MercurySet:  
Title: Visual Basic
Post by: Daddy Poi's Oily Gorillas on 02, July, 2009, 11:34:00 AM
Ok, since I believe Atrius, I guess I'll be changing the username today along with the password ofcourse, although my primary email is yahoo, but in case,,, hmm let me see should I call it CharleysVisualBasic@gmail.com  with a password of....

Well you get the idea, besides it would keep all the junk away from charleysdrpepper@gmail.com, an email I rarely use anyway.

Also, I want to try that out, I mean grabbing the program code when you don't have it, sounds interesting.
Title: Visual Basic
Post by: Salanewt on 02, July, 2009, 11:42:00 AM
Oh, I did something like that for Email once. I had little choice, but I decided that I did not want Facebook spamming me about people who do not take the time of day to try to communicate with me... But I had a previous account, about 80 years old... You can not change that, so...


Anyway, I think that it is smart of you to change the email in the program so it does not clutter your other one. Oh yeah, since you posted a topic about Visual Basic, then maybe there should be topics about other programs as well...

Have a nice day.
:MercurySet:  
Title: Visual Basic
Post by: Daddy Poi's Oily Gorillas on 02, July, 2009, 11:47:00 AM
Yes, like gamemaker, but I just felt that this program was rather easy to use sort of thing, and it was cool so I posted this, to find the codes I went to places like the Search Function under the help menu of Visual Basic, and youtube. Now I'm going to be creating my VisualBasic's (edit: EMAIL ) account, the one I will be using only for Visual Basic for the time being. Was my original plan for today, so my first post may be updated within an hour if I have any luck.


First post was edited: Took me 15 minutes!

and the email I creadited isn't CharleysVisualBasic, I wanted to shorten it up a bit, so I made charleysvb@gmail.com

This post has been edited by charleysdrpepper on Jul 2 2009, 11:07 AM
Title: Visual Basic
Post by: Salanewt on 02, July, 2009, 12:05:00 PM
Oh yeah, this looks like a good program. I think I should try it out sometime, since I am going to take a harder computer course next year, and I will need all of the practice that I can get.

Anyway, another cool thing with coding is HTML, but that is much different (I think).

By the way, you said that you found the coding on Youtube and on the search function, right? I wonder where else to find coding...

Have a nice day.
:MercurySet:  
Title: Visual Basic
Post by: Daddy Poi's Oily Gorillas on 02, July, 2009, 12:10:00 PM
on google....

and HTML, I know that, that likes the simple version of coding

<B> </B> are the bolding

you can do

<TABLE width=300 height=300>
<TR>
<TD></TD>
<TD></TD>
</TR>
</TABLE>


I think it was one of the first things I learned in programing a long time ago...


Edit: I could find scripts at places like javascriptkit.com, dynamicdrive.com, etc. and they may be more complicated then the simple HTML, as scripts can have JavaScript, a more complicated coding.

This post has been edited by charleysdrpepper on Jul 2 2009, 11:13 AM
Title: Visual Basic
Post by: Salanewt on 02, July, 2009, 12:12:00 PM
Yeah, I worked on HTML and Turing when I took a computer course in the tenth grade. I had forgotten how simple HTML can be, but I think that it is different, with some similarities. However, I think my teacher thought that Turing created the world or something...

EDIT: I am talking about websites, not search engines (although that would be easy to do).

Anyway, have a nice day.
:MercurySet:

This post has been edited by Salanewt on Jul 2 2009, 11:12 AM
Title: Visual Basic
Post by: Daddy Poi's Oily Gorillas on 02, July, 2009, 03:12:00 PM
forgot to mention, this EXAMPLE of the lottery was inspired by something I worked on a long long time ago: http://www.freewebs.com/charleysdrpepper/n...es/lottery.html (http://www.freewebs.com/charleysdrpepper/neopets/activities/lottery.html)

I don't think I'll ever finish it.

oh and it may have something to do with neopets (wanted to use as Guild Activities), but I am currently not even using that page at all, and I don't think I will use it?

This post has been edited by charleysdrpepper on Jul 2 2009, 02:20 PM
Title: Visual Basic
Post by: Salanewt on 02, July, 2009, 03:25:00 PM
Neopets?

Oh well, as long as you do what you want to do, it should be fine, right everyone?

Have a nice day.
:MercurySet:  
Title: Visual Basic
Post by: Daddy Poi's Oily Gorillas on 02, July, 2009, 03:28:00 PM
neopets.com, yes another website, I've been registered there since May 8th, 2005 I think it was. ( username again: charleysdrpepper )

This post has been edited by charleysdrpepper on Jul 2 2009, 02:29 PM
Title: Visual Basic
Post by: Salanewt on 02, July, 2009, 03:31:00 PM
Hm... Oh yeah, I think I remember that website. I once joined, but I think that one of my characters became anorexic, and eventually I stopped playing altogether.

One of my characters had a name, I think it was something like Earthquake_Goddess, or something...

Anyway, have a nice day.
:MercurySet:  
Title: Visual Basic
Post by: Daddy Poi's Oily Gorillas on 02, July, 2009, 03:35:00 PM
No I think it was Tidalwave_goddess, (Andrea?). I did a user lookup for salanewt.

This post has been edited by charleysdrpepper on Jul 2 2009, 02:35 PM
Title: Visual Basic
Post by: Salanewt on 02, July, 2009, 03:37:00 PM
Oh yeah... To avoid people finding out who I was, I changed so many of my details. Also, I think if I recall correctly, I am an 18 or older female... I do not know why I changed the details like that, but oh well. Also, fake name too.

Wait, my username is Salanewt?

Have a nice day.
:MercurySet:

This post has been edited by Salanewt on Jul 2 2009, 02:37 PM
Title: Visual Basic
Post by: Daddy Poi's Oily Gorillas on 02, July, 2009, 03:40:00 PM
but it still says you are in Canada, which sounds right.

Edit: and have a nice day, also think you'll ever start again?

This post has been edited by charleysdrpepper on Jul 2 2009, 02:41 PM
Title: Visual Basic
Post by: Salanewt on 02, July, 2009, 03:43:00 PM
Oh, I do not think that I changed all of my details.

Anyway, have a nice day.

:MercurySet:

By the way... I would have started playing again by now if I knew what my password was... This way, I can also change some of the details, since I am old enough to have some correct information that is not misleading to people.

My username is Salanewt, seriously? I thought that Runescape was the first to get that username... Oh well, too many immature people on that game for me.

Have a nice day.
:MercurySet:  
Title: Visual Basic
Post by: Daddy Poi's Oily Gorillas on 02, July, 2009, 03:47:00 PM
RuneScape is aimed at ages 8-18... but I think there are mostly ages 12-13?? and yes, they are immature, ever heard of Jagex planning a game called MechScape?, the title is not pernament yet, but they are trying not to give too much away since they are still developing it over what is taking them years to do.

Edit:  You must have heard of at least one of them calling you "noob" (their definition: newbie)


NICE, you're beating me in every skill on runescape. my username would be charleysdp1

This post has been edited by charleysdrpepper on Jul 2 2009, 02:57 PM
Title: Visual Basic
Post by: Salanewt on 02, July, 2009, 04:02:00 PM
From what I have come to understand, the players of Runescape can be divided into sections... The chart below is somewhat accurate, but is also due to change.

Immature = immature and/or stupid.

5/10 are 11-14 year olds, 4/5 of which are immature.

3/10 are people of other ages, most of which who are under 18 are immature, and many people who are over 18 are also immature.

2/10 are intellectuals and adults, most of which only play to try to have a good time. Many of these people do not talk to other people, but about 1/2 of these people are also very strange, and often immature.

I am one of the 2/10, the 1/2 that is mature. Many of the immature people are really stupid. They say that their mother tongue is English, yet they all seem to have speech impediments. The free player worlds are worse. You get people there who also think that your character is attractive, and they ask you to date them.

EDIT: Cool. I will be sure to add you when I am on next. I think that you are a member of the same group as I am.

Also, people use often the following: noob, and some others, but I forget. One person called me Salad*ck once...

Have a nice day.
:MercurySet:

This post has been edited by Salanewt on Jul 2 2009, 03:03 PM
Title: Visual Basic
Post by: Daddy Poi's Oily Gorillas on 02, July, 2009, 04:05:00 PM
why not put them on the ignore list?


Edit: okay, I'll add you too when I get on next, but my friends list is full so I will delete someone I don't ever talk to and then add you.

Yes, I'm still a member, became one at the end of 2008 if I remember correctly.

This post has been edited by charleysdrpepper on Jul 2 2009, 03:07 PM
Title: Visual Basic
Post by: Salanewt on 02, July, 2009, 04:07:00 PM
If I do that, then I do not know when they are insulting me, so I can not report them. Besides, this normally only happens when they make a misunderstanding about which team I am on when playing multi-player games (Funorb too).

Have a nice day.
:MercurySet:  
Title: Visual Basic
Post by: Daddy Poi's Oily Gorillas on 02, July, 2009, 04:11:00 PM
Oh ok, and just so you know, I've never reported anyone nor do I have anyone on my Ignore list, but if things go far enough then that's when I'm willing to report.
Title: Visual Basic
Post by: Salanewt on 02, July, 2009, 04:14:00 PM
Yeah, I rarely report as well, but it does happen. Also, most people that I do add to my ignore list are removed several days later. In fact, I have had people tell me that they have reported me for playing a mini-game my own way. For example, Castle Wars... I like to kill swarms of my team mates by using explosives on the walls of the tunnels... But only if they are mean. I find out for sure if they are mean by doing that.

Have a nice day.
:MercurySet:  
Title: Visual Basic
Post by: Daddy Poi's Oily Gorillas on 02, July, 2009, 10:18:00 PM
Very clever of you, let's do that together one day than maybe that'd be double the fun.
Title: Visual Basic
Post by: Daddy Poi's Oily Gorillas on 02, July, 2009, 10:19:00 PM
Very clever of you, let's do that together one day than maybe that'd be double the fun.

Edit: oops, had an error, then when i went to attempt to post again, didn't realize i was double posting, sorry.

This post has been edited by charleysdrpepper on Jul 2 2009, 09:20 PM
Title: Visual Basic
Post by: Salanewt on 03, July, 2009, 04:46:00 PM
Sure, I would like to do that. It is really fun on populated worlds. Also, if you do kill enemies, then they ignore the fact that you killed the enemies. Anyway, it will be fun, and I look forward to it.

Have a nice day.
:MercurySet:  
Title: Visual Basic
Post by: Daddy Poi's Oily Gorillas on 04, July, 2009, 12:55:00 AM
Atrius was right, I even found out myself by using 7-Zip, nice!! (Yeah, Yeah, anyone could find out about that by searching....)

right click the exe, point to 7-Zip (you have to download it first "[put silly word for a name here]", click Open archive, right click .text, and click edit, and then I look for my email and password which I use no where else,.. and... BOOM! it is there! text file may be a bit of a mess though.... so if anyone creates a program, that's your proof.

I'm going to see if I can find more programs like that....I did also find Neuron PE Disassembler, which also found the same email and pass... (in the "View")



This post has been edited by charleysdrpepper on Jul 4 2009, 02:17 AM
Title: Visual Basic
Post by: Salanewt on 14, August, 2009, 04:24:00 PM
Cool. By the way, with 7-Zip, can you compress programs yourself?

Also, for those of you who are interested, or want to help out (charley is doing a great job), then you can take a look at a project that we are working on for an RPG game. I will not tell you what it is unless you click on the link in my signature...

I posted in this topic because the program is being made with Visual Basic.

Have a nice day.
:MercurySet:  :MercuryDjinni:

This post has been edited by Salanewt on Aug 14 2009, 03:25 PM
Title: Visual Basic
Post by: Daddy Poi's Oily Gorillas on 16, August, 2009, 03:38:00 AM
Thanks for finding my topic. I may be doing really well, but there is something in the way... I do not fully understand how to display the ROM data, so I'm  going around looking for the answer... Takes a long time though. And still looking.

7-Zip might not help me in finding the answer, but I do not know, I haven't used it in awhile.

Compressing programs with 7-Zip, I'm not sure, haven't used it in awhile, (remember it was on my computer, but not my mother's and I haven't downloaded it to my mother's.)

This post has been edited by charleysdrpepper on Aug 16 2009, 02:40 AM
Title: Visual Basic
Post by: Mercury Adept on 06, September, 2009, 01:23:00 AM
Cool Lottery. :D