Jump to content
Sign in to follow this  
magace

quick question

Recommended Posts

magace

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

Share this post


Link to post
Share on other sites
FinalVersion

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

Share this post


Link to post
Share on other sites
magace

it still doesent type the ! like i need it to tho

Share this post


Link to post
Share on other sites
storme

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

Share this post


Link to post
Share on other sites
Canasian

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

Share this post


Link to post
Share on other sites
storme

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

Share this post


Link to post
Share on other sites
magace

perfect works great now i can finish it not sure how i cna target players yet may just make it click ina few places

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.