Sign in to follow this  
Followers 0
jereff

Wow - Anti AFK script.

25 posts in this topic

Hey,

Recently I've been trying to master AutoIT, it aint going very well. Im getting some pretty sick headache from it. One script really bugs me, its that anti afk script.

It works perfect while you have the "World of Warcraft" window active, but if you were to do anything else it dosnt work. Seems like it dosnt send that "key strikes" to the designated target.

WinWaitActive("World of Warcraft")


HotKeySet("{PAUSE}", "Start")
HotKeySet("!{PAUSE}","Quit")

TogglePause()

func Start()
HotKeySet("{PAUSE}")
HotKeySet("{PAUSE}", "TogglePause")
ToolTip('AntiAFK started.',0,0)
While 1
Send("{SPACE}")
Sleep(Random(120000,240000))
WEnd
EndFunc

Func TogglePause()
ToolTip('AntiAFK Stopped.',0,0)
HotKeySet("{PAUSE}")
HotKeySet("{PAUSE}", "Start")
While 1
sleep(100)
WEnd
EndFunc

func Quit()
Exit
EndFunc

Anyone see anything wrong, why it wouldnt work as a background process?

Thanks in advance,

Jereff.

Share this post


Link to post
Share on other sites



It works perfect while you have the "World of Warcraft" window active, but if you were to do anything else it dosnt work.

wonder why???

WinWaitActive("World of Warcraft")

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

You will find that Send("{SPACE}") only sends to the active window.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Yes, When I downloaded WoW, To try it out, I was bored, And I was lost in the ocean, So, I made a simple script that kepts swimming forward for me. Just use ControlSend(), Should work fine :whistle:


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

Yes, When I downloaded WoW, To try it out, I was bored, And I was lost in the ocean, So, I made a simple script that kepts swimming forward for me. Just use ControlSend(), Should work fine ;)

:whistle: AzKay, you're crazy.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

NUM LOCK! its auto-run which is also auto swim ;)

But even once you get to land youll feel like your swimming around with nothing to do, its so boring. People play itnonstop then talk about it but they have nothing to talk about other than "oh i almost got this epic raid gear!" when you can never "almost get" a random drop 8)

But, whatever works, im a battlefield2142 kind of guy :P

Cant you turn it off, the auto-afk when your away for 10 minutes? Check the options. Otherwise you could just make it pres W every 10 seconds, shouldnt mess up anything as just hitting W wouldnt move you very much. Or press W then S and it moves you back where you were.

Or make a macro that makes you dance or something, then just press that hotkey ;)

That would be halarious

i just reread your topic, you want it for windows to? Just move the mouse up and down 1 pixel every 10 seconds :whistle:

Probrably not a good idea if you use photoshop or GIMP alot though ^^

Edited by Rad

Share this post


Link to post
Share on other sites

NUM LOCK! its auto-run which is also auto swim :P

But even once you get to land youll feel like your swimming around with nothing to do, its so boring. People play itnonstop then talk about it but they have nothing to talk about other than "oh i almost got this epic raid gear!" when you can never "almost get" a random drop 8)

But, whatever works, im a battlefield2142 kind of guy ;)

Cant you turn it off, the auto-afk when your away for 10 minutes? Check the options. Otherwise you could just make it pres W every 10 seconds, shouldnt mess up anything as just hitting W wouldnt move you very much. Or press W then S and it moves you back where you were.

Or make a macro that makes you dance or something, then just press that hotkey :D

That would be halarious

i just reread your topic, you want it for windows to? Just move the mouse up and down 1 pixel every 10 seconds ;)

Probrably not a good idea if you use photoshop or GIMP alot though ^^

space is probably the best option though as it will keep you in the one spot and only jump every so often where if u hit W sooner or later your eventually going to hit a wall and that could look a bit suspicious if you were afk for a while (like waiting for AV to pop... :whistle: )

Share this post


Link to post
Share on other sites

:whistle: AzKay, you're crazy.

Ill take that as a compliment xD

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

Hey guys i wonder how do u make a ControlSend with MouseMove and MouseClick or is it even possible?

Share this post


Link to post
Share on other sites

Hey guys i wonder how do u make a ControlSend with MouseMove and MouseClick or is it even possible?

As far as clicks go, take a look at ControlClick() in the helpfile.


HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

Share this post


Link to post
Share on other sites

As far as clicks go, take a look at ControlClick() in the helpfile.

If he wants to click at a coordinate though, he might want to search for MouseClickPlus or my personal favourite, ClickInControl.

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

Oh yea forgot about it but, the windows that i'm applying the script to is way too long. Is there any way that i can make a substitute of the windows title? Perhaps something like the process :whistle:

Share this post


Link to post
Share on other sites

So guys how it will be look with this ... CentralSend ??

I have this code:

----------------------------------------------------

WinWaitActive("World of Warcraft")

