zac23 Posted June 29, 2009 Share Posted June 29, 2009 Hi, So i got this script MSTSC() Func MSTSC() Run("MSTSC.EXE") Sleep(500) Send("10.1.1.3" & "{enter}") EndFunc Exit its very simple and works when i run the script, but when i compile it something goes wrong, it opens up hundreds of mstsc processes and prety much crashes the PC, what do i need to add to stop this happening? Helpfile search keywords or any tips would be much apriciated. Thanks for any help, Zac, Link to comment Share on other sites More sharing options...
DCCD Posted June 29, 2009 Share Posted June 29, 2009 MSTSC() Func MSTSC() Run("MSTSC.EXE") Sleep(500) Send("10.1.1.3" & "{enter}") EndFunc Exit There's no problem! [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
zac23 Posted June 29, 2009 Author Share Posted June 29, 2009 (edited) Did you try compile it? haha coz i did twice and theres something in the includes that it adds when you compile that is messing it up, EDIT: i tried again same result Edited June 29, 2009 by zac23 Link to comment Share on other sites More sharing options...
DCCD Posted June 29, 2009 Share Posted June 29, 2009 Did you try compile it? haha coz i did twice and theres something in the includesthat it adds when you compile that is messing it up,Of course!! I am not a mind reader,, full script please [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
water Posted June 29, 2009 Share Posted June 29, 2009 (edited) Works fine for me. I'm running AutoIt 3.3.0.0 on Windows XP SP 2. I did the compile from SciTe using F7 (build) and Ctrl-F7 (compile) with obfuscator. When running obfuscator I get message "Aut2exe.exe ended errors because the target exe wasn't created, abandon build.rc:9999" I tried 3.3.1.1 Beta (without obfuscator) and it works fine as well! Edited June 29, 2009 by water My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
DCCD Posted June 29, 2009 Share Posted June 29, 2009 elseMSTSC() Func MSTSC() RunWait('"' & @ComSpec & '" /c MSTSC.EXE C:/yourfile.rdp', '', @SW_HIDE) EndFunc ;==>MSTSCremote desktop file = yourfile.rdpread more : http://support.microsoft.com/kb/941641. [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
herewasplato Posted June 29, 2009 Share Posted June 29, 2009 I do not think that you will need @ComSpec. What is wrong with running the MSTSC.EXE directly? Or even Shellexecute the rdp file... [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
herewasplato Posted June 29, 2009 Share Posted June 29, 2009 (edited) ... it opens up hundreds of mstsc processes and prety much crashes the PC, what do i need to add to stop this happening? ...Try naming your compiled script something other than mstsc.exeEdit: Or if this were Jeopardy - my answer in the form of a question would be:Did you name your compiled script mstsc.exe? Edited June 30, 2009 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
spudw2k Posted June 29, 2009 Share Posted June 29, 2009 (edited) Or MSTSC() Func MSTSC($ip = "127.0.0.1") Return Run(@WindowsDir & "\system32\mstsc.exe /v:" & $ip,"",@SW_HIDE) EndFunc Exit Edited June 29, 2009 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...
zac23 Posted June 29, 2009 Author Share Posted June 29, 2009 Try naming your compiled script something other than mstsc.exeEdit: Or if this were Jeopardy - my answer in the form of a question would be:Did you name you compiled script mstsc.exe?Thanks herewasplato i was nameing it mstsc and thts what was causeing the script to go crazy god im a noob haha, thanks everyone for the help, Zac, 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