MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides  
Homepage Register FAQ Members Mark Forums Read Advertise Marketplace FPSowned


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > World of Warcraft > Bots and Programs
Reload this Page Guide for beginner mac scripters interested in learning how to use Xcode!
Bots and Programs Botting and Hacking programs for World of Warcraft.
[NO QUESTIONS HERE]

Reply
 
LinkBack Thread Tools
Guide for beginner mac scripters interested in learning how to use Xcode!
(#1)
Old
Domminust's Avatar
Domminust is Offline
Site Donator
Rep Power: 3
Reputation: 39
Domminust is on a distinguished road
 
Posts: 120
Join Date: Sep 2006
Guide for beginner mac scripters interested in learning how to use Xcode! - 05-17-2007

Hey guys, well im a bit bored and, i know theres alot of anxious people waiting for more mac scripters to come out and make new stuff. So i decided i would make a small guide on how to link applescripts with Xcode for the new people to start developing their own programs!

so, here we go!


we're gonna be making a VERY simple spam bot for wow. This is gonna be in its simplist form and note, its not gonna be the best spam bot out there, this is for learning uses

so, first we need to start with making a Xcode project. and to do that, you need Xcode which can be downloaded here:
[Only registered and activated users can see links. ]

after that, boot up Xcode and go up to file, and then New Project then go down to Application and Choose Applescript Application

lets name it Project1 and save it on the desktop.
now, time to make our spambot applescript.

the main script we're gonna use for this project is
Code:
repeat 5 times
	tell application "System Events"
		tell application "world of warcraft" to activate
		key code 36
		keystroke "spppaaammmm"
		key code 36
		delay 30
	end tell
end repeat 
now, for some explaining on what it means.
1.its pretty easy to understand, first things first,you of course have the repeat at the time showing how many times you want your program to repeat you need to put system events in there because thats what we're workin with, and it also opens up so you can compile the whole script better. ( cant think of a better way to explain this part xD)

2nd.
Code:
Tell application "world of warcraft" to activate 
says exactly what it does...: activates world of warcraft, and links it to the following part of the script
Code:
key code 36 
.
this will make wow enter key code 36 which is defined as "enter", which allows the bot to enter the spam you want.

3rd. we say
Code:
keystroke "sppaaamm" 
this defines what you want to say in game,
and then again:
Code:
key code 36 
to enter the text in game.

last: you then can enter a delay on how many seconds till the app is spammed again.
and then
Code:
end tell 
at the end to end the script, and
Code:
end repeat 
to fully end it.

--- so thats our main script, now to link it into your Xcode program and create your interface!---

in the main screen of your Xcode project, look under goup and files collum, and choose the top tab, in this case Project1
at the bottom of this tab you should see Project1.applescript this is where we are going to input the script we made above, as well as another part to define it to a button to execute into WoW.

so go ahead and open that up and your going to input the script we made with the following changes:
Code:

oon clicked theobject
	repeat 5 times
		tell application "System Events"
			tell application "world of warcraft" to activate
			key code 36
			keystroke "spppaaammmm"
			key code 36
			delay 30
		end tell
	end repeat
end clicked 
so, you can see the changes.
1. Onclicked the object. means activated by button.
so we say,
Code:
 if theobject is "enter" then 
right before the rest of the script, doing this defines this script to the button that we will create in the interface and name it "enter"

at the end of the script we then have to do end if to end the the
Code:
 if theobject is "enter" 
part of the script.
after you do all this, hit build and if it builds without any errors you can close this window.

NEXT STEP! CREATING INTERFACE!
again in your main Xcode project where you found Project1.applescript
you should see a file called Mainmenu.nib.
this is where you build your interface
so click this and it should bring up a couple windows including: "window, Mainmenu.nib control panel, another control panel for putting interface objects in, and a header option.

first, click the window with all the interface objects, click the cocoa-controls tab, and then click and drag one of the buttons that say "button" over to the main window.

after you do that, double click your new button in the main window, and rename it to "enter". ( no quotations of course)
after that, make sure ur still clicked on the button "enter"
and head up to the top applebar where you will find Tools. after you see that, go to "Show Inspector"

this is how your going to link your button with your applescript! click the arrow, its default should be on Attributes, and go down to Applescript.
name it enter and make sure to click : Action, clicked. and at the very bottom Under script click Project1.applescript.

save your Mainmenu.nib and exit.

after that head back to your main Xcode project. and click build at the top of the Xcode window. after it builds search for "project1.app" and open it.

or you can choose build and go, which will build and then run your app.

and after you do that! your done!
click the button on your app "enter" and it should display spaaamm in game.

again, this is just a tutorial on how to link applescripts with Xcode, not for a good spambot :P this program we have made is kind of pointless as a spambot, but it could be used if you wanted, you can always go into project1.applescript and change your scripts.

one last note: if you want to have one or more applescripts in your program with buttons, you will need to define every button as following:
lets say if you want a simple display dialog script. you would do the following:
Code:
 
on clicked theobject
	if theobject is "display dialog 1" then
		display dialog "this is a test 1"
	else if theobject is "display dialog 2" then
		display dialog "this is a test 2"
	end if
end clicked 
and so on and so on use " else if" defining new buttons as you go along.


if you have any questions please ask and hope this was some help on getting you started off
and forgive me for typo's etc. Kinda late here



Macintosh WoWenhancer: [Only registered and activated users can see links. ]
Mac Scripting Guide:
[Only registered and activated users can see links. ][color=red][b]

Last edited by Domminust; 05-19-2007 at 06:57 AM..
Reply With Quote

Donate to remove ads.
Re: Guide for beginner mac scripters interested in learning how to use Xcode!
(#2)
Old
Flying Piggy's Avatar
Flying Piggy is Offline
P.I.M.P.
Legendary User
Rep Power: 11
Reputation: 1164
Flying Piggy has much to be proud ofFlying Piggy has much to be proud ofFlying Piggy has much to be proud ofFlying Piggy has much to be proud ofFlying Piggy has much to be proud ofFlying Piggy has much to be proud ofFlying Piggy has much to be proud ofFlying Piggy has much to be proud ofFlying Piggy has much to be proud of
 
Posts: 2,299
Join Date: Jan 2007
Location: France
Re: Guide for beginner mac scripters interested in learning how to use Xcode! - 05-17-2007

Very nice , i hope this guide will encourage more people to create Mac apps .
+rep




Reply With Quote
Re: Guide for beginner mac scripters interested in learning how to use Xcode!
(#3)
Old
pyrobladeiac's Avatar
pyrobladeiac is Offline
Knight
Rep Power: 2
Reputation: 16
pyrobladeiac is on a distinguished road
 
Posts: 209
Join Date: Jan 2007
Re: Guide for beginner mac scripters interested in learning how to use Xcode! - 05-17-2007

yeah thnaks a lot, brilliant guide +rep


Reply With Quote
Re: Guide for beginner mac scripters interested in learning how to use Xcode!
(#4)
Old
Nugma's Avatar
Nugma is Offline
Contributor
Rep Power: 3
Reputation: 122
Nugma will become famous soon enoughNugma will become famous soon enough
 
Posts: 1,285
Join Date: Aug 2006
Location: Europe - Denmark
Re: Guide for beginner mac scripters interested in learning how to use Xcode! - 05-17-2007

Quote:
Originally Posted by Flying Piggy
Very nice , i hope this guide will encourage more people to create Mac apps .
+rep
I agree. I don't use Mac but we could use more apps.
I will return later and rep you, Dom.


Reply With Quote
Re: Guide for beginner mac scripters interested in learning how to use Xcode!
(#5)
Old
wiredguy8333's Avatar
wiredguy8333 is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 3
Reputation: 2
wiredguy8333 is an unknown quantity at this point
 
Posts: 45
Join Date: Nov 2006
Re: Guide for beginner mac scripters interested in learning how to use Xcode! - 05-17-2007

Nice can't wait to get started have to wait a few hours thugh to download :P +rep
Edit: I was looking through my software cds and I came upon my osx tiger instaltion cd I noticed on the cd that it said xcode 2.0 included. So i popped it in the drive and installed it. This saves a lot of hassle of downloading it from the website.

Last edited by wiredguy8333; 05-17-2007 at 08:38 PM..
Reply With Quote
Re: Guide for beginner mac scripters interested in learning how to use Xcode!
(#6)
Old
Valmilu's Avatar
Valmilu is Offline
Contributor
Rep Power: 4
Reputation: 176
Valmilu has a spectacular aura aboutValmilu has a spectacular aura about
 
Posts: 163
Join Date: Oct 2006
Re: Guide for beginner mac scripters interested in learning how to use Xcode! - 05-17-2007

Not bad kid you got some spunk


Reply With Quote
Re: Guide for beginner mac scripters interested in learning how to use Xcode!
(#7)
Old
Domminust's Avatar
Domminust is Offline
Site Donator
Rep Power: 3
Reputation: 39
Domminust is on a distinguished road
 
Posts: 120
Join Date: Sep 2006
Re: Guide for beginner mac scripters interested in learning how to use Xcode! - 05-17-2007

Quote:
Originally Posted by Valmilu
Not bad kid you got some spunk

Thanks!



Macintosh WoWenhancer: [Only registered and activated users can see links. ]
Mac Scripting Guide:
[Only registered and activated users can see links. ][color=red][b]
Reply With Quote
Re: Guide for beginner mac scripters interested in learning how to use Xcode!
(#8)
Old
gothicemo is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 2
Reputation: 1
gothicemo is an unknown quantity at this point
 
Posts: 28
Join Date: Apr 2007
Re: Guide for beginner mac scripters interested in learning how to use Xcode! - 05-17-2007

nice guide.
Now all i need is no parrents and lots of time to read this and learn how to use it. +rep mayb some day ill get around to this
Reply With Quote
Re: Guide for beginner mac scripters interested in learning how to use Xcode!
(#9)
Old
King_yoshi is Offline
Banned
Rep Power: 0
Reputation: 17
King_yoshi is on a distinguished road
 
Posts: 61
Join Date: Feb 2007
Re: Guide for beginner mac scripters interested in learning how to use Xcode! - 05-19-2007

I have a question. How does warden work on mac? Does it even work for macs or is Blizzard just another idiot company that underestimates macs?
Reply With Quote
Re: Guide for beginner mac scripters interested in learning how to use Xcode!
(#10)
Old
shadowbladex's Avatar
shadowbladex is Offline
Contributor
Rep Power: 2
Reputation: 138
shadowbladex will become famous soon enoughshadowbladex will become famous soon enough
 
Posts: 937
Join Date: Apr 2007
Location: ๏̯๏
Re: Guide for beginner mac scripters interested in learning how to use Xcode! - 05-19-2007

Once again very nice Domminust


Reply With Quote
Re: Guide for beginner mac scripters interested in learning how to use Xcode!
(#11)
Old
Sheavi is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 3
Reputation: 1
Sheavi is an unknown quantity at this point
 
Posts: 19
Join Date: Jan 2007
Re: Guide for beginner mac scripters interested in learning how to use Xcode! - 05-20-2007

Even if I knew almost everything in this tutorial it is good for anyone that wanna start coding their own mac applications. Good job dude!
Reply With Quote
Re: Guide for beginner mac scripters interested in learning how to use Xcode!
(#12)
Old
rroobboo is Offline
Private
Rep Power: 2
Reputation: 1
rroobboo is an unknown quantity at this point
 
Posts: 7
Join Date: May 2007
Re: Guide for beginner mac scripters interested in learning how to use Xcode! - 05-22-2007

if u wanna become an ADC member its free right??
Reply With Quote
Re: Guide for beginner mac scripters interested in learning how to use Xcode!
(#13)
Old
Captain Bunny Killer's Avatar
Site Donator
Rep Power: 2
Reputation: 15
Captain Bunny Killer is on a distinguished road
 
Posts: 116
Join Date: May 2007
Re: Guide for beginner mac scripters interested in learning how to use Xcode! - 05-22-2007

hey i was wondering so if i wanted to create a farm bot how would i tell it to turn to face the enemy or to move in the direction of it? if i could figure this out it would help alot for making a bot. and also how would i tell it to eat/drink when low on mana or health.
Reply With Quote
Re: Guide for beginner mac scripters interested in learning how to use Xcode!
(#14)
Old
Stabuindabak's Avatar
Stabuindabak is Offline
Master Sergeant
Rep Power: 2
Reputation: 21
Stabuindabak is on a distinguished road
 
Posts: 74
Join Date: Apr 2007
Location: Washington
Re: Guide for beginner mac scripters interested in learning how to use Xcode! - 05-23-2007

nice. very informative. i really have to try this. and i will.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375