jereff Posted October 25, 2006 Posted October 25, 2006 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.
Valuater Posted October 25, 2006 Posted October 25, 2006 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)
BigDod Posted October 25, 2006 Posted October 25, 2006 You will find that Send("{SPACE}") only sends to the active window. 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
FuryCell Posted October 25, 2006 Posted October 25, 2006 Maybe ControlSend() could be used in this case to send a keypress directly to the window. HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
AzKay Posted October 25, 2006 Posted October 25, 2006 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 # MY LOVE FOR YOU... IS LIKE A TRUCK- #
jvanegmond Posted October 25, 2006 Posted October 25, 2006 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 AzKay, you're crazy. github.com/jvanegmond
Rad Posted October 25, 2006 Posted October 25, 2006 (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 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 Probrably not a good idea if you use photoshop or GIMP alot though ^^ Edited October 25, 2006 by Rad
fu2m8 Posted October 25, 2006 Posted October 25, 2006 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 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 halariousi 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... )
AzKay Posted October 26, 2006 Posted October 26, 2006 AzKay, you're crazy.Ill take that as a compliment xD # MY LOVE FOR YOU... IS LIKE A TRUCK- #
pnut Posted October 28, 2006 Posted October 28, 2006 Hey guys i wonder how do u make a ControlSend with MouseMove and MouseClick or is it even possible?
FuryCell Posted October 28, 2006 Posted October 28, 2006 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.
AzKay Posted October 28, 2006 Posted October 28, 2006 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- #
pnut Posted October 28, 2006 Posted October 28, 2006 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
kerio2 Posted December 15, 2006 Posted December 15, 2006 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
kerio2 Posted December 16, 2006 Posted December 16, 2006 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 ?
Gankalot Posted December 25, 2006 Posted December 25, 2006 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 or is there other way to start the script or not?
Gankalot Posted December 25, 2006 Posted December 25, 2006 ohw ye and if i copy the code , into a macro , it dont fit 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?
Polymorph Posted December 27, 2006 Posted December 27, 2006 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 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now