hefty Posted April 8, 2006 Share Posted April 8, 2006 HotKeySet("{Home}", "Kill") If WinExists ("Guild Wars") Then WinActivate ("Guild Wars") WinWaitActive ("Guild Wars") Sleep(595) Opt("SendKeyDelay", 0) Sleep(0) Send("{ENTER}") Send("Press Home to run the bot.") Send("{ENTER}") Else MsgBox(64, "Information", "Need to have GW Loaded.") Exit EndIf Func Kill() Send( "c" ) sleep( 5000 ) MouseClick ( "left", 385, 51, 2, 1 ) sleep( 5000 ) Send( "{SPACEBAR}" ) sleep( 5000 ) EndFunc Link to comment Share on other sites More sharing options...
cdkid Posted April 8, 2006 Share Posted April 8, 2006 (edited) HotKeySet("{Home}", "Kill") If WinExists ("Guild Wars") Then WinActivate ("Guild Wars") WinWaitActive ("Guild Wars") Sleep(595) Opt("SendKeyDelay", 0) Sleep(0) Send("{ENTER}") Send("Press Home to run the bot.") Send("{ENTER}") Else MsgBox(64, "Information", "Need to have GW Loaded.") Exit EndIf Func Kill() Send( "c" ) sleep( 5000 ) MouseClick ( "left", 385, 51, 2, 1 ) sleep( 5000 ) Send( "{SPACEBAR}" ) sleep( 5000 ) EndFunc Try HotKeySet("{Home}", "Kill") If WinExists ("Guild Wars") Then WinActivate ("Guild Wars") WinWaitActive ("Guild Wars") Sleep(595) Opt("SendKeyDelay", 0) Sleep(0) Send("{ENTER}") Send("Press Home to run the bot.") Send("{ENTER}") Else MsgBox(64, "Information", "Need to have GW Loaded.") Exit EndIf While 1 Sleep(10000) WEnd Func Kill() Send( "c" ) sleep( 5000 ) MouseClick ( "left", 385, 51, 2, 1 ) sleep( 5000 ) Send( "{SPACEBAR}" ) sleep( 5000 ) EndFunc The infinite loop ( while 1...WEnd ) keeps the script going until you exit it Edited April 8, 2006 by cdkid AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide! Link to comment Share on other sites More sharing options...
Infinitex0 Posted April 8, 2006 Share Posted April 8, 2006 So what you want it to do is fool someone into thinking that HOME wil start a bot, but in reality it closes guildwars? correct me if I'm wrong. The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center] Link to comment Share on other sites More sharing options...
cdkid Posted April 8, 2006 Share Posted April 8, 2006 Or maybe, it's just an easy way for him to quit GW, who says he'll be distributing it? It may just be like a manual "chicken" program. Don't always assume the worst from people. ~cdkid AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide! Link to comment Share on other sites More sharing options...
hefty Posted April 8, 2006 Author Share Posted April 8, 2006 actually the c targets a monster and space bar makes me attack it. Link to comment Share on other sites More sharing options...
Infinitex0 Posted April 9, 2006 Share Posted April 9, 2006 Oh just the kill function got me thinking of killing the program (winkill) SORRY The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now