HotKeySet("{PAUSE}", "Start")

HotKeySet("!{PAUSE}","Quit")

TogglePause()

func Start()

HotKeySet("{PAUSE}")

HotKeySet("{PAUSE}", "TogglePause")

ToolTip('Zeby BGAFK zadzialal musisz miec okno wowa na wierzchu !!(nie mozesz przegladac stronek ani nic innego).',0,0)

While 1

Send("{SPACE}")

Sleep(Random(70000,120000))

WEnd

EndFunc

Func TogglePause()

ToolTip('Zeby BGAFK zadzialal musisz miec okno wowa na wierzchu !!(nie mozesz przegladac stronek ani nic innego).',0,0)

HotKeySet("{PAUSE}")

HotKeySet("{PAUSE}", "Start")

While 1

sleep(100)

WEnd

EndFunc

func Quit()

Exit

EndFunc

-------------------------------------------------------

how to make it afk in wow when you wathing some internet pages for exsample....

I often play wow at work, and i need to do others thing when my wow window cant be active.

PLZ help me if u can. THX.

sorry for my english

Share this post


Link to post
Share on other sites

Is there any way to be not AFK in wow battlegrounds when my wow window isnt my main window?

In my work i offten need to do some fast calculations in office and sometimes im gone for 4-5 min. Is there any way i can back to wow and resume my game ?

Share this post


Link to post
Share on other sites

one thing i dont understand of this those script , there stand HotKeySet("{PAUSE}", "Start") ....

does that means press pause to start the script? but if thats right , where do i find that button :D

:P

or is there other way to start the script or not?

Share this post


Link to post
Share on other sites

ohw ye and if i copy the code , into a macro , it dont fit :D i got 225/225 letters and then i got the half the script into my macro , so can someone give me some more information how i install a script? :P

Share this post


Link to post
Share on other sites

HiHo guys!

Well, I found this script a few months ago here in this forum as well.... and it worked perfect !!!

You can do other stuff while "getting" honor....

F9 hides even ur wow, F10 recovers it..

And it randomly moves ur player(!!!)

BUT:

I didnt use it quite a while and some easy syntax errors got into it.. I DONT KNOW :P

HERE THE SCRIPT, would be pleased for some corrections ^^

the end looks suspicous, but ...hmm^^

HotKeySet("{F9}", "hide")

HotKeySet("{F10}", "show")

AutoItSetOption("WinTitleMatchMode", 4)

While 1

Sleep(1000)

WEnd

Func hide()

Global $Show = 0

Global $handle = WinGetHandle("classname=GxWindowClassD3d")

WinSetState($handle, "", @SW_MINIMIZE)

WinSetState($handle, "", @SW_HIDE)

If @error Then

MsgBox(0, "error", "couldnt find WoW")

Else

While 1

$unique = Random(1, 4, 1)

If $unique = 1 Then

ControlSend($handle, "", "", "{UP DOWN}")

Sleep(100 + Random(1, 50, 1))

ControlSend($handle, "", "", "{UP UP}")

ControlSend($handle, "", "", "{DOWN DOWN}")

Sleep(100 + Random(1, 50, 1))

ControlSend($handle, "", "", "{DOWN UP}")

Sleep(200000 + Random(5000, 15000, 1))

ElseIf $unique = 2 Then

ControlSend($handle, "", "", "{RIGHT DOWN}")

Sleep(100 + Random(1, 50, 1))

ControlSend($handle, "", "", "{RIGHT UP}")

ControlSend($handle, "", "", "{LEFT DOWN}")

Sleep(100 + Random(1, 50, 1))

ControlSend($handle, "", "", "{LEFT UP}")

Sleep(200000 + Random(5000, 15000, 1))

ElseIf $unique = 3 Then

ControlSend($handle, "", "", "{DOWN DOWN}")

Sleep(100 + Random(1, 50, 1))

ControlSend($handle, "", "", "{DOWN UP}")

ControlSend($handle, "", "", "{UP DOWN}")

Sleep(100 + Random(1, 50, 1))

ControlSend($handle, "", "", "{UP UP}")

Sleep(200000 + Random(5000, 15000, 1))

ElseIf $unique = 4 Then

ControlSend($handle, "", "", "{LEFT DOWN}")

Sleep(100 + Random(1, 50, 1))

ControlSend($handle, "", "", "{LEFT UP}")

ControlSend($handle, "", "", "{RIGHT DOWN}")

Sleep(100 + Random(1, 50, 1))

ControlSend($handle, "", "", "{RIGHT UP}")

Sleep(200000 + Random(5000, 15000, 1))

EndIf

If $Show > 0 Then ExitLoop

WEnd

EndIf

EndFunc ;==>hide

Func show()

Global $Show = 1

WinSetState("World of W

Share this post


Link to post
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
Sign in to follow this  
Followers 0