Git Product home page Git Product logo

Comments (7)

FuPeiJiang avatar FuPeiJiang commented on July 27, 2024

can you try to do it yourself with https://github.com/MScholtes/VirtualDesktop/blob/812c321e286b82a10f8050755c94d21c4b69812f/VirtualDesktop1803.cs#L378 ?
and pull request ?

you'll probably have to wait a few days, I'm working on ahk_parser.js
adding it doesn't take long, I'm just don't want to lose my concentration

from vd.ahk.

huo-feng-ding avatar huo-feng-ding commented on July 27, 2024

I try to do it , but not success 😣

from vd.ahk.

FuPeiJiang avatar FuPeiJiang commented on July 27, 2024

I try to do it , but not success 😣

true, it was hard to do VD_IsAppPinned(wintitle)


I discovered 2 things:

; revelation, view IS the object, I was looking everywhere for CLSID of IApplicationView
    ; Ptr* passes the address to Receive the string
    ; &RECT passes the address to, well input the RECT, not for output
    ; VarSetCapacity(Rect, 16)  ; A RECT is a struct consisting of four 32-bit integers (i.e. 4*4=16).
    ; DllCall("GetWindowRect", "Ptr", WinExist(), "Ptr", &Rect)  ; WinExist() returns an HWND.
    ; MsgBox % "Left " . NumGet(Rect, 0, "Int") . " Top " . NumGet(Rect, 4, "Int")
    ; . " Right " . NumGet(Rect, 8, "Int") . " Bottom " . NumGet(Rect, 12, "Int")
    ; wait what?, now I'm confused
    ; it is because the function says [out]. not in. [in] write to YOUR struct
    ; , [out] CREATES the struct and returns the pointer to you

Pin App was done at this commit:
7540f8f

; "Show windows from this app on all desktops"
; VD_IsAppPinned(wintitle)
; VD_TogglePinApp(wintitle)
; VD_PinApp(wintitle)
; VD_UnPinApp(wintitle)

from vd.ahk.

FuPeiJiang avatar FuPeiJiang commented on July 27, 2024

now you regret asking for IsAppIdPinned
because RemoveDesktop, CreateDesktop is what's actually useful, and IsAppIdPinned is useless
but VD_IsAppPinned is similar to VD_IsWindowPinned so I wanted to do that first.

from vd.ahk.

huo-feng-ding avatar huo-feng-ding commented on July 27, 2024

image

from vd.ahk.

FuPeiJiang avatar FuPeiJiang commented on July 27, 2024

@MaxSherry

from vd.ahk.

huo-feng-ding avatar huo-feng-ding commented on July 27, 2024

❤️ u are kindhearted person, I love you, thank u

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.