Jump to content

Macro for WoW but under a diffrent program


Recommended Posts

Can anyone help me translate this script to a AutoIT macro.

while 1=1
    MousePos 275, 800 //Right click of battle master
    RightClick
    Delay 1.5 sec
MousePos 200, 210  //NPC talk chat window button
    LeftClick
    Delay 1.5 sec
MousePos 195, 445 //Join first battle button
    LeftClick
    Delay 6 sec
MousePos 630, 185  //Accept Join BG button
    LeftClick
    Delay 1.5 sec
// MousePos 980, 820  //Leave Battleground button at the end of a game
    LeftClick
    Delay 1.5 sec
        keys;
        keys;
    Delay 2 sec
MousePos 635, 670  //Leave Battleground button at the end of a game
    LeftClick
    Delay 8 sec

end
Link to comment
Share on other sites

Hey, I did up to

While 1
MouseClick("right",275,800)
Sleep(1500)
WEnd

MouseClick("left",200,210)
Sleep(1500)
WEnd

MouseClick("left",195,445)
Sleep(6000)
WEnd

MouseClick("Left",630,185)
Sleep(1500)
WEnd

now i just cant seem to figure out how to do

/ MousePos 980, 820  //Leave Battleground button at the end of a game
    LeftClick
    Delay 1.5 sec
        keys;
        keys;
    Delay 2 sec

I'm new to scripting =(

Link to comment
Share on other sites

I think i messed up some were

While 1
MouseClick("right",275,800)
Sleep(1500)
WEnd

MouseClick("left",200,210)
Sleep(1500)
WEnd

MouseClick("left",195,445)
Sleep(6000)
WEnd

MouseClick("Left",630,185)
Sleep(1500)
WEnd

MouseClick("Left",980,820)
Sleep(1500)
Send(); read help file on send()
Send()
Sleep(2000)

MouseClick("Left",635,670)
Sleep(8000)


Func _Exit()
    Exit;EXITS!!!
EndFunc

When ever i do that it does not work because of line 8 but then i change it so there is no WEnd and it just closes all the programs at the bottom of my screen =(

Link to comment
Share on other sites

I think i messed up some were

When ever i do that it does not work because of line 8 but then i change it so there is no WEnd and it just closes all the programs at the bottom of my screen =(

Take a look in the helpfile, and check out Val's Awesome tutorial Found Here Edited by Paulie
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...