Jump to content

auto-MSTSC


Recommended Posts

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

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 by zac23
Link to comment
Share on other sites

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 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 - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

... 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.exe

Edit: Or if this were Jeopardy - my answer in the form of a question would be:

Did you name your compiled script mstsc.exe?

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

Try naming your compiled script something other than mstsc.exe

Edit: 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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...