Sign in to follow this  
Followers 0
sensalim

Having problem with Run() and ShellExecute()

12 posts in this topic

Start > run > "C:\Program Files\Citrix\GoToMeeting\198\g2mstart.exe" "/Action Host" > enter

Gotomeeting runs and asks if I want to host a meeting or schedule one.

This is what I want.

I tried to do this in AutoIt's Run() and ShellExecute() but it's not working.

It doesn't do the "/Action Host" at all.

Help?

Thanks.

Share this post


Link to post
Share on other sites



No sry, it opened a quick cmdline window then closes.

Nothing happens.

Share this post


Link to post
Share on other sites

Run(@comspec & ' /c "C:\Program Files\Citrix\GoToMeeting\198\g2mstart.exe"&" /Action Host"')

What about that?

Share this post


Link to post
Share on other sites

No, same thing. Hm...

Share this post


Link to post
Share on other sites

Try this.

ShellExecute(@ProgramFilesDir & "\Citrix\GoToMeeting\198\g2mstart.exe", "/Action Host")

I don't remember for sure if the "/" is required in the second parameter or not but you can try removing it if tis doesn't work.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

No sorry, it does nothing. Tried both with and without / in /Action

:/

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Try this(as a test). Make a bat file that does "C:\Program Files\Citrix\GoToMeeting\198\g2mstart.exe" "/Action Host" and Run() that.

Also, what happens if you type that in from a cmd window?

Edited by spudw2k

Share this post


Link to post
Share on other sites

It does nothing from cmd window...

I typed in

cd\progra~1\citrix\gotomeeting\198\

g2mstart.exe /action host

...nothing.

Made batch file, run it... nothing.

Weird. It works from start > run...

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

One more idea;

$App = FileGetShortName (@ProgramFilesDir & "\Citrix\GoToMeeting\198\g2mstart.exe")
Run($App & " /action host")

or

$App = FileGetShortName (@ProgramFilesDir & "\Citrix\GoToMeeting\198\g2mstart.exe")
Run($App & ' "/action host"')
Edited by GEOSoft

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

No go.

How about:

- run a shortcut (.lnk file)

- or send() that opens the windows START > then run > type in the thing.

?

Edit:

Ok it works.

ShellExecute(@ScriptDir & "\GoToMeeting.lnk")

where the .lnk file is the "...... g2mstart.exe /action host" stuff.

Thanks all.

...

Still I don't know how to open the START.

Send("{APPSKEY}") is not it.

Help?

Edited by sensalim

Share this post


Link to post
Share on other sites

Look within the properties of the shortcut and you may see a "Start in:" which sets the working directory sent to the executable file. You may need to do the same when you run a file in AutoIt3.

$path = @ProgramFilesDir & '\Citrix\GoToMeeting\198'
Run('"' & $path & '\g2mstart.exe" "/Action Host"', $path)

IMO, it is strange how "/Action Host" has quotes around them. You may want to check if the quotes are supposed to be there.

:)

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