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 


[TUT] Basic Programming

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

Joined: 29 Aug 2008
Posts: 2006
Location: Australia

PostPosted: Sat Nov 08, 2008 7:18 pm    Post subject: [TUT] Basic Programming Reply with quote

If you've never programmed before, here's your chance. I'm not very good at it, but I know the basics.

Part 1. Introduction

What is programming?

Programming is where you get to design applications. You can design stuff from simple web browsers to extreme games to everyday applications.

What types are out there?

There are quite a few. I'll name some of them:
Visual Basic
C++
C#
Delphi
SQL
Java
Flash
and many more.

What should I start with?
Usually you should start with Visual Basic. It is the easiest of the programming languages and allows for basic application building.

Part 2. Getting Started
First, you will need Visual Basic Express 2008. Once that has been installed, it's time to code. Note you can also get VB6 at a mere 3MB, but I prefer the 2008 version simply because it is more streamlined.

Part 3. Creating your first app
Because Microsoft already supplies information on how to create a web browser, I am going to put that aside and do something more advanced. You can do that if you wish. It will give you more knowledge into VB.

I will create a Flash loader instead, seemingly because I play to hack AQW. First, start up VB2008. Once the Start Screen appears, click Create on the left hand side of the Start Page. Name your application whatever you like (in this case, AQW). Once it opens, click and drag the window to a more reasonable size like 810 x 730 (enter it in VB as 810, 730). You can see that the size changes once your mouse finishes dragging. Next, name the window under the Text property. I’ll simply name it AQW Loader. Create a Flash object. Go to the Toolbox (hover mouse over the tab). You cannot see that there is a Flash object there. We could use a web browser object, but there will be problems later on. So right click anywhere in the toolbox and click Choose Items. Click the COM Components tab, and tick Shockwave Flash Object (you need Flash installed). When Shockwave Flash Object appears under the General category, drag it up to All Windows Forms. Click it, and drag a Flash object and size it to 750 x 550. Next, drag a button and 2 textboxes so they are positioned somewhat like this:



Make sure the one that isn’t next to the textbox is not visible (change the textbox’s ‘Visible’ property to false). It is now time to enter some code to make this work. Double click the Flash object and enter the following:

Code:
AxShockwaveFlash1.Movie = Me.TextBox1.Text
AxShockwaveFlash1.Base = Me.TextBox2.Text
AxShockwaveFlash1.Play()


Referring to the pic, let’s say you dragged the left-most text box first, followed by the 2nd textbox, then the button. The first one you drag will be ObjectName1, the next one will be ObjectName2, and so on. Seemingly you have what is in the picture, leave the code above as is. If you don’t, modify it so it matches. The left-most textbox is the Movie, while the Invisible textbox is the Base. But because the SWF for AQW is constantly changing, we need a URL updater. Using NoManchesPuto’s SWF source, we can let users see what the latest Movie is. So, drag a WebBrowser object below the Flash object. Make it 455 x 95. Then, go to the URL property and type the following link:

http://cybertown.890m.com/aqw/aqw.swf

You should end up looking like this:



If you find the Movie SWF is outdated, change the numerical figure. Using the pic as an example, I created this loader when it was in game_07, but now it is game_13, so change only the number figure from 07 to 13. Do not touch the rest of the link. Now, debug the app by hitting F5. Try it, then close it.

Go to File > Save All. Save it to a folder on the desktop called AQW. Now, go to Build > Build Project Name. Close VB2008 and return to the desktop.

Double-click AQW > AQW > bin > Release > ProgramName.exe.

Well now you have it. You are free to explore the even vaster world of programming.

~darkex


Last edited by darkex on Sat Nov 08, 2008 10:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
Zurkei
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Nov 2007
Posts: 1132
Location: Makakilo, Hawaii

PostPosted: Sat Nov 08, 2008 8:16 pm    Post subject: Reply with quote

Great quick-start guide hope it helps people.
Back to top
View user's profile Send private message MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Nov 08, 2008 8:48 pm    Post subject: Reply with quote

So basically this is a guide about programming that teaches nothing about programming.

FANTASTIC.
Back to top
View user's profile Send private message
nwongfeiying
Grandmaster Cheater
Reputation: 2

Joined: 25 Jun 2007
Posts: 695

PostPosted: Sat Nov 08, 2008 9:39 pm    Post subject: Reply with quote

slovach wrote:
So basically this is a guide about programming that teaches nothing about programming.

FANTASTIC.


I'm sorry, but I'm going to have to second this notion.
Back to top
View user's profile Send private message
--Pillboi--
Grandmaster Cheater Supreme
Reputation: 0

Joined: 06 Mar 2007
Posts: 1383
Location: I don't understand the question. Is this a 1 to 10 thing?

PostPosted: Sun Nov 09, 2008 3:18 am    Post subject: Reply with quote

nwongfeiying wrote:
slovach wrote:
So basically this is a guide about programming that teaches nothing about programming.
FANTASTIC.

I'm sorry, but I'm going to have to second this notion.

I third this. Sad Change the title to, "Beginning Visual Basic Programming" or something. Wink

_________________

Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair.
Back to top
View user's profile Send private message
Overload
Master Cheater
Reputation: 0

Joined: 08 Feb 2008
Posts: 293

PostPosted: Sun Nov 09, 2008 3:39 am    Post subject: Reply with quote

--Pillboi-- wrote:
nwongfeiying wrote:
slovach wrote:
So basically this is a guide about programming that teaches nothing about programming.
FANTASTIC.

I'm sorry, but I'm going to have to second this notion.

I third this. Sad Change the title to, "Beginning Visual Basic Programming" or something. Wink


4th'd

_________________
Blog

Quote:
Rhys says:
you can be my maid
Rhys says:
ill buy you a french maid outfit
Tyler says:
Sounds good
Rhys says:
ill hold you to that
Back to top
View user's profile Send private message MSN Messenger
cheesecan
Expert Cheater
Reputation: 0

Joined: 01 Oct 2006
Posts: 215

PostPosted: Sun Nov 09, 2008 7:41 am    Post subject: Reply with quote

Hey for all beginners i suggest using this new program called small basic. it is much alike visual basic but for the sort of projects you should learn 1st(really basic ones.. i think that making web appz and calculators and stuff isnt very useful since it uses premade and very little input and thinking.)


Here is a little blackjack program i just made in little time Laughing



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.

Back to top
View user's profile Send private message
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