Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    RedByte1337's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Location
    All over the place
    Posts
    70
    Reputation
    10
    Thanks
    4
    My Mood
    Confused

    Question Auto copy/paster

    Does someone knows how to make a program that paste text in a txt file when you copy something with Ctrl+C?
    I found this :
    Code:
    ^d::  ; Ctrl + d
    Clipsaved := clipboardall
    Clipboard =
    Send ^c
    Clipwait
    Fileappend, %clipboard%`n, somefilename.txt
    Clipboard := clipsaved
    Run, somefilename.txt
    Return
    (ahk)
    but it doesn't work for me.

  2. #2
    francish's Avatar
    Join Date
    Sep 2014
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    4
    My Mood
    Innocent
    you'll need a program called AutoHotKey, check this:
    https://www.autohotkey.com/board/topi...to-a-new-file/
    Steam
    xickoh

    My sign sucks

  3. #3
    Jim Morrison's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Canterlot, Equestria
    Posts
    12,444
    Reputation
    1090
    Thanks
    3,336
    What language are you doing?


    MPGH Staff History:
    Minion: 02-12-2013 - 6-28-2013
    Former Staff: 6-28-2013 - 7-14-2014
    Minion: 7-14-2014 - 1-3-2015
    Minion+: 1-3-2015 - 6-1-2015
    Moderator: 6-1-2015 - 10-2-2016
    Global Moderator: 10-2-2016 - Current

    Current Sections:
    DayZ Mod & Standalone Hacks & Cheats
    BattleOn Games Hacks, Cheats & Trainers
    Minecraft Hacks
    Other Semi-Popular First Person Shooter Hacks
    Blackshot Hacks & Cheats
    Need For Speed World Hacks
    Other First Person Shooter Hacks
    CounterStrike: Global Offensive Hacks
    Garry's Mod Hacks & Cheats


    Donating:
    If you want to donate money to me I take Bitcoin & Paypal, PM me for either of these if you're interested and thanks.
    Top Donators: (Awesome People)
    FanticSteal $75.00
    smurf_master $58.00 <- Best DayZ Gear Seller
    Fujiyama $25.00
    [MPGH]Black $10.00
    [MPGH]Hova $10.00
    xJudgez $4.54
    [MPGH]Normen's Sheep $3.50
    eminemlover $1.50


    Brony?
    https://www.mpgh.net/forum/groups/1728-mpgh-bronies.html

  4. #4
    RedByte1337's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Location
    All over the place
    Posts
    70
    Reputation
    10
    Thanks
    4
    My Mood
    Confused
    Quote Originally Posted by francish View Post
    you'll need a program called AutoHotKey, check this:
    https://www.autohotkey.com/board/topi...to-a-new-file/
    That's where (ahk) stands for

  5. #5
    RedByte1337's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Location
    All over the place
    Posts
    70
    Reputation
    10
    Thanks
    4
    My Mood
    Confused
    Quote Originally Posted by NormenJaydenFBI View Post
    What language are you doing?
    :/

    nothing

  6. #6
    abuckau907's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    other side of the wire
    Posts
    1,342
    Reputation
    162
    Thanks
    239
    My Mood
    Cold

    Code:
    Public Class Form1
        Public oldCPText As String = ""
        Public writeCount As Long = 0
      
     
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            If Clipboard.ContainsText() Then
                Dim tmpCPText As String = Clipboard.GetText
                If tmpCPText <> oldCPText Then
                    ''new text in clipboard
                    oldCPText = tmpCPText
                    System****.File.AppendAllText("somefilename.txt", tmpCPText) ''save it to file
                    writeCount += 1
                    Label2.Text = writeCount.ToString()
                    If CheckBox1.Checked Then
                        Beep()
                    End If
                End If
            End If
        End Sub
    
    
    End Class
    link to executable (requires .net framework 4.0 or higher): h t t p : / / www. file dropper . com/autocpsave
     

    https://virusscan.jotti.org/en/scanre...5a2901f6051174
    MD5: ee07a06e3fe8500b200ba3686e8a106d
    SHA1: 93bc2eb02938dfe33e5e21160ea5df9ce1a424bd

    ^^ @ moderator, please upload to your file server or whatnot? I don't see "Reply with attachment" option, and wasn't going to start a new thread.

    @OP, compile the source yourself..don't run the executable I posted until a moderator approves it.

    Might not be the best solution, but should do what you're asking. ? Hopefully you're not copying hundreds of megs of text at a time..
    Last edited by abuckau907; 09-20-2014 at 12:34 AM.
    'Some things that can be counted, don't matter. And some things that matter, can't be counted' - A.E.
    --
     

    My posts have some inaccuracies/are wrong/wrong keyword(s) used.
    They're (maybe) pretty close, and I hope they helped you, not created confusion. Take with grain of salt.

    -if you give rep, please leave a comment, else it means less.

  7. The Following User Says Thank You to abuckau907 For This Useful Post:

    RedByte1337 (09-30-2014)

  8. #7
    RedByte1337's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Location
    All over the place
    Posts
    70
    Reputation
    10
    Thanks
    4
    My Mood
    Confused
    Quote Originally Posted by abuckau907 View Post

    Code:
    Public Class Form1
        Public oldCPText As String = ""
        Public writeCount As Long = 0
      
     
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            If Clipboard.ContainsText() Then
                Dim tmpCPText As String = Clipboard.GetText
                If tmpCPText <> oldCPText Then
                    ''new text in clipboard
                    oldCPText = tmpCPText
                    System****.File.AppendAllText("somefilename.txt", tmpCPText) ''save it to file
                    writeCount += 1
                    Label2.Text = writeCount.ToString()
                    If CheckBox1.Checked Then
                        Beep()
                    End If
                End If
            End If
        End Sub
    
    
    End Class
    link to executable (requires .net framework 4.0 or higher): h t t p : / / www. file dropper . com/autocpsave
     

    https://virusscan.jotti.org/en/scanre...5a2901f6051174
    MD5: ee07a06e3fe8500b200ba3686e8a106d
    SHA1: 93bc2eb02938dfe33e5e21160ea5df9ce1a424bd

    ^^ @ moderator, please upload to your file server or whatnot? I don't see "Reply with attachment" option, and wasn't going to start a new thread.

    @OP, compile the source yourself..don't run the executable I posted until a moderator approves it.

    Might not be the best solution, but should do what you're asking. ? Hopefully you're not copying hundreds of megs of text at a time..
    thx but when I go to that link it just sends me back to the filledropper . com main page and it asks me to upload

  9. #8
    abuckau907's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    other side of the wire
    Posts
    1,342
    Reputation
    162
    Thanks
    239
    My Mood
    Cold
    Hmm..that was only a few days ago, no idea why the file would be gone already, but it seems you're right.
    It's against the rules to post outside download links, so I'd really rather not..

    PM a moderator and ask them the appropriate way for me to upload the file for you (create a new thread?!?).
    'Some things that can be counted, don't matter. And some things that matter, can't be counted' - A.E.
    --
     

    My posts have some inaccuracies/are wrong/wrong keyword(s) used.
    They're (maybe) pretty close, and I hope they helped you, not created confusion. Take with grain of salt.

    -if you give rep, please leave a comment, else it means less.

  10. The Following User Says Thank You to abuckau907 For This Useful Post:

    RedByte1337 (10-03-2014)

  11. #9
    RedByte1337's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Location
    All over the place
    Posts
    70
    Reputation
    10
    Thanks
    4
    My Mood
    Confused
    Quote Originally Posted by abuckau907 View Post
    Hmm..that was only a few days ago, no idea why the file would be gone already, but it seems you're right.
    It's against the rules to post outside download links, so I'd really rather not..

    PM a moderator and ask them the appropriate way for me to upload the file for you (create a new thread?!?).
    ok I sent them a message

  12. #10
    RedByte1337's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Location
    All over the place
    Posts
    70
    Reputation
    10
    Thanks
    4
    My Mood
    Confused
    Quote Originally Posted by abuckau907 View Post
    Hmm..that was only a few days ago, no idea why the file would be gone already, but it seems you're right.
    It's against the rules to post outside download links, so I'd really rather not..

    PM a moderator and ask them the appropriate way for me to upload the file for you (create a new thread?!?).
    I think you just have to click on "Go Advanced" and then you will have an option to upload it.



    [MPGH]NormenJaydenFBI :
    "He can just upload the file in the thread."
    Last edited by RedByte1337; 10-04-2014 at 08:57 AM.

  13. #11
    abuckau907's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    other side of the wire
    Posts
    1,342
    Reputation
    162
    Thanks
    239
    My Mood
    Cold
    (well, I feel silly..)

    https://virusscan.jotti.org/en/scanre...46c67971818fbe
    <b>Downloadable Files</b> Downloadable Files
    Last edited by abuckau907; 10-04-2014 at 11:59 AM.
    'Some things that can be counted, don't matter. And some things that matter, can't be counted' - A.E.
    --
     

    My posts have some inaccuracies/are wrong/wrong keyword(s) used.
    They're (maybe) pretty close, and I hope they helped you, not created confusion. Take with grain of salt.

    -if you give rep, please leave a comment, else it means less.

  14. The Following User Says Thank You to abuckau907 For This Useful Post:

    RedByte1337 (10-06-2014)

  15. #12
    RedByte1337's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Location
    All over the place
    Posts
    70
    Reputation
    10
    Thanks
    4
    My Mood
    Confused
    Quote Originally Posted by abuckau907 View Post
    thx for the help
    But when I copy "hello" and "word"
    it gives me : "helloword"
    is there any way you can make it :
    "
    hello
    word
    "
    Last edited by RedByte1337; 10-06-2014 at 12:46 PM.

  16. #13
    Harava's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Posts
    114
    Reputation
    10
    Thanks
    2,989

    Here is how it's done in C:

    Code:
    #include <cstdio>
    #include <windows.h>
    
    #pragma comment(lib, "USER32")
    
    /*
            Auto copy-paster by Harava
                  07.10.2014
    */
    
    int main()
    {
        HANDLE hClipData = NULL;
        HANDLE hLastClipData = NULL;
        long iClipSize = 0, iItemsSaved = 1;
        char * szClipData = NULL;
        char * szLastClipData = NULL;
    
        FILE * fOut = fopen("clipboard.txt", "a");
        if(fOut == NULL)
            return -1;
    
        while(!GetAsyncKeyState(VK_ESCAPE))
        {
            OpenClipboard(NULL);
            if(!IsClipboardFormatAvailable(CF_TEXT))
            {
                printf("Clipboard has something other than text!\n");
                CloseClipboard();
                Sleep(1000);
                continue;
            }
            hClipData = GetClipboardData(CF_TEXT);
    
            iClipSize = strlen((char*)hClipData);
    
            szClipData = (char*)malloc(iClipSize+1);
            memcpy(szClipData, (char*)hClipData, iClipSize+1);
    
            if(szLastClipData != NULL)
            {
                if(strcmp(szClipData, szLastClipData) != 0)
                {
                    printf("Clipboard changed.\nSaving stuff to file.\n\n");
                    fprintf(fOut, "**********     CLIPBOARD ITEM %d ( %d bytes )     **********\n\n", iItemsSaved, iClipSize);
                    fwrite(szClipData, 1, iClipSize, fOut);
                    fprintf(fOut, "\n\n**********     END OF ITEM %d     **********\n\n", iItemsSaved);
                    fflush(fOut);
                    iItemsSaved++;
                }
            }
    
            free(szLastClipData);
            szLastClipData = (char*)malloc(iClipSize+1);
            memcpy(szLastClipData, szClipData, iClipSize+1);
    
            free(szClipData);
            CloseClipboard();
            Sleep(100);
        }
        fclose(fOut);
        return 0;
    }

    Recent releases:
    CSPHv3.2




    Code:
    00F38C0E     B8 0610F300    MOV EAX, 00F31006
    00F38C13     C700 208CF300  MOV DWORD PTR DS:[EAX], 00F38C20
    00F38C19     EB FF          JMP SHORT 00F38C1A
    00F38C1B     90             NOP
    00F38C1C     0000           ADD BYTE PTR DS:[EAX],AL
    00F38C1E     0000           ADD BYTE PTR DS:[EAX],AL
    00F38C20     58             POP EAX
    00F38C21    ^EB EB          JMP SHORT 00F38C0E
    Can't see me calling, you hatin'?

  17. The Following User Says Thank You to Harava For This Useful Post:

    RedByte1337 (10-06-2014)

  18. #14
    RedByte1337's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Location
    All over the place
    Posts
    70
    Reputation
    10
    Thanks
    4
    My Mood
    Confused
    Quote Originally Posted by Harava View Post

    Here is how it's done in C:

    Code:
    #include <cstdio>
    #include <windows.h>
    
    #pragma comment(lib, "USER32")
    
    /*
            Auto copy-paster by Harava
                  07.10.2014
    */
    
    int main()
    {
        HANDLE hClipData = NULL;
        HANDLE hLastClipData = NULL;
        long iClipSize = 0, iItemsSaved = 1;
        char * szClipData = NULL;
        char * szLastClipData = NULL;
    
        FILE * fOut = fopen("clipboard.txt", "a");
        if(fOut == NULL)
            return -1;
    
        while(!GetAsyncKeyState(VK_ESCAPE))
        {
            OpenClipboard(NULL);
            if(!IsClipboardFormatAvailable(CF_TEXT))
            {
                printf("Clipboard has something other than text!\n");
                CloseClipboard();
                Sleep(1000);
                continue;
            }
            hClipData = GetClipboardData(CF_TEXT);
    
            iClipSize = strlen((char*)hClipData);
    
            szClipData = (char*)malloc(iClipSize+1);
            memcpy(szClipData, (char*)hClipData, iClipSize+1);
    
            if(szLastClipData != NULL)
            {
                if(strcmp(szClipData, szLastClipData) != 0)
                {
                    printf("Clipboard changed.\nSaving stuff to file.\n\n");
                    fprintf(fOut, "**********     CLIPBOARD ITEM %d ( %d bytes )     **********\n\n", iItemsSaved, iClipSize);
                    fwrite(szClipData, 1, iClipSize, fOut);
                    fprintf(fOut, "\n\n**********     END OF ITEM %d     **********\n\n", iItemsSaved);
                    fflush(fOut);
                    iItemsSaved++;
                }
            }
    
            free(szLastClipData);
            szLastClipData = (char*)malloc(iClipSize+1);
            memcpy(szLastClipData, szClipData, iClipSize+1);
    
            free(szClipData);
            CloseClipboard();
            Sleep(100);
        }
        fclose(fOut);
        return 0;
    }

    Thanks, but how do I save C filles and how do I compile them?

  19. #15
    abuckau907's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    other side of the wire
    Posts
    1,342
    Reputation
    162
    Thanks
    239
    My Mood
    Cold

    https://virusscan.jotti.org/en/scanre...f1743b242bf166

     


    Code:
    Public Class Form1
        Public oldCPText As String = ""
        Public writeCount As Long = 0
      
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            If Clipboard.ContainsText() Then
                Dim tmpCPText As String = Clipboard.GetText
                If tmpCPText <> oldCPText Then
                    ''new text in clipboard
                    oldCPText = tmpCPText
                    System****.File.AppendAllText(My.Settings.outputFilename, tmpCPText & Environment.NewLine) ''save it to file
                    writeCount += 1
                    Label2.Text = writeCount.ToString()
                    If CheckBox1.Checked Then
                        Beep()
                    End If
                End If
            End If
        End Sub
    
        Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
            If e.KeyValue = Keys.F2 Then
                Dim userResponse As String = InputBox("Please enter the new output filename:", "somefilename.txt", "somefilename.txt")
                If userResponse.Length = 0 Then
                    MsgBox("Invalid output file name. Name unchanged.")
                ElseIf userResponse.EndsWith(".txt") = False Then
                    MsgBox("Invalid output file name. Must end in .txt. Name unchanged.")
                Else
                    My.Settings.outputFilename = userResponse
                    lblFilename.Text = "File: " & My.Settings.outputFilename
                    MsgBox("Filename changed OK.")
                End If
            End If
        End Sub
    
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            lblFilename.Text = "File: " & My.Settings.outputFilename
        End Sub
    End Class



    Microsoft Visual Studio (free versions available, basically fully featured) : https://www.microsof*****m/en-us/searc...tudio&from=DLC
    is an option, if you want a full blown IDE (and the option to support multiple programming languages).
    <b>Downloadable Files</b> Downloadable Files
    Last edited by abuckau907; 10-07-2014 at 02:54 AM.
    'Some things that can be counted, don't matter. And some things that matter, can't be counted' - A.E.
    --
     

    My posts have some inaccuracies/are wrong/wrong keyword(s) used.
    They're (maybe) pretty close, and I hope they helped you, not created confusion. Take with grain of salt.

    -if you give rep, please leave a comment, else it means less.

Page 1 of 2 12 LastLast

Similar Threads

  1. [Info] WarRock PH coders and copy paster
    By icebox346 in forum WarRock Philippines Hacks
    Replies: 60
    Last Post: 08-17-2012, 06:05 AM
  2. What is a Copy&Paster?
    By Hell_Demon in forum C++/C Programming
    Replies: 60
    Last Post: 04-04-2010, 06:11 AM
  3. Google Having To Copy Ideas?
    By Dave84311 in forum General
    Replies: 11
    Last Post: 01-20-2008, 09:05 AM
  4. WarRock Auto Vehicle Repair Hack
    By mortis123 in forum WarRock - International Hacks
    Replies: 12
    Last Post: 01-17-2006, 08:40 PM
  5. WarRock Auto Healer
    By Flawless in forum WarRock - International Hacks
    Replies: 8
    Last Post: 12-31-2005, 03:44 AM