Jump to content

Sending text to console


Recommended Posts

Ok here is the scenario:

My clan has a halo dedicated server. The dedicated console looks like a command prompt. The title of it is Halo Console (1)

I can script up a script that will send the text: sv_say "Test" to it.

I compiled it to exe. I am a expert mIRC scripter so I know what I am doing for mIRC. I have mIRC run the exe on command of !eg haloce.

If I remote into the server and am staring at the screen, and someone executes it remotely, it works fine. If I execute it locally it works fine. If I have remote minimized or closed it doesn't work. I have figured that it isn't mIRC and it does run the file, just nothing happens.

WinActivate("Halo Console (1)")
Send("sv_say ""Test""")
Link to post
Share on other sites

Ok here is the scenario:

My clan has a halo dedicated server. The dedicated console looks like a command prompt. The title of it is Halo Console (1)

I can script up a script that will send the text: sv_say "Test" to it.

I compiled it to exe. I am a expert mIRC scripter so I know what I am doing for mIRC. I have mIRC run the exe on command of !eg haloce.

If I remote into the server and am staring at the screen, and someone executes it remotely, it works fine. If I execute it locally it works fine. If I have remote minimized or closed it doesn't work. I have figured that it isn't mIRC and it does run the file, just nothing happens.

WinActivate("Halo Console (1)")
Send("sv_say ""Test""")

<{POST_SNAPBACK}>

Hi :idiot: This is a exampel from Larrys Scripwriter Download it and test self very easy and nice this tool i hope this help you :D

Check this Link for Downloading http://www.autoitscript.com/autoit3/scite/...iTe4AutoIt3.exe

Opt("WinWaitDelay",100)

Opt("WinTitleMatchMode",4)

Opt("WinDetectHiddenText",1)

Opt("MouseCoordMode",0)

WinWait("Red Bull - Nachrichtensitzung","&Senden")

If Not WinActive("Red Bull - Nachrichtensitzung","&Senden") Then WinActivate("Red Bull - Nachrichtensitzung","&Senden")

WinWaitActive("Red Bull - Nachrichtensitzung","&Senden")

Sleep(1000)

Send("hello")

Sleep(1000)

Send("hello you")

Edited by DirtyBanditos
Link to post
Share on other sites

This should check to see if the window is minimized, and restore it, if it is.

$state = WinGetState("Halo Console (1)")
If BitAND($state, 16) Then WinSetState("Halo Console (1)", "", @SW_RESTORE)
WinActivate("Halo Console (1)")
Send("sv_say ""Test""")

Link to post
Share on other sites

Hmm, I implymented your script, but it is still a no go. It works fine when I am looking at it, but when I don't have a remote connection to the server nothing happens.

I have also tried scriptit before this, and the same exact things happen.

Any way I can send it to the hwnd?

And, wtf is DirtyBanditos talking about?

Link to post
Share on other sites
  • 2 months later...

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...