[Bash] Terme pour agrandir une fenêtre
Arthur
-
scriptiz Messages postés 1494 Statut Membre -
scriptiz Messages postés 1494 Statut Membre -
Bonjour,
Je viens de commencer le bash, et je ne parviens pas à trouver le terme qui permet de maximiser une fenêtre. S'il existe, dites-le moi, s'il-vous-plait.
Arthur
Je viens de commencer le bash, et je ne parviens pas à trouver le terme qui permet de maximiser une fenêtre. S'il existe, dites-le moi, s'il-vous-plait.
Arthur
1 réponse
-
Avec Ubuiquity :
CmdUtils.CreateCommand({ name: "maximize", author: { name: "Vu Dinh The, Tony", email: "tonyvu2008@gmail.com"}, license: "MPL", description: "Maximize the browser window", help: "The command will attempt to maximize the browser window", preview: function( pblock ) { window_size = CmdUtils.getWindowInsecure().outerWidth + "x" + CmdUtils.getWindowInsecure().outerHeight; pblock.innerHTML = "Will maximize the window size" + "<br>Current window size: <i>" + window_size + "</i>"; }, execute: function() { //CmdUtils.getWindowInsecure().maximize(); CmdUtils.getWindowInsecure().outerWidth = CmdUtils.getWindowInsecure().screen.width; CmdUtils.getWindowInsecure().outerHeight = CmdUtils.getWindowInsecure().screen.height; CmdUtils.getWindowInsecure().moveTo(0, 0); } })
Source : https://tonychestnut.wordpress.com/2009/02/17/first-few-ubiquity-commands/