|
Post by ghostwithabong on Jun 22, 2005 3:54:53 GMT -5
Ok, I made a very simple voke bot to try and learn how to script the basics in ffxi.
; ()/ ;/[] ; /\
$Charm = 1 WinWaitActive("FFXiApp")
While ($Charm < 1000) Sleep(50) Send("!1"); Targetnpc macro Sleep(50) Send("!2"); /ja "Charm" <t> macro Sleep(50) Send("{ESCAPE}"); To unselect the old target. $MyVariable = $MyVariable + 1 WEnd
The problem with this is that it is voking too fast to show all the text on the screen and I do not know if it still registers them. Also is it possible to set it to when I minize FFXI the scrip stops running in windows?
Thank you in advance.
|
|
dirp2
New Member
Posts: 26
|
Post by dirp2 on Jun 28, 2005 23:42:34 GMT -5
I don't think you can pause a script in the way that you want.The problem(in my limited experience) is once the game has been maximized again,it catches your keyboard input,not autoit.Windower is different,because it's actually hooked into the game.But you can make a pause function,and just set it to the same key Windower uses to minimize,or a key nearby.If you set your pause to be the same as the key Windower uses to minimize,you will have to hit the key twice to pause the script(once to minimize the game,the second time to actually pause the script).Here's the pause the function I use,got it straight from the one of the many fine examples in the autoit help file:
Global $Paused HotKeySet("[", "TogglePause")
;;;;; Script Body ;;;;;
Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc
As far as the speed thing,I'd say just increase the time it sleeps until it's at a rate you can use while debugging.You can always reset them after you done editing the script and sure it works.Remember, as a rule of thumb,1000=approx 1 second,so you are cycleing pretty fast.Also keep in mind,that for ffxi to register your keystrokes,you need have some delay in your keystrokes...Don't forget to set your SendKeyDownDelay and SendKeyDelay options
|
|