Posted by ipp in Other, tags: Programming, Wow!
Ever want to create your own bots? Well the “hello world” to the bot world is generally anti-afk bots, they don’t do anymore than make it appear the user is at the computer. This won’t be too advanced as we are just going to be using ‘apple script’, a “real bot” would generally hook into the actual program and interface with it directly and not the keyboard. However this is a very good place to start.
First you must open “Script Editor” on your mac and then you can paste this code in the top window.
repeat 100 times
tell application “System Events”
tell application “World of Warcraft” to activate
key code 49
delay (random number from 30 to 90)
There you have it,all you need to do is open up WoW, log in and click run in script editor, I don’t recommend overusing this macro as players may report you if you are doing it all day in battlegrounds. And you can get banned, however if you just use it every once and a while while you take a shower or go eat; i doubt you will be banned. However use at your own risk, there is always the chance.
Curious how it works? Here’s an explanation.
- First we are setting up a loop, in this case it will perform everything until “end repeat” 100 times.
- Next we let the command know we are going to be sending “System Events” to the application “World of Warcraft”. This basically ensures your WoW window has focus, so it will send the goods to the correct program.
- After the program is open, we are going to press the space bar. If you want to send text, you can use the “Keystroke” syntax; however special keys such as space and enter can be a bit tricky. Use this program to get a listing of key codes: Full Key Codes
- Ok now to look atleast a little human, lets wait a random number of seconds between 30 and 90 before we do anything else.
No Comments »
Computer programming is difficult, right? WRONG. Using new programs such as Microsoft Visual Basic 2008, you can create your own programs with ease. This tutorial will show you how to build your own fully-functional web browser in just a couple of minutes!
First off you’ll need a copy of Microsoft Visual Basic Express Edition 2008 (you can download it from here, and by the way… it’s free!) After installing and opening the program…
- Goto File > New Project
- Select ‘Windows Application’ and give it (your application) a name.
For example: “WebBrowser”
- Hit the ‘OK’ button and your project will now load up!
Once your project is loaded, all you will see is a blank canvas window and lots of buttons. We will start off simple:
- In the “Toolbar” panel (found at the left of the screen), goto “Containers”. Then drag the “Panel” control onto the top left of your window, then stretch it out to make it fit the top half of your canvas (window).
- After that’s done, minimize the containers menu and click the “Common controls” button.
- From there, find the “Textbox” control and drag it into panel you previously added to your canvas.
- Again, from the “Common Controls” menu, find the button control and lay it into your panel beside the text box.
- Next, select the “Button1″ control found inside your canvas. On the right side of the screen, you’ll see a small properties window. Find the “text” text field and change “Button1″ to Go!
- Now select the “Web Browser” control found in the toolbox. Drop it into your canvas window under the panel and stretch it out to fit your window.
Inputting your code
- On the canvas, double click your “Go!” button. A code editor will pop up.
- In the code editor, under the “Private Sub…” text, type: WebBrowser1.Navigate (TextBox1.Text)
- Click the “Form1.vb (Design)” tab near the top of your window.
- Click the top border of your canvas, mouse over to the “properties” box, and like you did with the Go button find the “text” text and replace “Form1″ with anything you wish.
Test it out!
Now that you’re done, time for the fun part: actually seeing your program in action!
To test out (debug) your program, hit F5 or press the small “Play” button near the top of your screen!
And now you’re done! Enjoy!
7 Comments »