1 # Create to macro menu entries (Preferences -> Default Settings -> Customize Menus -> Macro Menu)
2 # with shortcuts
3
4 #1: put selection in clipboard
5 shell_command("setclip", get_selection())
6
7
8 # You won't need the next one, if the X server you run provides an
9 # integration between the X clipboard and the Windows clipboard.
10 # Notice that you may still need #1 even in this case.
11
12 #2: get from windows clipboard (NOTICE: remove_cr is provided in cygspecial.nm)
13 clip = remove_cr(shell_command("getclip", ""))
14 insert_string(substring(clip, 0, length(clip) - 1))
15
16