sensalim Posted April 7, 2008 Share Posted April 7, 2008 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. Link to comment Share on other sites More sharing options...
Developers Jos Posted April 7, 2008 Developers Share Posted April 7, 2008 try: Run(@comspec & ' /c "C:\Program Files\Citrix\GoToMeeting\198\g2mstart.exe" "/Action Host"') SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
sensalim Posted April 7, 2008 Author Share Posted April 7, 2008 No sry, it opened a quick cmdline window then closes. Nothing happens. Link to comment Share on other sites More sharing options...
NELyon Posted April 7, 2008 Share Posted April 7, 2008 Run(@comspec & ' /c "C:\Program Files\Citrix\GoToMeeting\198\g2mstart.exe"&" /Action Host"') What about that? Link to comment Share on other sites More sharing options...
sensalim Posted April 7, 2008 Author Share Posted April 7, 2008 No, same thing. Hm... Link to comment Share on other sites More sharing options...
GEOSoft Posted April 7, 2008 Share Posted April 7, 2008 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!" Link to comment Share on other sites More sharing options...
sensalim Posted April 7, 2008 Author Share Posted April 7, 2008 No sorry, it does nothing. Tried both with and without / in /Action :/ Link to comment Share on other sites More sharing options...
spudw2k Posted April 7, 2008 Share Posted April 7, 2008 (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 April 7, 2008 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
sensalim Posted April 7, 2008 Author Share Posted April 7, 2008 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... Link to comment Share on other sites More sharing options...
GEOSoft Posted April 8, 2008 Share Posted April 8, 2008 (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 April 8, 2008 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!" Link to comment Share on other sites More sharing options...
sensalim Posted April 8, 2008 Author Share Posted April 8, 2008 (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 April 8, 2008 by sensalim Link to comment Share on other sites More sharing options...
MHz Posted April 9, 2008 Share Posted April 9, 2008 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. 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