Xait Posted November 26, 2009 Share Posted November 26, 2009 Hi. I have a script that is basicly a teamspeak launcher. I choose a server and it connects to the server, at the moment it works by using mouse movements after teamspeak.exe is run. How can I add parameters to the run command so I can make it auto login on launch. so It would look something like Run("c:\program files\teamspeak\teamspeak.exe "192.168.1.1?mylogin?mypassword?channelname"") I tried that but when I put it in double double, double quotes it chucks out an error at me. What do I have to do to make it work? :-) Thanks Wez Link to comment Share on other sites More sharing options...
hxhjx Posted November 26, 2009 Share Posted November 26, 2009 from the manual:You can mix quote types to make for easier working and to avoid having to double-up your quotes to get what you want. For example if you want to use a lot of double-quotes in your strings then you should use single-quotes for declaring them: 'This "sentence" contains "lots" of "double-quotes" does it not?'regards hxhjx Link to comment Share on other sites More sharing options...
dantay9 Posted November 26, 2009 Share Posted November 26, 2009 For me, that gets confusing to look at. What I do is I split up the string into segments. Like this: MsgBox(0, "", '"' & "Double Quotes" & '"') I just think it's easier to look at and visualize. Link to comment Share on other sites More sharing options...
hxhjx Posted November 26, 2009 Share Posted November 26, 2009 (edited) well its not that complicated. in this particular case it would be: Run('c:\program files\teamspeak\teamspeak.exe "192.168.1.1?mylogin?mypassword?channelname"') regards hxhjx Edited November 26, 2009 by hxhjx Link to comment Share on other sites More sharing options...
dantay9 Posted November 26, 2009 Share Posted November 26, 2009 Just a suggestion for future use. It is more useful when the quotes are in the middle of the string. Link to comment Share on other sites More sharing options...
Xait Posted November 26, 2009 Author Share Posted November 26, 2009 Thanks for the help people (Y) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now