A little help please(AutoIt)

04/22/2011 20:58 5oonigga#1
A ok i used forsakens guide to make my own macro/bot...
The problem I am having with it is that the bot/macro will not work in game.. but will work on everything else :D

now here is my code:
Code:
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseX64=n
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#cs --------------------------------------------------------------
		Autoit Version: 3.3.6.1
		Author: 5oonigga
#ce --------------------------------------------------------------

#include <GUIConstantsEx.au3> ;Adds a GUI interface
Global $Paused
HotKeySet("{PAUSE})","TogglePause") ;Script will pause when Pause button is Pressed
HotKeySet("{ESC}","Stop") ;Script can be stopped by hitting the ESC button

GUICreate("Kabod Bot", 335, 100) ;the GUI Box

GUISetState(@SW_SHOW) ; to show the GUI box

GUICtrlCreateLabel("Key", 8, 10) ; adds key text to the GUI
$key1 = GUICtrlCreateInput ("", 35, 8, 120)
GUICtrlCreateLabel("Time", 8, 44)
$time1 = GUICtrlCreateInput("", 35, 40, 120)
GUICtrlCreateLabel("Key", 8, 74)
$key2 = GUICtrlCreateInput("", 35, 68, 120)
$startbutton = GUICtrlCreateButton("Start", 190, 8, 60)


While 1
		$msg = GUIGetMsg ()

		Select

				Case $msg = $startbutton
									$send1 = GUICtrlRead($key1)
									$sleep1 = GUICtrlRead($time1)
									$send2 = GUICtrlRead($key2)
							While 1
									Sleep(2000)
									Send("{TAB}")
									Sleep(500)
									Send($send1)
									Sleep($sleep1)
									Send($send2)
									Sleep($sleep1)
								WEnd


				Case $msg = $GUI_EVENT_CLOSE
						GUIDelete()
						ExitLoop

		EndSelect




	WEnd
If anyone can help me out with this.. I would greatly appreciated it..
I am new to Autoit but i have a general understanding of the basic stuff as of right now...

The only thing is that I have googled and searched and searched again for my problem and I cant find anything on it.. people said it should work even with a basic of the basic

but i cant get anything to work
04/22/2011 21:42 BlackHybrid#2
Does this game have a Hackingshield? Because a Hackingshield blocks the Send command.
04/22/2011 23:02 5oonigga#3
when i load the game.. I dont notice any hackshield/GameGuard nor xtrap that pops up and does its only little patch....

I looked in task manager and cant find any of the above running either..

the game is Kabod Online

[Only registered and activated users can see links. Click Here To Register...]

{EDIT}
Also is my code correct to properly run right?
04/22/2011 23:30 BlackHybrid#4
Try to put this on the top of your script
PHP Code:
Opt("SendKeyDownDelay"15
because some games are blocking if you send keys to fast.
04/22/2011 23:40 5oonigga#5
I put that line just on the next line after
Code:
WinWaitActive("Kabod")
at the very top.. Is that right?

If so that still didnt make it work.. Also I made the sleep 6000 instead of 2000 and still nothing in the game...

I wanted to see if it worked so i Clicked the GUI and let it run and the Tab 1-2 is working..

But in the game still no luck..

hmm back to google.. there has to be something out there that I can find out to make it work inside the game.. I tried fullscreen and windows mode and nothing..


any other idea's?
04/23/2011 00:23 5oonigga#6
I have also tired this
Code:
While 1
									Sleep(6000)
									[COLOR="Red"]Send("{TAB down}")[/COLOR]
									Sleep(80)
									[COLOR="Red"]Send("{TAB up}")[/COLOR]
									Sleep($sleep1)
									Send($send1)
									Sleep($sleep1)
									Send($send2)
									Sleep($sleep1)
That didnt work either... soo frustrating :P

I only did Tab atm just to see if it would tab.. If it did i would then cont.. to write the rest.. but blah :P

It didnt

So i tired this in another game called loong.. It wouldnt work without the down and up buttons.... now so i figured if it worked for that game i try to go back and see if it works for another game... but it still doesnt work for the game i am trying to get it to work...

So my second guess is that the game has some kinda of protection.. but i cant find it in the game files nor any were that i search for it on the net.....