Jump to content

quick question


Recommended Posts

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

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
Why the big sleep in the loop?

While 1
Sleep(100)
WEnd
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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

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