KyleB

Scripting Teamspeak

12 posts in this topic

So i'v been trying everything to launch teamspeak but, nothing seems to work. Any suggestions would be greatly appreciated.

local $TeamSpeak = "C:\Program Files (x86)\TeamSpeak 3 Client\ts3client_win32.exe"
Run($TeamSpeak)

 

Share this post


Link to post
Share on other sites



That worked, Mind explaining why?

Share this post


Link to post
Share on other sites

In my experience Shellexecute works better for programs where Run is more for batch files and commandline stuff.

Maybe a Dev will show up and elaborate...

I just go for what works not always knowing why :P

1 person likes this

Share this post


Link to post
Share on other sites

Hello. Probably because Run use CreateProcess and pass null as ApplicationName. Instead it use the CommandLine parameter that do the first white space–delimited token of the command line specifies the module name.

 

Saludos

Share this post


Link to post
Share on other sites

Other question is when its launched, its not focused on it. I'm attempting to use a shortcut to bring up a tab within the application and it doesn't seem to be working. i'm currently trying this:

local $TeamSpeak = "C:\Program Files (x86)\TeamSpeak 3 Client\ts3client_win32.exe"
ShellExecute($TeamSpeak)
WinWait("TeamSpeak 3")
Send("^s")

Ctrl S is the shortcut for the connection tab, should i be doing it this way or is there a way to specifically click that button.

Share this post


Link to post
Share on other sites

@KyleB hover over the button you want to press with the AutoIt Window Info Tool (in the same directory where you installed AutoIt). What information does it show you (post a screenshot if you're able).


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

There are two tabs Both "Connections" & "Connect" which brings up the prompt.

TS.png

Share this post


Link to post
Share on other sites

I'm currently trying to script Teamspeak to login automatically, So far i'v achieved Launching the program but, every attempt to use "CTRL S" or even click on the point to bring up connecting to a server it fails to work.

First Attempt:

local $TeamSpeak = "C:\Program Files (x86)\TeamSpeak 3 Client\ts3client_win32.exe"
ShellExecute($TeamSpeak)
WinWait("TeamSpeak 3", "", 10)
Send("^S")

 Second Attempt:

local $TeamSpeak = "C:\Program Files (x86)\TeamSpeak 3 Client\ts3client_win32.exe"
ShellExecute($TeamSpeak)
AutoItSetOption("MouseCoordMode", 0)

WinWait("TeamSpeak 3")
WinActivate("TeamSpeak 3")
MouseClick("primary", 110, 72, 1, 0)

Any advice on solving this problem would be appreciated.

Share this post


Link to post
Share on other sites

Hello. You dont need to create a second thread for asking the same question.

I think you can do it using commandline parameter as @l3ill Suggested in the other thread.

 

Saludos

Share this post


Link to post
Share on other sites

As has been stated, stick to one thread. Posting all over the forum is not going to get you help any faster.


√-1 2^3 ∑ π, and it was delicious!

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