Git Product home page Git Product logo

Comments (10)

FuPeiJiang avatar FuPeiJiang commented on July 27, 2024

there is no api, from the repos I "copy" code from, that enables animation
Ciantic/VirtualDesktopAccessor#29 (comment)
Grabacr07/VirtualDesktop#23
MScholtes/VirtualDesktop#16

because there's only animation when you switch to adjacent virtual desktop, there is no loss of functionality if you do:
Send % "^#{right}"
Send % "^#{left}"

Grabacr07/VirtualDesktop#23 (comment)
I don't know what this does, but it seems too short to simulate the animation


update:
Grabacr07/VirtualDesktop#23 (comment)
I just compiled this and it works, seamlessly too

there is no loss of functionality

I stand corrected : even if you jump 2 virtual desktops, it uses 1 animation, I expected there to be no animation

from vd.ahk.

TWF1212 avatar TWF1212 commented on July 27, 2024

With the latest version is there any way to remove the animation? I liked it much better when it was instant with no animation at all.

Luckily the old version I have is still working for me, I wanted to upgrade but won't if I have to use the animation on change.

I think if it is still possible to do the switch with no animation, can you add a class parameter (or something) we can set to choose instant or animation maybe?

Thank you.

from vd.ahk.

FuPeiJiang avatar FuPeiJiang commented on July 27, 2024

It is possible to add the no-animation way back, but you can disable animations in windows appearance settings, is there a downside to that ?

from vd.ahk.

TWF1212 avatar TWF1212 commented on July 27, 2024

I tried adding the no-animation back in as a different function, but it no longer worked. I kind of like the animation when using Windows hotkeys to go to next/previous. But I want if I use a Hotkey with this library, it goes automatically with no animation.

I'll just keep trying to work out the code of adding it back in myself.

Thank you.

from vd.ahk.

FuPeiJiang avatar FuPeiJiang commented on July 27, 2024

I see: animation for windows builtin hotkeys, no-animation for ahk custom hotkeys

I'm gonna add it like this:
VD.animation_on:=false
Any improvements/ideas on this before I add it ?

from vd.ahk.

FuPeiJiang avatar FuPeiJiang commented on July 27, 2024

This flag/boolean should be useless in windows 11 since even builtin hotkeys don't have animation

from vd.ahk.

TWF1212 avatar TWF1212 commented on July 27, 2024

I see: animation for windows builtin hotkeys, no-animation for ahk custom hotkeys

I'm gonna add it like this: VD.animation_on:=false Any improvements/ideas on this before I add it ?

I can't think of any other improvements over that.

Thank you very much for working on this, and so quickly too!

I appreciate it.

from vd.ahk.

FuPeiJiang avatar FuPeiJiang commented on July 27, 2024

This flag/boolean should be useless in windows 11 since even builtin hotkeys don't have animation

this is wrong information, windows 11 has an animation too, I don't know what I was thinking

from vd.ahk.

FuPeiJiang avatar FuPeiJiang commented on July 27, 2024

an early version of windows 11 had no animation at all
for later versions of windows 11, we can use SwitchDesktopWithAnimation(IVirtualDesktop) for animation
for windows 10, we can use SetForegroundWindow(HWND) for animation, where the HWND is located in the target VD

the SetForegroundWindow(HWND) method switches correctly but doesn't provide an animation in windows 11, that's why SwitchDesktopWithAnimation(IVirtualDesktop) is needed for windows 11

in all versions of windows, SwitchDesktop(IVirtualDesktop) has no animation

from vd.ahk.

FuPeiJiang avatar FuPeiJiang commented on July 27, 2024

@TWF1212
well, here it is, sorry for the long wait
please report additional bugs that may occur when using VD.animation_on:=false

from vd.ahk.

Related Issues (20)

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.