Help and Support
Ask a question, report a problem, request a feature...
<<  Back To Forum

[Improvement suggestion] paste magnet with shortcut

by Guest on 2016/09/26 07:03:02 PM    
Having need to add torrents through hashes and magnets from time to time made me think of this improvement.
If Ctrl+V pressed while main tixati window is active take clipboard content and try to parse it as a magnet or hash. If it succeed add new transfer. If it fails open Add new transfer window on Open Magnet-Link tab and paste whatever is in clipboard so that user may correct it and then add new transfer.

I've seen this type of handling of paste command is some other programs (VLC and JDownloader comes to mind) and it works quite well there. Would be grate if tixati would work in similar way.

Hope this helps. Have a nice day
by FAKEFUL on 2016/09/27 06:29:32 AM    
Hey, glad you are using Tixati.

Because I'm not a developer from Tixati, the only thing I can help with is share my solution of a problem. I created autohotkey script that doing exactly what you asked for. If you happened to use AutoHotkey, you can check this out. It only works within Tixati window, so it wont mess with your Ctrl+v experience.

~LControl & ~v::
IfWinActive, ahk_exe tixati.exe
{
WinActivate, Tixati,, Tixati Settings
   SetControlDelay -1
ControlClick, Button65, Tixati,,,, NA
Sleep, 200
SetControlDelay -1
ControlClick, Button37, Tixati
WinActivate, Add New Transfer
ControlFocus, Edit1, Add New Transfer,,,, NA
;SendInput, %clipboard%;Less reliable way of sending clipboard
SendInput {Ctrl down}v{Ctrl up}
Sleep, 800
SetControlDelay -1
ControlClick, Button8, Add New Transfer,,,, NA
}
return


This script works on v2.45. Feel free to ask anything about it. I tested it with 278 magnets in one paste, so for daily use it should work like a charm(Your experience may vary, it mostly depends on how fast your Tixati opens it's sub windows). I also wanted to propose addition of CLI to Tixati, because this kind of interactions is way easier to script through command line.
Hope this helps.




This web site is powered by Super Simple Server