tis-ditto

3.23.124.0-1
Ditto is an extension to the standard windows clipboard. It saves each item placed on the clipboard allowing you access to any of those items at a later time. Ditto allows you to save any type of information that can be put on the clipboard, text, images, html, custom formats, .....
4360 downloads
Download
default icon

  Description 

  • package : tis-ditto
  • version : 3.23.124.0-1
  • architecture : all
  • categories : Utilities
  • maintainer : Tranquil IT Systems, BRAYE Benjamin
  • description : Ditto is an extension to the standard windows clipboard. It saves each item placed on the clipboard allowing you access to any of those items at a later time. Ditto allows you to save any type of information that can be put on the clipboard, text, images, html, custom formats, .....
  • locale :
  • target_os : windows
  • min_wapt_version :
  • sources :
  • installed_size : 3211264
  • impacted_process :
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence : GPL
  • signature_date : 2020-11-10T11:15:24.502322
  • Homepage : https://ditto-cp.sourceforge.io/

  Setup.py 

# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------
#    This file is part of WAPT
#    Copyright (C) 2013  Tranquil IT Systems http://www.tranquil.it
#    WAPT aims to help Windows systems administrators to deploy
#    setup and update applications on users PC.
#
#    WAPT is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    WAPT is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with WAPT.  If not, see <http://www.gnu.org/licenses/>.
#
# -----------------------------------------------------------------------
from setuphelpers import *

uninstallkey=[]

software_name = "Ditto"

def install():


    # list all msi in package

    versionsoft = control['version'].split('-',1)[0]

    if iswin64():
        exe = "DittoSetup_%s.exe" % versionsoft
        install_exe_if_needed(exe,min_version=versionsoft,key='Ditto_is1')
        exe = makepath(programfiles32,'Ditto','Ditto.exe')
        create_programs_menu_shortcut('Ditto',exe)


def update_package():

    proxies = {}
    if isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxies = {'http':proxywapt,'https':proxywapt}

    import requests,re
    try:
        import BeautifulSoup
    except:
        import bs4 as BeautifulSoup

    
    current_version = control.version.split('-',1)[0]
    
    verify=True

    urlversion = 'https://ditto-cp.sourceforge.io/index.php'


    page = requests.get(urlversion,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'},verify=verify,proxies=proxies).text
    bs = BeautifulSoup.BeautifulSoup(page)

    bs_raw_string = str(bs.findAll('script')[0])
    bs_raw_string = str(bs_raw_string.split('\n\t',1)[1])
    bs_raw_string = str(bs_raw_string.split('\n\t',1)[0])
    bs_raw_string = str(bs_raw_string.split('=',1)[1])
    bs_raw_string = bs_raw_string.replace('"','')

    print(bs_raw_string)

    software_version = bs_raw_string
    print(software_version)

    print ("Current %s WAPT package version is : %s" % (software_name,current_version))
    print ("Latest %s version available is : %s" % (software_name,software_version))

    if Version(current_version) < Version(software_version):
        print("%s package is not up-to-date, updating" % software_name)
        print("Cleanup current files")



        filename = "DittoSetup_%s.exe" % software_version


        for exe in glob.glob('*.exe'):
            if exe not in {filename}:
                remove_file(exe)

        print("Downloading latest version")

        download_url = 'https://sourceforge.net/projects/ditto-cp/files/Ditto/%s/DittoSetup_64bit_%s.exe/download'  % (software_version,software_version.replace('.','_'))
        wget(download_url,filename,proxies=proxies)


        control.version = software_version + '-0'
        control.save_control_to_wapt()
    else:
        print("No update needed, package already up to date")



										

  Changelog 




3.22.20.0 12-23-2018

    Fixed crash in latest windows 10 when changing dpi
    Removed message box when we fail to request a file from a remote computer, changed to balloon message in the task tray
    Added option to invert case special paste
    Updated German language file
    Updated to latest version of SQLite, 3.26.
    Added warning message box on compact and repair button is clicked
    Aggregate multiple clips better if some clips don't have all the data needed
    Updated chocolatey portable install script to handle upgrades
    Changed output debug string and output debug to file shortcuts to ctrl-d, ctrl-o and ctrl-d, ctrl-f
    Added back in auto roll-up quick option
    Fixed issue resizing description window with image and then not being able to move next/prev with up/down keys
    Changed right click menu from "filter on" to "filter on selected clip"
    Added export to email, content as attachment Added special paste - slugify
    Fixed import message window size
    Update menu for export to email
    Fixed issue with clicking on an image in description window and the up/down arrows stop working
    Added email to and gmail export options
    Trim include/exclude app text when checking against current app
    Added Hungarian language file
    When the desktop has focus center over the screen with the mouse cursor
    Handle ensure window is visible on differnt dpi monitors better


									
  manifest.sha256