Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1016137 // ai_saySomethingAboutScreenSize

JavaX fragment (include)

sS ai_saySomethingAboutScreenSize() {
  if (headless()) ret "We're headless.";
  Dimension d = screenSize();
  ret "Your screen size is " + d.getWidth() + "*" + d.getHeight() + " pixels";
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016137
Snippet name: ai_saySomethingAboutScreenSize
Eternal ID of this version: #1016137/1
Text MD5: 05e0c3580f2d8609e52223adcc9c0340
Author: stefan
Category: javax / os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-06 21:06:39
Source code size: 193 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 403 / 427
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)