forked from PhoenicisOrg/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update virtual desktop Wine plugin (use Bean) (PhoenicisOrg#1073)
- adds a new script to access the "screenManager" Java Bean
- Loading branch information
Showing
4 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name" : "System Utils", | ||
"id" : "utils.functions.system", | ||
"description" : "Utils for system interaction." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const screenManager = Bean("screenManager"); | ||
|
||
/** | ||
* Obtains the width of user's screen | ||
* @returns {number} width of user's screen in pixels | ||
*/ | ||
function getScreenWidth() { | ||
return screenManager.getScreenWidth(); | ||
} | ||
|
||
/** | ||
* Obtains the height of user's screen | ||
* @returns {number} height of user's screen in pixels | ||
*/ | ||
function getScreenHeight() { | ||
return screenManager.getScreenHeight(); | ||
} | ||
|
||
module.getScreenWidth = getScreenWidth; | ||
module.getScreenHeight = getScreenHeight; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"scriptName" : "virtual desktop", | ||
"id" : "utils.functions.system.virtual_desktop", | ||
"compatibleOperatingSystems" : [ | ||
"MACOSX", | ||
"LINUX" | ||
], | ||
"testingOperatingSystems" : [], | ||
"free" : true, | ||
"requiresPatch" : false | ||
} |