Giter VIP home page Giter VIP logo

movetodesktop's Introduction

MoveToDesktop PayPal donate button Gittip donate button Flattr Join the chat at https://gitter.im/Eun/MoveToDesktop

Adds the Move to Desktop feature to the Windows 10 System menu:

Download

Installation Usage

Download and Run.
You can also move windows by using WIN+ALT+Left/Right

Hint
It is useful to start MoveToDesktop as Administrator.
If you do so, MoveToDesktop is also enabled for privileged tasks.
For starting MoveToDesktop on logon the prefered way is to create a scheduled task. See how.

Settings

You can place the MoveToDesktop.ini into %AppData% and modify the settings in it.
A restart of the application is required.

Changelog

1.4:

  • Update for Windows 10 Anniversary (14393)

1.3:

  • Delete empty desktops
  • Bugfix Issue #8
  • No Redistributable needed anymore #12
  • Setting for new Desktops #10

1.2:

  • Configurable Hotkeys
  • Mutex bugfix

1.1:

  • Hotkey
  • Keyboard accelerators
  • Switch desktop after move
  • Settings Ini File

1.0:

  • Release

movetodesktop's People

Contributors

anushibin007 avatar eun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

movetodesktop's Issues

Keyboard shortcut confict

Notice that WIN+ALT+Left/Right is also the default shortcut for forward and backward action (same as ALT+Left/Right).
In a browser or windows explorer with a history list, this does not work very well. Sometimes it send the current window to the next desktop, but most of the time it just perform a backward action.
Any solutions?

Application error

Hi,

I started using the 1.2 release version with Windows 10 64bit. When starting the program I get an application error saying that "The application was unable to start correctly (0xc000007b). Click OK to close the application." Then when pressing ok, the program seems to work fine, but only on non-system related windows (even when run as administrator).

Sorry to have no more specific info, but do you have any idea what goes wrong?

Thanks

After moving a window it should focus the next window

Basically title is content, I find it annoying that when I move a window to another desktop, it won't focus to the next window, but instead stay unfocused. That way you could move all stacked windows to another desktop quicker.

Error on launch

When I try to start MoveToDesktop, I get an error message saying "Error on calling SetWindowsHookEx(WH_CALLWNDPROC)! Error code:126" (see Image) and no functionality.
image
Further info:

> ver
Microsoft Windows [Version 10.0.14393]

I tried running MTD as Admin with the same result.
I did not try a restart of windows.

Program is running, doesn't work?

I downloaded MoveToDesktop-1.4.zip, extracted the file to a local folder, ran it as admin. Nothing happened. Killed the 2 processes and ran again, nothing. Downloaded the INI file, saved it to %AppData% and ran the executable again. Nothing. The menu item does not appear, the shortcut keys (win+alt+arrow) don't work. I am on Windows 10 Pro, updated today.

Am I missing something?

[Feature Request] Animation with SwitchDesktopAfterMove enabled

Would it be possible to animate the movement of windows between desktops when the SwitchDesktopAfterMove flag is enabled? It is fluff, and isn't entirely necessary, but would be aesthetically pleasing to have the background change like Windows does when you change desktops.

Anti Virus Detections

After downloading MoveToDesktop-1.3 Avira Antivirus detects ADWARE/Adware.Gen2 in MoteToDesktop.exe .

Switch Desktop After Move is not working

Hello, the SwitchDesktop after Move is not working for me. I've put the ini file in my appdata/local folder, does it need to be in the roaming folder instead?

I have the ini file set to SwitchDesktopAfterMove=1, but the desktop stays the same after I move the application.

Only runs under one user

When running MoveToDesktop as an admin user (As suggested) i am unabel to move windows started as my no-admin user.
I can't start two seperate MoveToDesktop as the two different users, because it says it is already running when i try to launch it with the second user.

One point of me using this is to move the elevated applications to a seperate desktop.

Ability to specify the desktop the window is being moved to

