Skip to content

Question: How would you add your own shortcuts?  #9

@geoxcaliber

Description

@geoxcaliber

I like all the current snapping features, but I would like to add in more snapping, like into thirds and other things. Do you know if it's possible?
I got this off a forum, but when it snaps it doesn't snap to a predefined place, like left, right, etc. If it's on the right, it does the action on the right.

#!u::ResizeWin(0,600)
ResizeWin(Width = 0,Height = 0)
{
WinGetPos,X,Y,W,H,A
If %Width% = 0
Width := W
If %Height% = 0
Height := H
WinMove,A,,%X%,%Y%,%Width%,%Height%
}

I was hoping I would be able to use a simple command like Resize (Height, Width) and then customize the height width on my own. If it's not possible, could you explain how you did it in your script? I saw some commands that specified Left and Right, so is there a way I can like map the hotkeys to the left/right, and it'll go there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions