﻿# coding: utf-8

import ctypes
def get():
    ctypes.windll.user32.OpenClipboard(None)
    pcontents = ctypes.windll.user32.GetClipboardData(1) # 1 means CF_TEXT 
    data = ctypes.c_char_p(pcontents).value
    ctypes.windll.user32.CloseClipboard()
    return data

0e028c0c8f151502593a54d16da0485da9c6b9d0
﻿# coding: utf-8

import ctypes
def get():
    ctypes.windll.user32.OpenClipboard(None)
    pcontents = ctypes.windll.user32.GetClipboardData(1) # 1 means CF_TEXT 
    data = ctypes.c_char_p(pcontents).value
    ctypes.windll.user32.CloseClipboard()
    return data
