Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 23:45

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

Advertisement



Question About AutoIT?!

Discussion on Question About AutoIT?! within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
PuN|SheR's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 239
Received Thanks: 47
Question About AutoIT?!

Hey.. I Would like to make a autologin for my CS server, everything is perfectly good exsept this : When it should run hl.exe(cs) it says
failed to initialize interface !

Code:
Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=c:\documents and settings\vasko\my documents\forms\medak.kxf
$Form1_1 = GUICreate("MedakUTD AutoLogin", 633, 180, 192, 124)
$Button1 = GUICtrlCreateButton("MedakUTD Alfa", 88, 64, 201, 33, 0)
$Button2 = GUICtrlCreateButton("MedakUTD Beta", 352, 64, 201, 33, 0)
$Button3 = GUICtrlCreateButton("MedakUTD DM+AWP", 88, 104, 201, 33, 0)
$Button4 = GUICtrlCreateButton("MedakUTD DeathMatch", 352, 104, 201, 33, 0)
$Label1 = GUICtrlCreateLabel("Medak Auto Login By BushilicA^", 88, 16, 464, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlSetBkColor(-1, 0xFF0000)
$Input1 = GUICtrlCreatelabel("Zelis Se Konektirati na svom serveru?Klikni Na Kopce : MyServer", 24, 144, 385, 21)
$Button5 = GUICtrlCreateButton("MyServer", 432, 144, 169, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Hotkeyset("{Delete}","quit")
Func quit()
	exit 0
	endfunc

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
	msgbox(0,"Program Startovan","Program Bice Pokrenut u 2 secunda",2)
	sleep(2000)
	winminimizeall()
	mouseclick("left",38,17,2,5)
	sleep(8000)
	send("{`}")
	sleep(500)
	send("connect 217.26.212.50:27024")
	send("{Enter}")
	sleep(9000)
	send("{Enter}")
	sleep(1000)
	send("{Enter}")
	sleep(1000)
	send("{Enter}")
	sleep(5000)
	send("{y}")
	send("MedakUTD AutoLogin By Bushilica Visit Forum www.medakutd.com")
	send("{Enter}")
	sleep(5000)
	exit
case $Button2
	msgbox(0,"Program Startovan","Program Bice Pokrenut u 2 secunda",2)
	sleep(2000)
	WinMinimizeAll()
	mouseclick("left",38,17,2,5)
	sleep(8000)
	send("{`}")
	send("connect 217.26.212.39:27043")
	send("{Enter}")
    sleep(9000)
	send("{Enter}")
	sleep(1000)
	send("{Enter}")
	sleep(1000)
	send("{Enter}")
	sleep(5000)
	send("{y}")
	send("MedakUTD AutoLogin By Bushilica Visit Forum www.medakutd.com")
	send("{Enter}")
	sleep(5000)
	exit
case $Button3
	msgbox(0,"Program Startovan","Program Bice Pokrenut u 2 secunda",2)
	sleep(2000)
	WinMinimizeAll()
	mouseclick("left",38,17,2,5)
	sleep(8000)
	send("{`}")
	send("connect 91.150.72.227:27044")
	send("{Enter}")
	sleep(9000)
	send("{Enter}")
	sleep(1000)
	send("{Enter}")
	sleep(1000)
	send("{Enter}")
	sleep(5000)
	send("{y}")
	send("MedakUTD AutoLogin By Bushilica Visit Forum www.medakutd.com")
	send("{Enter}")
	sleep(5000)
	exit
case $Button4
	msgBox(0,"Problem","Server Je Trenutno Ugasen")
    sleep(3000)
	exit
case $Button5
	$cs = Inputbox("IP","Koji Je Ip servera koga zelis da se konektujes","217.26.212.50:27024")
	sleep(1000)
	WinMinimizeAll()
	mouseclick("left",38,17,2,5)
	sleep(8000)
	send("{`}")
	send("connect ")
	send($cs)
	send("{Enter}")
	sleep(9000)
	send("{Enter}")
	sleep(1000)
	send("{Enter}")
	sleep(1000)
	send("{Enter}")
	sleep(5000)
	send("{y}")
	send("AutoLogin By BushilicA")
	send("{Enter}")
	sleep(5000)
	Exit
EndSwitch
WEnd
hotkeyset("{End}","quit")
PuN|SheR is offline  
Old 12/18/2010, 22:30   #2
 
gabrola's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 1,039
Received Thanks: 1,335
Wrong section.
gabrola is offline  
Old 12/19/2010, 12:09   #3

 
elite*gold: 146
Join Date: Apr 2008
Posts: 14,686
Received Thanks: 9,969
moved
Die Schnittstelle is offline  
Old 12/19/2010, 12:22   #4
 
elite*gold: 0
Join Date: Feb 2009
Posts: 542
Received Thanks: 112
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=c:\documents and settings\vasko\my documents\forms\medak.kxf
$Form1_1 GUICreate("MedakUTD AutoLogin"633180192124)
$Button1 GUICtrlCreateButton("MedakUTD Alfa"8864201330)
$Button2 GUICtrlCreateButton("MedakUTD Beta"35264201330)
$Button3 GUICtrlCreateButton("MedakUTD DM+AWP"88104201330)
$Button4 GUICtrlCreateButton("MedakUTD DeathMatch"352104201330)
$Label1 GUICtrlCreateLabel("Medak Auto Login By BushilicA^"881646441)
GUICtrlSetFont(-1244000"MS Sans Serif")
GUICtrlSetColor(-10x0000FF)
GUICtrlSetBkColor(-10xFF0000)
$Input1 GUICtrlCreatelabel("Zelis Se Konektirati na svom serveru?Klikni Na Kopce : MyServer"2414438521)
$Button5 GUICtrlCreateButton("MyServer"432144169250)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Hotkeyset("{Delete}","quit")

hotkeyset("{End}","quit")
While 
1




$nMsg 
GUIGetMsg()
Switch 
$nMsg
Case $GUI_EVENT_CLOSE
Exit
Case 
$Button1
    
;ShellExecute("C:\......\.hl.exe") ;start the hl.exe
    
;ShellExecute(".\hl.exe") ;if your .exe is in the same folder
    WinWaitActive
("the windowname of hl.exe") ;wait for the window of cs


    msgbox
(0,"Program Startovan","Program Bice Pokrenut u 2 secunda",2)
    
sleep(2000)
    
winminimizeall()
    
mouseclick("left",38,17,2,5)
    
sleep(8000)
    
send("{`}")
    
sleep(500)
    
send("connect 217.26.212.50:27024")
    
send("{Enter}")
    
sleep(9000)
    
send("{Enter}")
    
sleep(1000)
    
send("{Enter}")
    
sleep(1000)
    
send("{Enter}")
    
sleep(5000)
    
send("{y}")
    
send("MedakUTD AutoLogin By Bushilica Visit Forum www.medakutd.com")
    
send("{Enter}")
    
sleep(5000)
    exit
case 
$Button2
    msgbox
(0,"Program Startovan","Program Bice Pokrenut u 2 secunda",2)
    
sleep(2000)
    
WinMinimizeAll()
    
mouseclick("left",38,17,2,5)
    
sleep(8000)
    
send("{`}")
    
send("connect 217.26.212.39:27043")
    
send("{Enter}")
    
sleep(9000)
    
send("{Enter}")
    
sleep(1000)
    
send("{Enter}")
    
sleep(1000)
    
send("{Enter}")
    
sleep(5000)
    
send("{y}")
    
send("MedakUTD AutoLogin By Bushilica Visit Forum www.medakutd.com")
    
send("{Enter}")
    
sleep(5000)
    exit
case 
$Button3
    msgbox
(0,"Program Startovan","Program Bice Pokrenut u 2 secunda",2)
    
sleep(2000)
    
WinMinimizeAll()
    
mouseclick("left",38,17,2,5)
    
sleep(8000)
    
send("{`}")
    
send("connect 91.150.72.227:27044")
    
send("{Enter}")
    
sleep(9000)
    
send("{Enter}")
    
sleep(1000)
    
send("{Enter}")
    
sleep(1000)
    
send("{Enter}")
    
sleep(5000)
    
send("{y}")
    
send("MedakUTD AutoLogin By Bushilica Visit Forum www.medakutd.com")
    
send("{Enter}")
    
sleep(5000)
    exit
case 
$Button4
    msgBox
(0,"Problem","Server Je Trenutno Ugasen")
    
sleep(3000)
    exit
case 
$Button5
    $cs 
Inputbox("IP","Koji Je Ip servera koga zelis da se konektujes","217.26.212.50:27024")
    
sleep(1000)
    
WinMinimizeAll()
    
mouseclick("left",38,17,2,5)
    
sleep(8000)
    
send("{`}")
    
send("connect ")
    
send($cs)
    
send("{Enter}")
    
sleep(9000)
    
send("{Enter}")
    
sleep(1000)
    
send("{Enter}")
    
sleep(1000)
    
send("{Enter}")
    
sleep(5000)
    
send("{y}")
    
send("AutoLogin By BushilicA")
    
send("{Enter}")
    
sleep(5000)
    Exit
EndSwitch
WEnd
Func quit
()
    exit 
0
    endfunc 
maxi39 is offline  
Reply


Similar Threads Similar Threads
Question about AutoIt
05/22/2010 - Dekaron - 6 Replies
Is there anyway to get autoit to move you to map co ordinates? i was trying to make a simple litte bot program using it. having some success but being to click on map co ordinates would be helpful. Thanks
[Autoit] A little question !
10/25/2009 - AutoIt - 5 Replies
EDIT: can someone make a code for me..i want to make a keypresser for silkroad(ksro).. and i want it to work only for sro...( controlsend() ) i need to press 1,2,3,4,5 If anyone can make a code for me..please put it here ! :D
[Question] AutoIt
10/24/2009 - 12Sky2 - 3 Replies
I was thinking about it and i saw a post made by Tri that AutoIt is blocked because XTrap / GG detects certain signatures and debugging signatures, is it possible to modify AutoIt scripts so that it isn't detected by Xtrap or GG so the scripts will run?
AutoIt Question
05/10/2008 - Conquer Online 2 - 31 Replies
Hey All, Some of you might know about the AutoTalker I released last week or so... I am now trying to make it work while minimized, and I stumbled on the ControlSend function. Now here is what I wrote $text being the text that we are trying to send... ControlSend("", "", "Edit1", "" &Hey All, Some of you might know about the AutoTalker I released last week or so... I am now trying to make it work while minimized, and I stumbled on the ControlSend function. Now here is what I wrote $text...
AutoIt Bot Question
03/29/2008 - Cabal Online - 6 Replies
Alrighty, so i have 2 AutoIt's, one running a Grind Bot and the other set to log out to character selection every 45 Minutes. Problem: Although its not likely it keeps happening, while my 45 minute bot opens the Main menu, my Grind Bot is clicking something other the character select before my 45 minute bot clicks character select. So now im setting there with my graphics menus open and my character standing there dieing and not fighting back + now i can be D/C'd. is there a way to get my...



All times are GMT +1. The time now is 23:46.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.