• [^] # Re: Pas sûr de tout comprendre

    Posté par . En réponse au journal Pourquoi Windows. Évalué à 0.

    La colle que tu sembles chercher s'appelle PowerShell.

    C'est ce qui te permet de génerer une vue de cette API.

    C'est pas sémantique par hasard.

    http://www.systanddeploy.com/2016/01/powershell-gui-add-mahapps-metro-theme.html

    ShowUi est un wrapper qui fait de la génération de code en interrogant le système.

    Writing a Drag and Drop Video Player in 12 lines of script
    Building a quick Twitter client in ShowUI Writing a Drag and Drop Video Player in 12 lines of script

    http://show-ui.com/Fun%20With%20ShowUI%20Videos/

    New-Window -AllowDrop -On_Drop {
    $videoPlayer.Source = @($_.Data.GetFileDropList())[0]
    $videoPlayer.Play()
    } -On_Loaded {
    $videoPlayer.Source = Get-ChildItem -Path "$env:Public\Videos\Sample Videos" -Filter *.wmv |
    Get-Random | Select-Object -ExpandProperty Fullname
    $videoPlayer.Play()
    } -On_Closing {
    $videoPlayer.Stop()
    } -Content {
    New-MediaElement -Name VideoPlayer -LoadedBehavior Manual
    } -asjob