Jump to content

Recommended Posts

Posted (edited)

Hello everyone,

So I have a script that needs to run a program :

ShellExecuteWait("tsconfig.msc")

But I was unable to run it, I found out because it was 64x program so I run this command :

DllCall("kernel32.dll", "boolean", "Wow64EnableWow64FsRedirection", "boolean", 0)

Now I am able to run it, but I am unable to interact it with it in any way:

Case $BClose
            DllCall("kernel32.dll", "boolean", "Wow64EnableWow64FsRedirection", "boolean", 0)
            ShellExecuteWait("tsconfig.msc")
            Sleep(100)
            WinActivate("Remote Desktop Session Host Configuration")
            Send("{ENTER}")

When I close the tsconfig program then the script continue and press that enter, but before close in it , it just stops !!

Edited by Nas

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
  • Recently Browsing   0 members

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