C++ ile Title Başlığını her saniye nasıl değiştiririm?

Status
Not open for further replies.

Arishem

Banned Member
Joined
Mar 24, 2021
Topics
177
Messages
1,299
Solutions
34
Reaction score
4,060
C++ ile Title Başlığını her saniye nasıl değiştiririm?
veya elinde hazır acık kaynak olan warsa atabılırmı hile menusu lazım c++ yazılmıs form wındows title adı sanıyede bır degısmesı gerekıyor
 

Greenclawz

Confirmed Memb.
Joined
Jun 22, 2022
Topics
1
Messages
118
Reaction score
170
eğer belirlediklerinizi İstiyorsanız Process ten Bilgi çekmelisiniz.
 

xr4zz3rs

Founder
Owner
Joined
Oct 12, 2019
Topics
17
Messages
743
Solutions
74
Reaction score
10,185
Location
MmUnmapLockedPages
Website
realitycheats.com
Senin için basit bir şeyler yazdım;

C++:
#include <iostream>
#include <algorithm>
#include <thread>
#include <random>
#include <windows.h>
using namespace std::chrono_literals;

[ [ nodiscard ] ] auto __fastcall random_string( std::uint32_t length ) -> std::wstring {
    static auto& alphanums = "0123456789"
        "abcdefghijklmnopqrstuvwxyz"
        "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    thread_local static std::mt19937 rg{ std::random_device{ }( ) };
    thread_local static std::uniform_int_distribution< std::string::size_type > alpha( 0, sizeof( alphanums ) - 2 );

    std::wstring outstr{ };
    outstr.reserve( length );
    while ( length-- )
        outstr += alphanums[ alpha( rg ) ];
    return outstr;
}

[ [ nodiscard ] ] auto __fastcall random_title( const std::uint32_t length, const std::chrono::milliseconds sleep_duration ) -> void {
    while ( true ) {
        ( SetConsoleTitleW )( random_string( length ).c_str( ) );
        ( std::this_thread::sleep_for )( sleep_duration );
    }
}

auto __stdcall main( ) -> void {
    std::thread pthread( random_title, /*title length*/32, /*sleep duration*/1000ms );
    pthread.join( );
    std::getchar( ); // for pause command prompt ^^
}
 

Arishem

Banned Member
Joined
Mar 24, 2021
Topics
177
Messages
1,299
Solutions
34
Reaction score
4,060
Random şekilde mi yoksa sizin belirlediğiniz metinler ile mi?
fark etmez
Post automatically merged by the system:

Senin için basit bir şeyler yazdım;

C++:
#include <iostream>
#include <algorithm>
#include <thread>
#include <random>
#include <windows.h>
using namespace std::chrono_literals;

[[nodiscard]]
auto __fastcall random_string(std::uint32_t length) -> std::wstring {
    static auto& alphanums = "0123456789"
        "abcdefghijklmnopqrstuvwxyz"
        "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    thread_local static std::mt19937 rg{ std::random_device{}() };
    thread_local static std::uniform_int_distribution<std::string::size_type> alpha(0, sizeof(alphanums) - 2);

    std::wstring outstr;
    outstr.reserve(length);
    while (length--)
        outstr += alphanums[alpha(rg)];
    return outstr;
}

[[nodiscard]]
auto __fastcall random_title(const std::uint32_t length, const std::chrono::milliseconds sleep_duration) -> void {
    while (true) {
        (SetConsoleTitleW)(random_string(length).c_str());
        (std::this_thread::sleep_for)(sleep_duration);
    }
}

[[nodiscard]]
auto __stdcall main() -> void {
    std::thread pthread(random_title, /*title length*/32, /*sleep duration*/1000ms);
    pthread.join();
    std::getchar(); // for pause command prompt ^^
}
sagolasın
 
Status
Not open for further replies.

Top