Jump to content

Recommended Posts

Posted

Is there any way to create a script that will execute, hidden in the background (non-desktop session) and still be able to interact with Windows control panel applets? I'm trying to create one that launches the Set Default Programs control panel applet, send some keystrokes and such, then close. Unfortunately, it only seems to work when the script is executed in the desktop session...making it visible to everyone. Thanx.

Posted

Hello,

Instead of GUI automation for this task, why not use the FTYPE or ASSOC commands? That would be easy to automate.

Have a look here:  https://social.technet.microsoft.com/Forums/ie/en-US/06d35f90-56cb-4dec-b326-bd471d06acee/change-default-program-for-file-command-line-or-registry?forum=w7itprogeneral

Or perhaps even look into editing the registry directly? I think if you search the forums this has been answered before.

Always carry a towel.

  • Developers
Posted

@StMaSi,

You aren't to clear about what exactly you want to do while you seem to have tested something.
What about you be cleared and share what you have that in't working so we are in a better position to assist?

Jos

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.
  :)

Posted

Finally figured it out. Used a local variable to store the run command and just referenced said variable with the winwait and winactivate functions. Thanx.

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
×
×
  • Create New...