help with clip filter

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
smallboy3
Posts: 1
Joined: 07 Sep 2017, 15:10

help with clip filter

15 Oct 2017, 19:59

Hello am new to ahk and i don't know much abt ahk. please i need a script that removes both duplicates in a clipboard.

example:
1
1
2
2
3
4
4
5

the result will be
3
5

thanks in advance :)
User avatar
divanebaba
Posts: 805
Joined: 20 Dec 2016, 03:53
Location: Diaspora

Re: help with clip filter

16 Oct 2017, 06:50

Hi.
You could save your digits into a variable and than you can use sort with U-parameter to remove duplicates.

EDIT: Sort is not able to solve this issue.
BoBo made me aware of my mistake.
EDIT: Not mistake. I meant miseducation. :HeHe: :HeHe: :trollface: :trollface:
Last edited by divanebaba on 17 Oct 2017, 03:36, edited 1 time in total.
Einfach nur ein toller Typ. :mrgreen:
teadrinker
Posts: 4326
Joined: 29 Mar 2015, 09:41
Contact:

Re: help with clip filter

16 Oct 2017, 10:15

Hello, smallboy3,
Try:

Code: Select all

Clipboard := RegExReplace(Clipboard, "m`a)(^.+$)\R\1\R?")
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: help with clip filter

17 Oct 2017, 03:25

divanebaba wrote:Hi.
You could save your digits into a variable and than you can use sort with U-parameter to remove duplicates.
Die anforderung war, alle einträge zu löschen, welche als doppel vorliegen, nicht alle dubletten.
Siehe > "result" ;)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput, DiegoSouto, mikeyww, Rohwedder, Sniperman and 392 guests