Need A little help with Scripting, bot

Posts 1–5 of 5 · Page 1 of 1
Need A little help with Scripting, bot
alright, so ive bben trying to make this bot here alt tabable. but so far, everytime i run it, it does not click.

this is the code that im trying to send (im making it to where it also trains skills)

Code:
AutoItSetOption("MouseCoordMode", 0)                                    
HotKeySet("{F1}", "Start")                                           
HotKeySet("{F2}", "End")                                              

While 1                                                                 
	sleep(1)                                                            
WEnd	

Func Start()
	While 1   
		ControlSend("Vindictus", "", "", "{V}")
		Sleep(600)
		ControlClick("Vindictus", "", "", "left", 3, 135, 241) ; clicks skill (first skill in (all)
		ControlClick("Vindictus", "", "", "left", 3, 758, 597) ; clicks MAX
		Sleep(1000)
		ControlClick("Vindictus", "", "", "left", 3, 447, 686) ; clicks close window
		ControlSend("Vindictus", "", "", "{ESC}") ; brings mouse out to front
		Sleep(2000)
		ControlClick("Vindictus", "", "", "left", 3, 104, 671) ; start
		Sleep(25000)
		ControlSend("Vindictus", "", "", "{Numpad1}")
		ControlSend("Vindictus", "", "", "{Numpad0}")		
	Sleep(10000)
		ControlSend("Vindictus", "", "", "{NumpadMult}")                
		ControlSend("Vindictus", "", "", "{Numpaddiv}")
		ControlSend("Vindictus", "", "", "{F7}")	
		Sleep(100)
		ControlSend("Vindictus", "", "", "{F8}")

		Sleep(9000)
		ControlSend("Vindictus", "", "", "{h}") 
			Sleep(1000)
		ControlSend("Vindictus", "", "", "{}")
   	ControlSend("Vindictus", "", "", "{h}")
	Sleep(1000)
	;~ Battle notification Complete
		Sleep(63000) ; This waits until the screen pops up for complete
;~ Begin Replay Sequence
		ControlClick("Vindictus", "", "", "left", 3, 278, 734) ; clicks replay

;~ Replay Sequence Complete
		Sleep(20000)	
		WEnd                                                 
EndFunc                                                              

Func End()                                                              
	Exit                                                             
EndFunc
Just noticed i posted in wrong section. e_e.
Hm, I cant help but...interesting. I didn't think it could be alt-tabbable considering its just clicking hotkeys and buttons with the given coords on the window thats active.
Quote Originally Posted by Succubus View Post
Hm, I cant help but...interesting. I didn't think it could be alt-tabbable considering its just clicking hotkeys and buttons with the given coords on the window thats active.
yea, it will send the keys, but not the mouse clicks.
You will not get ControlClick to work reliably on a window without focus.. You can record what has current focus, give focus to Vind, click, return previous focus. That's about the best you will get.
Quote Originally Posted by DanK View Post
You will not get ControlClick to work reliably on a window without focus.. You can record what has current focus, give focus to Vind, click, return previous focus. That's about the best you will get.

alright. how about the image search function
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?