Sign in to follow this  
Followers 0
Mumms

Ingame Auto Response

5 posts in this topic

#1 ·  Posted (edited)

This Little Script Auto Starts your game and then runs in the background, Every Time someone does "@yourword" ingame, Everyone who is running your script will respond with an auto message. Thats what its suppose to do anyways.

#include <Date.au3>

$color1 = Random(0,10)
$color1 = Floor($color1)

HotKeySet("{f3}", "bind")
HotKeySet("{f5}", "_Exit")

If FileExists("SoF2MP-Test.exe") Then
    $answer = MsgBox(1, "[!] Dinks Clan", "Dinks Clan Checker" & @CRLF & " " & @CRLF & "www.dinksclan.com" & @CRLF & " " & @CRLF & "Made By: Trime`")
    If $answer = 2 Then
        Exit
    EndIf
Else
    MsgBox(16, "[!] Dinks Clan", "Please Place Me In Your Main Sof2 Directory")
    Exit
EndIf   
Run("SoF2MP-Test.exe")
WinWaitActive("SoF2 MP Test")

While 1
Sleep(1000)
If WinGetText("SoF2 MP Test", "") = "@dinks" Then
    bind()
    EndIf
WEnd

Func bind()
    Send("t")
    Send("^",1)
    Send($color1)
    Send("Testing... ")
    Send(_NowTime())
    Send("{ENTER}")
$color1 = Random(0,10)
$color1 = Floor($color1)
EndFunc
    
Func _Exit()
    Exit
EndFunc

This Is the part im having trouble with....
While 1
Sleep(1000)
If WinGetText("SoF2 MP Test", "") = "@dinks" Then
bind()
EndIf
WEnd

I can't get it to work, but what i want it to do is that if a user types @dinks while ingame, then you execute the bind() func.

Any help?

I know that this isnt the correct topic to put this is, but i feel that if i get this one part of my script working, it would be a nice little script for clans that want to make the bind represent thier clan :) (p.s This is my first script)

Edited by Mumms

Share this post


Link to post
Share on other sites



70 Views And No Help Yet? :)

Share this post


Link to post
Share on other sites

This is not a general support forum!

Share this post


Link to post
Share on other sites

I know that this isnt the correct topic to put this is, but i feel that if i get this one part of my script working, it would be a nice little script for clans that want to make the bind represent thier clan :) (p.s This is my first script)

Then you should make a separate thread in here when you get the script working. You also neglected to mention what game this is for??

Share this post


Link to post
Share on other sites

Then you should make a separate thread in here when you get the script working. You also neglected to mention what game this is for??

It Could Be Ran For Anygame if i get it working, but my script launches the Game " Soldier of Fortune 2 MP Test" Automaticly

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