sora9003
|
  |
| Joined: 07 Apr 2009 |
| Total Posts: 87 |
|
|
| 07 Jul 2012 11:58 AM |
Is there anything I can use to detect the size or when the screen size changes?
|
|
|
| Report Abuse |
|
|
|
| 07 Jul 2012 12:05 PM |
| I suppose the Changed event and the AbsoluteSize property of ScreenGui would work. |
|
|
| Report Abuse |
|
|
|
| 07 Jul 2012 12:13 PM |
| Set the relative size to be 1 and then check the value of the AbsoluteSize. |
|
|
| Report Abuse |
|
|
LordBadcc
|
  |
| Joined: 02 Mar 2011 |
| Total Posts: 22 |
|
|
| 07 Jul 2012 12:47 PM |
| If you have a plugin or a tool, get their mouse and use the ViewSizeX and ViewSizeY properties, otherwise use one of the things that the users above posted. |
|
|
| Report Abuse |
|
|
sora9003
|
  |
| Joined: 07 Apr 2009 |
| Total Posts: 87 |
|
|
| 07 Jul 2012 06:50 PM |
| I mean the size of your actual screen not a gui |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 07 Jul 2012 06:54 PM |
Of the ROBLOX screen, or the actual screen resolution?
|
|
|
| Report Abuse |
|
|
|
| 07 Jul 2012 06:54 PM |
The screen size property of the mouse which LordBac mentioned does give the size in pixels of the screen, unless I am much mistaken.
-God Bless- |
|
|
| Report Abuse |
|
|
stravant
|
  |
 |
| Joined: 22 Oct 2007 |
| Total Posts: 2893 |
|
|
| 07 Jul 2012 07:41 PM |
"or the actual screen resolution?"
In that case, GG. Even from C++ finding out the screen resolution is quite a task. |
|
|
| Report Abuse |
|
|
|
| 07 Jul 2012 08:20 PM |
os.execute("WMIC DesktopMonitor get ScreenHeight") os.execute("WMIC DesktopMonitor get ScreenWidth")
|
|
|
| Report Abuse |
|
|
stravant
|
  |
 |
| Joined: 22 Oct 2007 |
| Total Posts: 2893 |
|
|
| 08 Jul 2012 12:10 PM |
@thelastbunny
I should have made that more clear. I mean the actual pixels-per-inch resolution. Getting the width and height in pixels is easy. |
|
|
| Report Abuse |
|
|
Garnished
|
  |
| Joined: 09 Apr 2012 |
| Total Posts: 12695 |
|
|
| 08 Jul 2012 03:56 PM |
| How and why would it change? |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2012 03:59 PM |
| Pixels per inch would be impossible unless you have a webcam to look at the screen with a ruler on it... |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2012 04:09 PM |
| Wrong. It would be difficult, as Stravant said, because the only conceivable way I can think of would be to have a large index with every consumer monitor ever. |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 08 Jul 2012 04:20 PM |
"the only conceivable way I can think of would be to have a large index with every consumer monitor ever."
There are various 3rd party libraries (such as sfml) that you could use. Also, I think you can do it with Visual C++, but VC++ applications will only run on Windows. |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2012 04:49 PM |
aHR0cDovL3N0YWNrb3ZlcmZsb3cuY29tL3F1ZXN0aW9ucy81OTkxNTQ2L2hvdy10by1nZXQtdGhlLWN1cnJlbnQtZHBpLW9mLWEtc3lzdGVtLWluLW1mYy1hcHBsaWNhdGlvbg==
:/ |
|
|
| Report Abuse |
|
|
sora9003
|
  |
| Joined: 07 Apr 2009 |
| Total Posts: 87 |
|
|
| 11 Jul 2012 09:04 AM |
Actually, all i really need is a way to detect when your screen size changes
|
|
|
| Report Abuse |
|
|
C0D3Y
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 1692 |
|
|
| 11 Jul 2012 09:16 AM |
http://www.roblox.com/Ultimate-Anti-Exploit-v0-3b-item?id=85332978
Trioxide did it here. This will help you. I took the script and found it incredibly annoying because of the fact that I often go on Roblox's main app while in-game or just on the Internet to listen to music and whenever I tested the script, it thought I was hacking... But this is what you're looking for I believe. |
|
|
| Report Abuse |
|
|