Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 22:02

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



A little help please(AutoIt)

Discussion on A little help please(AutoIt) within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2006
Posts: 64
Received Thanks: 4
A little help please(AutoIt)

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

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
5oonigga is offline  
Old 04/22/2011, 21:42   #2
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Does this game have a Hackingshield? Because a Hackingshield blocks the Send command.
BlackHybrid is offline  
Old 04/22/2011, 23:02   #3
 
elite*gold: 0
Join Date: Jun 2006
Posts: 64
Received Thanks: 4
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



{EDIT}
Also is my code correct to properly run right?
5oonigga is offline  
Old 04/22/2011, 23:30   #4
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
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.
BlackHybrid is offline  
Old 04/22/2011, 23:40   #5
 
elite*gold: 0
Join Date: Jun 2006
Posts: 64
Received Thanks: 4
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?
5oonigga is offline  
Old 04/23/2011, 00:23   #6
 
elite*gold: 0
Join Date: Jun 2006
Posts: 64
Received Thanks: 4
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.....
5oonigga is offline  
Reply

Tags
tle




All times are GMT +1. The time now is 22:03.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.