victorzakharov / pinwin Goto Github PK
View Code? Open in Web Editor NEW.NET clone of DeskPins software
License: MIT License
.NET clone of DeskPins software
License: MIT License
What about adding a left click option to the icon in the tray.
For example open the interface with left click or directly trigger the window selection.
For me nothing happens if i left click the icon, I have to right click and then select Open or I have to use the shortcut.
Hi. I have this problem where I use mutliple Windows accounts and can't start PinWin on a second account as it says the instance is already running.
Noticed on my laptop when docked to 2 external screens.
I tried to pin OBS but it crash instead.
I don't know if this will help, but this is what it gave me instead.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ComponentModel.Win32Exception (0x80004005): Error creating window handle.
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Form.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.Form.Show(IWin32Window owner)
at PinWin.Controls.PinForm.ShowSetOwnerHandle(Form form, IntPtr ownerHandle) in C:\Git\pinwin\PinWin\Controls\PinForm.cs:line 179
at PinWin.Controls.PinForm.Create(IntPtr parentHandle) in C:\Git\pinwin\PinWin\Controls\PinForm.cs:line 57
at PinWin.BusinessLayer.PinFormFactory.TryAddPinned(IntPtr handle) in C:\Git\pinwin\PinWin\BusinessLayer\PinFormFactory.cs:line 57
at PinWin.Controls.PinnedWindowListControl.TryAddWindowFromPoint(Point point) in C:\Git\pinwin\PinWin\Controls\PinnedWindowListControl.cs:line 57
at PinWin.MainForm.PinWindowPrompt() in C:\Git\pinwin\PinWin\MainForm.cs:line 128
at PinWin.MainForm.notifyIcon_Main_MouseUp(Object sender, MouseEventArgs e) in C:\Git\pinwin\PinWin\MainForm.cs:line 182
at System.Windows.Forms.NotifyIcon.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.NotifyIcon.WmMouseUp(Message& m, MouseButtons button)
at System.Windows.Forms.NotifyIcon.WndProc(Message& msg)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3801.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
PinWin
Assembly Version: 0.2.3.0
Win32 Version: 0.2.3
CodeBase: file:///C:/Program%20Files%20(x86)/PinWin/PinWin.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3801.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Newtonsoft.Json
Assembly Version: 10.0.0.0
Win32 Version: 10.0.3.21018
CodeBase: file:///C:/Program%20Files%20(x86)/PinWin/Newtonsoft.Json.DLL
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Hello.
The error occurs as follows:
After doing these steps, when focusing another application, Foxit Reader does not stay on top. This error does not happen with Ctrl+F11. (https://www.youtube.com/watch?v=7b_Kv9I-YWM)
I love this app, I hope the bug can be fixed easily.
Regards.
A user of Windows XP is unable to pin Tera Term software (which looks like a Putty clone to me) using PinWin. I reproduced in Windows 7 x64. When trying to pin Tera Term window, nothing happens. It is not added to list of windows in PinWin, the icon/handle doesn't show up and it's not on top of other windows like it should be.
This happen on Windows 10. I have not tested other versions.
Could it have something to do with this?
ApiSystemMetrics.Get(SystemMetric.SM_CXSIZE)
It returns 36 pixels when I debug the code, but when inspecting the minimize button I show it to be 47 pixels.
On Windows 10 if each monitor is using different DPI, screen capture window takes portion of the screen (limitation of existing design, will need to rework so that each monitor is covered by its own screen capture dialog).
I really like the program - is there a way to have another button that moves window to another monitor? I know that is not the concept of Pin but with dual monitors this would be a great feature.
Thanks
When I try to pin Vivaldi browser windows, the program has this unexpected error and crashes.
************** Exception Text **************
System.ComponentModel.Win32Exception (0x80004005): Error creating window handle.
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Form.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.Form.Show(IWin32Window owner)
at PinWin.Controls.PinForm.ShowSetOwnerHandle(Form form, IntPtr ownerHandle) in C:\Git\pinwin\PinWin\Controls\PinForm.cs:line 166
at PinWin.Controls.PinForm.Create(IntPtr parentHandle) in C:\Git\pinwin\PinWin\Controls\PinForm.cs:line 57
at PinWin.BusinessLayer.PinFormFactory.TryAddPinned(IntPtr handle) in C:\Git\pinwin\PinWin\BusinessLayer\PinFormFactory.cs:line 57
at PinWin.Controls.PinnedWindowListControl.TryAddWindowFromPoint(Point point) in C:\Git\pinwin\PinWin\Controls\PinnedWindowListControl.cs:line 57
at PinWin.MainForm.PinWindowPrompt() in C:\Git\pinwin\PinWin\MainForm.cs:line 128
at PinWin.MainForm.notifyIcon_Main_MouseUp(Object sender, MouseEventArgs e) in C:\Git\pinwin\PinWin\MainForm.cs:line 182
at System.Windows.Forms.NotifyIcon.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.NotifyIcon.WmMouseUp(Message& m, MouseButtons button)
at System.Windows.Forms.NotifyIcon.WndProc(Message& msg)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
It would be convenient to be able to add softwares to a list of windows that the user always want to see them "Always on Top".
All softwares on this list would automatically get pinned by PinWin after the user opens these softwares/windows.
As shown on my mock-up below, there could be a button to browse .exe files and another button to remove these softwares/windows from this list.
On this tab, the big SELECT WINDOW button would be used to directly add a window to make it AOT the next time that window is launched.
Thanks for tackling this project. I look forward to testing it out.
I tried to build, but I received a couple of errors due to missing files. The following files were missing:
Could you commit those two files? Or have I done something wrong during the build process?
Thanks!
I'm running Windows 10,Edge (44.18362.267.0)and pinwin 0.2.3 and there is some strangeness going on.
If I use pinwin on an Edge window it will work perfectly and the windows is TopMost.
BUT, if I change anything in Edge, e.g. moving the window, then TopMost is not working any more!
Any idea on what's the problem and how to fix it?
EDIT: It seems like it does this if I started a new Edge Windows by dragging a tab from the existing window and then move the pinned window
And the form is removed from the pinned list - need to see if possible to solve. Keep window pinned after it's minimized and restored. Alternatively, mark a window so that it's on-top status is restored when the window is restored. Not a critical issue, but nice to have.
Currently need to use CTRL+F11 to enter capture mode, then mouse click on a desired window. Can lose about a second there. Instead, if user knows the location, and are already hovering on top of it, no point to show capture overlay, just use mouse coordinates to add the pin.
Currently need to manually add into Startup folder. Would be nice to have an installer.
Will you use the releases section of github to publish them?
Hi.
Would it be possible to add other TargetWindowIcons to let the user decide which one he/she prefers?
The current target does the job but on a dark background (or over applications with a dark theme) this black TargetWindowIcon isn't that visible. It's not a real issue but it would be nice to have other icons choices.
May I suggest to add an option to choose between other icons? For example:
Version 2.4 fixed the problem for win32 apps only (#23), please fix it for UWP.
you could create an app like "TXMOUSE", it's a very useful app because it copies the text selection automatically and it's possible to paste it using the middle mouse button. but because it is very old, it has some conflicts with the windows interface, defects in which the mouse pointer is jumping. I would be very grateful.
http://fy.chalmers.se/~appro/nt/TXMouse/
Originally posted by @cleuton4k in #34 (comment)
Pin icons remains fixed on the screen, if target window is command prompt (cmd.exe). It is correctly positioned on top regardless. The issue seems to be affecting command prompt only (I confirmed under Windows 7). A Windows XP user also reported it freezing the command prompt window when trying to apply top most status.
PinWinInstaller_v0.2.5.0 doesn't run on Windows XP however PinWin_v0.2.5_binaries works just fine
Include version information, build date, github link, copyright and license details.
Highlight window borders in red, put application name and its window coordinates on top, live sync to mouse coordinates - or any combination of those (shown before user clicks anything), to help them pick a window.
Currently only mouse coordinates are shown when user moves the mouse in capture overlay, which was the initial debug information to help me build the product. Time to make this feature production-ready.
Just noticed this when making an installer, it's possible to start 2 or more instances of PinWin.
User can pin the overlay window with another overlay window, need to prevent that.
Need to explore a good way to store user settings, and the first 2 candidates would be custom bindings for CTRL+F11 (show capture overlay) and CTRL+F12 (pin window at cursor).
No point to capture them again, but just to have consistent UI / capture icon.
When attaching a pin to "Task Manager" window the Pinwin application crashes.
It happen when creating the Pin form GUI. With the exception message "Error creating window handle."
form.Show(nativeWindow);
When a shortcut of an executable (.exe) file is created, usually it's possible to customize the shortcut icon.
I tried to customize the PinWin.exe shortcut that I created, unfortunately, that executable file doesn't contain any icon.
Do you think it would be possible to add the black target and the red pin icons into the .exe ?
Thank you in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.