Feature request (Sorry, don't know how to tag it as such!):
On my XFCE system, I use Super+F{n} (Super is Windows key for those that don't know!) to switch desktop n - that is I Super+F1 for desktop 1, Super+F2 for desktop 2...

I use Super+1, Super+2 ect. to send a window to that desktop - any way you could implement something similiar? I really like being able to tell it what window to go to. I'll look into doing something like that myself, but my C isn't so good :)

-Brodie

Build errors when rebuilding with VS2015 Enterprise

I am getting the following errors when I attempt to build the entire solution using Visual Studio 2015 Enterprise Edition:

Severity    Code    Description Project File    Line    Suppression State
Error   MSB3073 The command "taskkill /f /fi "IMAGENAME eq MoveToDesktop*" /im *
:VCEnd" exited with code 1. MoveToDesktop   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  123 
Error   MSB3073 The command "taskkill /f /fi "IMAGENAME eq MoveToDesktop*" /im *
:VCEnd" exited with code 1. MoveToDesktop   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  123 

In the attached image below I have activated the first of these errors in order to highlight the source code. Both errors are generated from the same source.

build_error

MoveToDesktop is not working with VirtualBox guest windows

Hi,
I'm running a Windows 10 guest operating system in VirtualBox on my local computer.
I want to be able to move guest the windows between my virtual desktops just like other applications, but the MoveToDesktop menu doesn't seem to appear on the VirtualBox windows.

It would be nice if you could add the MoveToDesktop menu on the VirtualBox window or at least make the window move when using the move window keyboard shortcut.

Thanks for a nice utility!

Show on All Desktops Menu Item

The anniversary update gave use the ability to show a specific window on all desktops. Can you add that menu option to the context menu like you have with the Move items?

Unable to use CTRL+WIN in the same hotkey

I've been trying to set my move window to "SHIFT+CTRL+WIN+RIGHT/LEFT" but I see the error "Error on Registering Left-Hotkey (SHIFT+WIN+CTRL+LEFT)! ErrorCode:1409"

I assume this is because the native windows virtual desktop switching uses CTRL+WIN+RIGHT/LEFT, but I just wanted to see if there is a way around this as I'd like to use the same hotkey with shift added

Mini Setting UI

Write a mini Setting UI. That is able to start, stop, reload_?_ MoveToDesktop.
Maintain backwards compability for Autostart scripts:
Either:

  • put this in a seperate Application
  • ???

Difficulty Modifying ini to change shortcuts.

I've been trying to modify the .ini to change the keyboard shortcut from WIN+ALT+LEFT/RIGHT to WIN+CTRL+SHIFT+LEFT/RIGHT.

When I change the .ini and then run the application I get the following message: Error registering [new keys]
Error Code: 1409

Any help would be appreciated.

SetWindowsHook support

First of all sir, great project, thank you!

I would like to know, if there is any way to install SetWindowsHookEx to monitor both events from another desktop, and the current one?

Another question, why is it compatible with windows 10 only? you have plans to add windows 7 and 10?

Crash each time when plugging PC into power - beta client

Windows 10 x64

Windows error log:

first a .net runtime error:

Application: MoveToDesktop.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ApplicationException
at System.Threading.Mutex.ReleaseMutex()
at MoveToDesktop.App.OnExit(System.Windows.ExitEventArgs)
at System.Windows.Application.DoShutdown()
at System.Windows.Application.ShutdownImpl()
at System.Windows.Application.ShutdownCallback(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Application.RunDispatcher(System.Object)
at System.Windows.Application.RunInternal(System.Windows.Window)
at MoveToDesktop.App.Main()

followed insantly by application error:

Faulting application name: MoveToDesktop.exe, version: 1.5.0.0, time stamp: 0x582c2e29
Faulting module name: KERNELBASE.dll, version: 10.0.15063.483, time stamp: 0xaa6457d1
Exception code: 0xe0434352
Fault offset: 0x0000000000069e08
Faulting process id: 0xbd4
Faulting application start time: 0x01d30876f2c27d79
Faulting application path: C:\Users\myusername\Downloads\MoveToDesktop-beta-1.5\MoveToDesktop.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: 37f7f57e-48f6-4c92-b695-ac1facda5a91
Faulting package full name:
Faulting package-relative application ID:

Does not start on Win 10 Build 10240

Tried both normal and administrator launch. Confirmed that it is launched in process explorer. Right clicking on Win Explorer title bar does not show any new menu items.

EDIT: It does work on an other Win 10 with Anniversary Update

Doesn't work for command prompt

Neither PowerShell nor CMD seem to be affected by this program, even when started in administrator mode. MSConfig also is not, but that utility is used rarely

New desktop sometimes creates unwanted multiples

I started with 3 desktops all created from the Windows task view pane, then did a "Move To > New Desktop" and ended up with 18 desktops, deleted most of them to reduce back to 4, did another "Move To > New Desktop" and ended up with 19 desktops, deleted even more this time going back to the original 3, did another "Move To > New Desktop" and this time ended up with 4 desktops as expected.

No problem

Just wanted to say thank you for creating such a useful utility that Microsoft's engineers somehow overlooked as this is a no-brainer ability that should have been baked into the OS core itself. smh!

Windows 10 Anniversary Update support

I was sad to see that the new Anniversary Update completely breaks MoveToDesktop. No hotkeys, no desktop switching, no context menu items, on any programs at all. It's as if MoveToDesktop isn't running at all. It makes no difference if it's run as elevated or normally.

Ini file not working

I want to activate the SwitchDesktopAfterMove feature but the ini file doesn't seem to work for me.

I did the following:

  • Downloaded MoveToDesktop.exe and put it into C:\Users\Enumag\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\MoveToDesktop.exe (to start it automatically).
  • Downloaded MoveToDesktop.ini and put it to C:\Users\Enumag\AppData\MoveToDesktop.ini
  • Changed the configuration to SwitchDesktopAfterMove=1.
  • Restarted my PC to apply the configuration changes.

Unfortunately when I press Win+Alt+Left/Right the active window disappeares to the next desktop but the active desktop doesn't change until I press Win+Crtl+Left/Right.

Am I doing something wrong?

Automation using Commandline

Create a new Desktop

MoveToDesktop --create-desktop

Switch the Desktop to 2

MoveToDesktop --switch-desktop 2

List Desktops

MoveToDesktop --list-desktops

Remove Desktop 2

MoveToDesktop --remove-desktop 2

Remove empty Desktops

MoveToDesktop --remove-empty-desktops

Launch SomeProgram.exe and move it to the new Desktop

MoveToDesktop --create-desktop --app "C:\SomeProgram.exe"

Launch SomeProgram.exe, move it to the new Desktop and switch desktop

MoveToDesktop --create-desktop --switch-desktop --app "C:\SomeProgram.exe"

Launch SomeProgram.exe and move it to 2

MoveToDesktop --move-to-desktop 2 --app "C:\SomeProgram.exe"

Launch SomeProgram.exe, move it to 2 and switch desktop

MoveToDesktop --move-to-desktop 2 --switch-desktop --app "C:\SomeProgram.exe"

Move the window with the hwd 123456 to desktop 2

MoveToDesktop --move-to-desktop 2 --hwnd 123456

Move the Window with the hwd 123456 to desktop 2 and switch desktop

MoveToDesktop --move-to-desktop 2 --switch-desktop --hwnd 123456

Unwanted sound when moving to desktop using the "Move To" menu

This is a nice utility, thanks :)

When I pick a Desktop from the "Move To" menu it makes a sound though. I don't know if this is something to do with my system (Win 10 Anniversary Update x86-64) as a quick scan through the main.cpp code doesn't seem to be calling anything to make a sound. If it is a deliberate choice I would prefer an option in MoveToDesktop.ini to disable it..

Note: when I use the WIN+ALT+LEFT/RIGHT shortcut key it doesn't make a sound.

Simon

Not working with insider build 14328

I read that MS implements switching desktops with the touchpad in this build. So probably there are some other changes regarding to the multi-desktop API?

Looking for Testers and Icon

Hey Guys, thank you for sticking to the Software,
I am currently working on a newer improved version with a GUI.

Anyone is invited to test the software.
You can download the beta 1.5 here.

The tray icon is a setup icon because I have no Icon yet.

However I am also looking for an Icon so if somebody has some time and is creative, feel free to submit one.

screenshot

[feature request] Add global Hotkeys to move one Desktop left or right

I really like your tool - it is faster than typing Win+Tab and then fiddling with the mouse (especially when you have many windows open and want two of them on a new desktop). Instead just press Alt+Space and move to the desired desktop :)

But I think it would be super useful to add two more global HotKeys (for example Win+Shift+Left/Right, or Win+Ctrl+Shift+Left/Right) to move the currently focused window (if any) to the next or previous desktop (just like Win+Ctrl+Left/Right move between them).

Or if that is not possible, add some & to the context menu labels so I can do Alt+Space, o, 1 instead of using cursor keys :)

Thanks for consideration.

Move to Specific Desktop Using WIN+ALT+Numpad

I would like to move the selected window to desktop 3. I want to do so by pressing WIN+ALT+Numpad3. This is how I had it setup when I used VirtualWin before Microsoft implemented the feature into Windows.

Where exactly put .ini

I would like to ask where exactly I should put MoveToDesktop.ini?

I've put it in the c:\users(user name)\appdata folder.

I am trying to get SwitchDesktopAfterMove activated but it is not working. Also which is the best way to restart the program? Just kill it in the Task Manager and restart?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.