jparnell8839 / AlwaysOnTop

Make a Windows application always run on top
GNU General Public License v3.0
205 stars 40 forks source link

Add hotkey for toggling #2

Closed Keith94 closed 7 years ago

Keith94 commented 7 years ago

I'm looking for a hotkey-based solution for toggling always on top for windows. Can it be added here?

jparnell8839 commented 7 years ago

Good idea! I will try to implement this ASAP

jparnell8839 commented 7 years ago

Proposed for 0.3

jparnell8839 commented 7 years ago

I just released v. 0.3.0, which unfortunately did not include your enhancement request. I have re-written the project in C#, which makes it not as resource intensive and will hopefully allow me greater flexibility to implement your feature request.

Keith94 commented 7 years ago

All right. I couldn't get 0.3.0 to run btw, I think it crashes on startup.

jparnell8839 commented 7 years ago

Do you have .Net 4.5.2 installed? That would be the only prerequisite it needs... I'll take a look at it in a bit

Keith94 commented 7 years ago

Apparently it tells me: .NET Framework 4.5.2 or a later update is already installed on this computer.

jparnell8839 commented 7 years ago

All right. Could be a build issue. I'll take a look at it in a couple hours

jparnell8839 commented 7 years ago

Please try again with this attached version. It will likely crash still, but now there should be a file in the same location called AoT_Error.log when it does; I need that error log to see why it's crashing. AlwaysOnTop.zip

Keith94 commented 7 years ago

This is the contents:

2016.12.30 05:18:16 PM: Could not find file 'C:\Users\Keith\Downloads\AlwaysOnTop\icon.ico'.

jparnell8839 commented 7 years ago

Awesome, I figured out what it is; I overlooked one of the icon files and it wasn't embedded into the exe. I am syncing the build with GitHub now and will create a new release once it's available, 0.3.1

Keith94 commented 7 years ago

Can confirm it works.

jparnell8839 commented 7 years ago

Feature enabled with version 0.5.0. Please note: This will not work with Explorer shell windows or elevated (admin) windows. The Windows key cannot be assigned as a hotkey. Standard common hotkeys (such as Alt + Tab, Ctrl + V, etc) that are used almost globally in most Windows applications have been disabled.

Please advise if this works to your satisfaction, and if you have any issues, submit another Issue here on GitHub.

Thanks for your patience!