-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SplitSnapActiveWindow & MS Edge (chromium) #7
Comments
Can you first try moving the SetKeyDelay to the top and decreasing it to
75ms, re-combine the Send command (no need to separate them) and report
back? My guess is that this will be nondeterministic and we should delay
most of the keypresses besides the ^c and ^v.
…On Sat, Aug 1, 2020 at 12:53 PM digitalAssetStore ***@***.***> wrote:
In MS Edge (chromium) latest version for me the new code is not working
Send ^l^c
SetKeyDelay, 100
Send ^w^n^v{enter}
SetKeyDelay, -1
sleep 500
SnapActiveWindow(winPlaceVertical, winPlaceHorizontal, winSizeHeight)
It seems the key-point is the delay between ^l and ^c.
For me the following works
Send ^l
Send ^c
Send ^w^n^v{enter}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACRYQUNXYIFT77LH6F4D4DR6RJCDANCNFSM4PR5PR5A>
.
|
Variant1: Not working
Variant2: Not working
Variant3: Working
|
This is certainly a PC/memory/resource issue. I just tested the existing code on Edge on my PC and it worked fine. Try increasing the Ideally I'd be able to monitor what's going on through WinWait, but I'm not confident I could come up with a reliable algorithm to do so. For example, I could watch for a window title change after closing the tab, but that would only work if there weren't tabs with identical titles. This really should be a feature in Chrome, to split off tabs via keyboard control. This kludge doesn't maintain the history of the tab. The Vimium extension apparently offers true keyboard support for splitting off a tab. |
Understand and agree. But I tried "SetKeyDelay, 5000" in first line, still not working. The most compact working version is It seems to be that "Send Ctrl+L" takes to much time to be screwed through the cpu/memory/resource/storage... Pragmatically: If this is the working code for most browsers in the world, I could (would have to) live with it. |
There's also this Chrome plugin. |
Ugh, what a pain in the butt. I think I have something that should be totally reliable and much faster. No delays from keyboard input or anything, either. Just the natural processing delay from opening a new browser window, etc. I also added a feature to backup and restore the clipboard, which previously was overwritten with the tab's URL. Let me know if this works.
|
✔️ WORKS! PS: Really appreciate your clever solution. Compact, impact-free to clipboard and effective! |
One more thing. Please change first line |
Ah, thanks; didn't realize ahk has that goofy distinction of Incidentally, would you find it useful to maintain focus on the original browser window so that you can rapid fire split off tabs into quadrants? Besides that, one other neat hotkey might be to with one keystroke, move four tabs to respective quadrants. Not sure if I'd ever use this in practice though. |
Q: Incidentally, would you find it useful to maintain focus on the original browser window so that you can rapid fire split off tabs into quadrants? Q: Besides that, one other neat hotkey might be to with one keystroke, move four tabs to respective quadrants. Not sure if I'd ever use this in practice though. |
Try this and let me know what happens. My PC was acting very strangely after I tried it.
|
|
In MS Edge (chromium) latest version for me the new code is not working
It seems the key-point is the delay between ^l and ^c.
For me the following works
The text was updated successfully, but these errors were encountered: