Jump to content

Hotkey Does Nothing


Recommended Posts

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

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 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

So what you want it to do is fool someone into thinking that HOME wil start a bot, but in reality it closes guildwars? :think:

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

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

Oh just the kill function got me thinking of killing the program (winkill)

SORRY :think:

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...