AutoIT no longer works?

Posts 1–8 of 8 · Page 1 of 1
AutoIT no longer works?
So is AutoIT patched or something? I've been trying to script my own bot using AutoIT but can't get it to work. The scripts work outside of the game (like on the desktop or whatever) but they don't work whenever I switch to the game itself. The command: "WinWaitActive("Vindictus","")" is suppose to make the script run whenever I switch to Vindictus right? And stuff like: "HotKeySet("{F9}", "Play")" is suppose to start the strings under the function "Play" whenever I press F9 right? However, I can't get any of that to work. I also tried copying various Weeping Queen source codes found on this site but none of them seem to work.
Quote Originally Posted by Godsofman View Post
So is AutoIT patched or something? I've been trying to script my own bot using AutoIT but can't get it to work. The scripts work outside of the game (like on the desktop or whatever) but they don't work whenever I switch to the game itself. The command: "WinWaitActive("Vindictus","")" is suppose to make the script run whenever I switch to Vindictus right? And stuff like: "HotKeySet("{F9}", "Play")" is suppose to start the strings under the function "Play" whenever I press F9 right? However, I can't get any of that to work. I also tried copying various Weeping Queen source codes found on this site but none of them seem to work.
Autoit is not patched. If you'd like, you can either post your code or pm me it. Please keep it in format, as that most likely is your problem.
Global $Paused
HotKeySet("{z}", "TogglePause")
HotKeySet("{x}", "Test")

; Ignore;
While 1
WinWaitActive("Vindictus","")
WEnd
;;

; Will infinitly spam Weeping Queen (Until you stop it or some other unexpected error occurs such as lag D ;
Func Test()
While 1
Sleep(5000)
MouseClick("left",95,627,1) ; Clicks START to launch mission
Sleep(500)
Send("{8}") ; Set this to whatever you bound "host_timescale 3" to. Must be 3 unless you readjust the sleep times.
Sleep(26000)
Send("{0}") ; Set this to whatever you bound any sort of Spears to.
Sleep(5000)
Send("{f}") ; Activates the aimmer
Sleep(500)
Send("{e}") ; Autolocks to Weeping Queen
Sleep(70000)
MouseClick("left",193,709,1) ; Will click REPLAY on the box showing Earnings/EXP/AP.
Sleep(10000)
WEnd
EndFunc
;;

Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Script is PAUSED, press "z" to UNPAUSE',0,0)
WEnd
ToolTip("")
EndFunc




This is one of the Weeping Queen scripts that I copied from searching around this site. At the moment, I am simply trying to get the bot to actually click on the start bottom, or rather, to do something in the game at all. Don't know if it matters but I am not actually doing the Weeping Queen quest but it shouldn't matter since I'm just trying to get the bot to click start. Also, my screen resolution is 1366 X 768. Apparently, resolution matters so if that is the problem, how do I change it? This is the only resolution available to me.
Quote Originally Posted by Godsofman View Post
HotKeySet("{z}", "TogglePause")
HotKeySet("{x}", "Test")


Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Script is PAUSED, press "z" to UNPAUSE',0,0)
WEnd
ToolTip("")
EndFunc


Replace with
HotKeySet("z", "TogglePause")
HotKeySet("x", "Test")



You can also pause (more more easily) by creating a function that brings up a message box.

Func pause()
MsgBox(0, "message box", "Bot is paused. Hit OK to resume")
sleep(1000)
WinSetState("vindictus","",@SW_SHOW)
sleep(1000)
EndFunc

Also I would suggest making a "stop" function hotkey'd

Func stop()
MsgBox(0, "Bot finished", "All done. Runs completed: ")
Exit
EndFunc

Should be ok from scanning it other than your first 2 lines.

To change resolutions, you need to input the new mouse click coordinates for a given resolution. You can also retrieve the desktop/screen sizes using WinGetPos.
Ok thanks, I'll try it and give feedback once I get home, which won't be for awhile, unfortunately.
Quote Originally Posted by Godsofman View Post
Ok thanks, I'll try it and give feedback once I get home, which won't be for awhile, unfortunately.
np and gl
run it in admin mode.
Quote Originally Posted by wolb View Post
run it in admin mode.
@Godsofman
Might want to also include this at the top of your script. Forces running it in admin. Glitchy on XP but works fine on Win 7.
#requireadmin


Also you can add
Send("{NUMLOCK ON}")
at the start of your script so your binds will work if you're using NUMPAD keys.
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us