you'll need a program called AutoHotKey, check this:
https://www.autohotkey.com/board/topi...to-a-new-file/
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 :
(ahk)Code:^d:: ; Ctrl + d Clipsaved := clipboardall Clipboard = Send ^c Clipwait Fileappend, %clipboard%`n, somefilename.txt Clipboard := clipsaved Run, somefilename.txt Return
but it doesn't work for me.
you'll need a program called AutoHotKey, check this:
https://www.autohotkey.com/board/topi...to-a-new-file/
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
link to executable (requires .net framework 4.0 or higher): h t t p : / / www. file dropper . com/autocpsaveCode: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
^^ @ 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.
--
RedByte1337 (09-30-2014)
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.
--
RedByte1337 (10-03-2014)
(well, I feel silly..)
https://virusscan.jotti.org/en/scanre...46c67971818fbe
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.
--
RedByte1337 (10-06-2014)
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
Can't see me calling, you hatin'?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
RedByte1337 (10-06-2014)
https://virusscan.jotti.org/en/scanre...f1743b242bf166
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).
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.
--