Hi all,
My clipboard changes very often and I'd like to be able to see whats in it. How easy would it be to write a simple permanent GUI that could stay on the desktop and display the current contents. If its not possible to use a hook / realtime update perhaps a 1 second polling rate could work? Just a spitball idea, feel free to point me in the right direction instead of sample / complete code if you please. Cheers
Adding a simple GUI to display clipboard contents on desktop Topic is solved
-
- Posts: 24
- Joined: 12 Feb 2017, 23:26
Re: Adding a simple GUI to display clipboard contents on desktop Topic is solved
Code: Select all
Gui New, +AlwaysOnTop, Clip Viewer
Gui Add, Edit, w300 R10 ReadOnly +HWNDhEdit
Gui Show, AutoSize
OnClipboardChange("Update")
Update(type) {
global hEdit
if (type != 2)
GuiControl Text, % hEdit, % Clipboard
}
GuiClose:
ExitApp
-
- Posts: 24
- Joined: 12 Feb 2017, 23:26
Re: Adding a simple GUI to display clipboard contents on desktop
This seems to auto close when opened. Also is it possible to make it non minimizeable and persist in tray instead of in taskbar?swagfag wrote: ↑13 Oct 2018, 23:13Code: Select all
Gui New, +AlwaysOnTop, Clip Viewer Gui Add, Edit, w300 R10 ReadOnly +HWNDhEdit Gui Show, AutoSize OnClipboardChange("Update") Update(type) { global hEdit if (type != 2) GuiControl Text, % hEdit, % Clipboard } GuiClose: ExitApp
Re: Adding a simple GUI to display clipboard contents on desktop
yeah it autocloses. ive deleted the hotkey i used to test it with and forgot to add the #Persistent directive, so u can go ahead and do that
u can add the +ToolWindow option to the GUI to get rid of the taskbar icon
u can add the +ToolWindow option to the GUI to get rid of the taskbar icon
Re: Adding a simple GUI to display clipboard contents on desktop
Hi Xproplayer,
These minor changes should address your concerns:Cheers!
These minor changes should address your concerns:
Code: Select all
Gui New, +AlwaysOnTop +Owner -MinimizeBox, Clip Viewer
Gui Add, Edit, w300 R10 ReadOnly +HWNDhEdit
Gui Show, AutoSize
OnClipboardChange("Update")
Return
Update(type) {
global hEdit
if (type != 2)
GuiControl Text, % hEdit, % Clipboard
}
GuiClose:
ExitApp
Windows 10 Pro (64 bit) - AutoHotkey v2.0+ (Unicode 64-bit)