magace Posted April 26, 2009 Share Posted April 26, 2009 hi there im working on a scipt for a game i use diablo 2 its quite easy just tells them to go to the ohter side of a wall then clicks on them but in the game if u type ! before a msg it does it over head instead of like where everyone can see so i need it to type !<<<<<<<<<<OtherSide this is what i came up with however its like the ! in the send command is ignored and it just types <<<<<<Otherside over and over ofc i still got timers and the click to add but this has to work to show them exsactly where to stand any help? Global $Paused HotKeySet("{END}", "TogglePause") HotKeySet("{HOME}", "Terminate") While 1 Sleep(10000) WEnd Func TogglePause() $Paused = NOT $Paused While $Paused SendKeepActive("SHIFT") Send("{ENTER}") Send("!<<<<<<<<<<OtherSide") Send("{ENTER}") WEnd EndFunc Func Terminate() Exit 0 EndFunc Link to comment Share on other sites More sharing options...
FinalVersion Posted April 26, 2009 Share Posted April 26, 2009 hi there im working on a scipt for a game i use diablo 2 its quite easy just tells them to go to the ohter side of a wall then clicks on them but in the game if u type ! before a msg it does it over head instead of like where everyone can see so i need it to type !<<<<<<<<<<OtherSide this is what i came up with however its like the ! in the send command is ignored and it just types <<<<<<Otherside over and over ofc i still got timers and the click to add but this has to work to show them exsactly where to stand any help? Global $Paused HotKeySet("{END}", "TogglePause") HotKeySet("{HOME}", "Terminate") While 1 Sleep(10000) WEnd Func TogglePause() $Paused = NOT $Paused While $Paused SendKeepActive("SHIFT") Send("{ENTER}") Send("!<<<<<<<<<<OtherSide") Send("{ENTER}") WEnd EndFunc Func Terminate() Exit 0 EndFuncWhy the big sleep in the loop? While 1 Sleep(100) WEnd [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
magace Posted April 26, 2009 Author Share Posted April 26, 2009 it still doesent type the ! like i need it to tho Link to comment Share on other sites More sharing options...
storme Posted April 26, 2009 Share Posted April 26, 2009 Maybe the script is just to quick and the ! is being lost. I'd suggest you do some simple tests Try Send("1234567890")oÝ÷ Ù©Ýr'íí]Æ©¥æ«°ì¢Ø^§]jÉ^z§~º'¶íë×è¯Zµëޮئ{*.çü¨¹Ú'ßÛe¢Çíméí¯&®¶se6VæBgV÷C³"b333³3Bb333³Sbb333³sb333³gV÷C² if the !'s disappear then you are in trouble as the program is removing them and I have no idea how to fix it. Good Luck John Morrison Some of my small contributions to AutoIt Browse for Folder Dialog - Automation SysTreeView32 | FileHippo Download and/or retrieve program information | Get installedpath from uninstall key in registry | RoboCopy function John Morrison aka Storm-E Link to comment Share on other sites More sharing options...
Canasian Posted April 26, 2009 Share Posted April 26, 2009 Try this. Global $Paused HotKeySet("{END}", "TogglePause") HotKeySet("{HOME}", "Terminate") While 1 Sleep(10000) WEnd Func TogglePause() $Paused = NOT $Paused While $Paused SendKeepActive("SHIFT") Send("{ENTER}") Send("{!}") Send("<<<<<<<<<<OtherSide") Send("{ENTER}") WEnd EndFunc Func Terminate() Exit 0 EndFunc Link to comment Share on other sites More sharing options...
storme Posted April 26, 2009 Share Posted April 26, 2009 DOH! I should remember to RTFM before I give advice. I just did a quick check in the "help file" and right at the top of the list of special codes Send Command {!} Resulting Keypress ! Sigh Thanks Canasian for correcting my mistake! John Morrison Some of my small contributions to AutoIt Browse for Folder Dialog - Automation SysTreeView32 | FileHippo Download and/or retrieve program information | Get installedpath from uninstall key in registry | RoboCopy function John Morrison aka Storm-E Link to comment Share on other sites More sharing options...
magace Posted April 26, 2009 Author Share Posted April 26, 2009 perfect works great now i can finish it not sure how i cna target players yet may just make it click ina few places 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