September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
|
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
static class Program
|
||||
{
|
||||
static void Main()
|
||||
{
|
||||
Rectangle bounds = Screen.PrimaryScreen.Bounds;
|
||||
Console.WriteLine($"Primary screen bounds: {bounds.Width}x{bounds.Height}");
|
||||
|
||||
Rectangle workingArea = Screen.PrimaryScreen.WorkingArea;
|
||||
Console.WriteLine($"Primary screen working area: {workingArea.Width}x{workingArea.Height}");
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
static class Program
|
||||
{
|
||||
static void Main()
|
||||
{
|
||||
using (var f = new Form() { FormBorderStyle = FormBorderStyle.None, WindowState = FormWindowState.Maximized })
|
||||
{
|
||||
f.Show();
|
||||
Console.WriteLine($"Size of maximized borderless form: {f.Width}x{f.Height}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/go-vgo/robotgo"
|
||||
)
|
||||
|
||||
func main() {
|
||||
w, h := robotgo.GetScreenSize()
|
||||
fmt.Printf("Screen size: %d x %d\n", w, h)
|
||||
fpid, err := robotgo.FindIds("firefox")
|
||||
if err == nil && len(fpid) > 0 {
|
||||
pid := fpid[0]
|
||||
robotgo.ActivePID(pid)
|
||||
robotgo.MaxWindow(pid)
|
||||
_, _, w, h = robotgo.GetBounds(pid)
|
||||
fmt.Printf("Max usable : %d x %d\n", w, h)
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
win = GtkWindow("hello", 100, 100)
|
||||
fullscreen(win)
|
||||
sleep(10)
|
||||
println(width(win), " ", height(win))
|
||||
destroy(win)
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
use X11::libxdo;
|
||||
|
||||
my $xdo = Xdo.new;
|
||||
|
||||
my ($dw, $dh) = $xdo.get-desktop-dimensions( 0 );
|
||||
|
||||
say "Desktop viewport dimensions: (maximum-fullscreen size) $dw x $dh";
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
Imports System.Drawing
|
||||
Imports System.Windows.Forms
|
||||
|
||||
Module Program
|
||||
Sub Main()
|
||||
Dim bounds As Rectangle = Screen.PrimaryScreen.Bounds
|
||||
Console.WriteLine($"Primary screen bounds: {bounds.Width}x{bounds.Height}")
|
||||
|
||||
Dim workingArea As Rectangle = Screen.PrimaryScreen.WorkingArea
|
||||
Console.WriteLine($"Primary screen working area: {workingArea.Width}x{workingArea.Height}")
|
||||
End Sub
|
||||
End Module
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
Imports System.Drawing
|
||||
Imports System.Windows.Forms
|
||||
|
||||
Module Program
|
||||
Sub Main()
|
||||
Using f As New Form() With {
|
||||
.WindowState = FormWindowState.Maximized,
|
||||
.FormBorderStyle = FormBorderStyle.None
|
||||
}
|
||||
|
||||
f.Show()
|
||||
Console.WriteLine($"Size of maximized borderless form: {f.Width}x{f.Height}")
|
||||
End Using
|
||||
End Sub
|
||||
End Module
|
||||
Loading…
Add table
Add a link
Reference in a new issue