Jump to content

Recommended Posts

Posted

Hi, 

I am automating some function of "3d builder" application in windows 10. How can I get it's version before doing any action.

Thanks 

Juthika

Capture.PNG

Posted

This should probably be moved to GH&S, and I am not usually one for just handing out solutions... please ensure that follow up questions come with code you have attempted yourself and not just screenshots of the app you are trying to automate (as that will likely never be helpful).

#include <AutoItConstants.au3>

$pid = run('cmd /c powershell "Get-AppxPackage -name Microsoft.3DBuilder | select -expandproperty version"' , @SystemDir , @SW_HIDE , $STDOUT_CHILD)

$sOut = ""

While 1
$sOut &= StdoutRead($pid)
If @error Then ExitLoop
WEnd

msgbox(0, '' , $sOut)

 

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

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