I was looking at making a little helper app for Windows that will take an
image on your clipboard and ensure it is under 8MB for posting to discord,
and if it isn't, use Pillow to resize it until it is the right size.
I can use Pillow's ImageGrab.grabclipboard() to get the image off the
clipboard,
Mriswithe wrote:
I was looking at making a little helper app for Windows that will take
an image on your clipboard and ensure it is under 8MB for posting to
discord, and if it isn't, use Pillow to resize it until it is the
right size.
I can use Pillow's ImageGrab.grabclipboard() to get the
On Wed, 11 Aug 2021 18:33:14 -0500, Mriswithe
declaimed the following:
>
>Is there a bit of an idiots example guide for how to say, put a PNG on the
>clipboard or a JPG? Some example code? There is a ton of useful info in the
>pywin32 repo, but I haven't found anything that has made this click fo
Awesome, thank you so much for that info. That makes my tail chasing make
more sense! Thanks for saving me from additional posterior extension
pursuit.
Last question I think, how do I put a file path reference on the clipboard
similar to in explorer selecting a few files and hitting control c ?
I
ys("%{TAB}");
##Win32::GuiTest::SendKeys("^{V}");
##Win32::GuiTest::SendMessage($fhwnd,0x100,VK_HOME,0);
##Win32::GuiTest::SendMessage($fhwnd,0x100,VK_SHIFT,0);
##пока не работает :(
}
From: python-win32
On Behalf Of Mriswithe
Sent: Thursday, August 12, 2021 8:
egroundWindow;
global fhwnd
set fhwnd [twapi::get_foreground_window]
}
proc after_put {} {
global fhwnd
twapi::set_foreground_window $fhwnd
##Win32::GuiTest::SendKeys("%{TAB}");
##Win32::GuiTest::SendKeys("^{V}");
##Win32::GuiTest::SendMessage($fhwnd,0x100,VK_HOME