cannot open output file untitled.exe: Permission denied

 
#include <stdio.h>
#include <windows.h>

int getnum(int *result)
{
    char buff [ 13 ];
    return
fgets(buff, sizeof buff, stdin) && sscanf(buff, "%d", result) == 1;
}

int main()
{
    printf("<<<<-- Autoclicker -->>>>\n");

    
printf("\n[-] Number of clicks: ");
    int
clicks;
    do
getnum(&clicks);
    while
(!clicks);

    
printf("\n[-] Delay between each click (0 allowed): ");
    int
sleep;
    
getnum(&sleep);

    
printf("\n[+] Press INTRO to begin...");
    int
charr = fgetc (stdin);
    
printf("\n[+] Clicks: %d ; Delay: %d", clicks, sleep);
    
printf("\n[+] You have 5 seconds to change window and put cursor in place!\n");
    
Sleep(5000);
    int
i;
    for
(i=0; i<clicks; i++)
    {
        mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, 1, 1, 1, 1);
        if
(sleep)
            Sleep(sleep);
    
}
    printf("[+] Finished.\n\n");
    
charr=fgetc(stdin);
    return 0;
}Why am i getting the erorr?

Please sign in to leave a comment.