Visual Basic - Projeye Exe Gömme!

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
/×\ 飢餓的狼 /×\
Banlı Üye
Katılım
23 Ağu 2017
Mesajlar
689
Tepki puanı
153
8 HİZMET YILI
Selam beyler bağyanlar ben ByLeonS bugün size Projeye exe gömmeyi göstereceğim.

- Yeni Bir Proje Oluşturun
- 2 Button Ekleyin
- Project > ... Properties > Resources
- Yukarda "Add Resource" nin yanındaki OK'a tıklayın ve "Add Existing File"den .exe dosyanızı seçin
- Ekledikten sonra sağdaki ayar menüsünün Resources kısmının altında bulunan, seçmiş olduğunuz .exe ye bir defa tıklayın ve Hemen altındaki Build Action ayarını "Embedded Resource" olarak değiştirin.

Son olarak Form1'in kod penceresini açın ve kodları yapıştırın.
NOT: Koddaki DOSYAİSMİ yazan yerleri kendinize göre düzenleyin! (DOSYAİSMİ yazan yerleri sadece dosya ismi, DOSYAİSMİ.exe yazan yerleri ise İsim.exe olarak Değiştirin.)


C:
Public Class Form1

    Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click

        '  Görev yöneticisinde açık dosyayı kapat
        Shell("taskkill /f /im " & "DOSYAİSMİ.exe", AppWinStyle.Hide)

    End Sub

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        On Error Resume Next
        Dim yol As String = Application.StartupPath & "\DOSYAİSMİ.exe"
        IO.File.WriteAllBytes(yol, My.Resources.DOSYAİSMİ)
        If IO.File.Exists(yol) Then Process.Start(yol)
    End Sub

    Private Sub Form1_FormClosing(sender As Object, e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing

        Try
            Dim dosyaVarmi = My.Computer.FileSystem.FileExists(Application.StartupPath & "\DOSYAİSMİ.exe")
            If dosyaVarmi = True Then
                'Dosya açıksa kapat
                Shell("taskkill /f /im " & "DOSYAİSMİ.exe", AppWinStyle.Hide)
            End If
            Kill(Application.StartupPath & "\DOSYAİSMİ.exe") 'mesaj vermeden Diskten siler

            'Çöp kutusuna taşıma mesajı veren silme kodu
        'My.Computer.FileSystem.DeleteFile(Application.StartupPath & "\DOSYAİSMİ.exe", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently, FileIO.UICancelOption.ThrowException)
      
        Catch ex As Exception
            MsgBox("Dosya Bulunamadı")
        End Try

    End Sub

End Class

ALINTIDIR!
 
Üye
Katılım
13 Şub 2018
Mesajlar
29
Tepki puanı
0
Yaş
22
8 HİZMET YILI
@ByLeonS bana yardım eder misin ? Bu kodları nasıl exe yapıp program haline getireceğim visual studio programı var


Kod:
//globalpolicy

//c0dew0rth.blogspot.com

//26th May, 2018

//Hold middle mouse button to auto fire any single shot gun

//Also performs recoil compensation



#pragma once

#include <Windows.h>

#include <stdio.h>

using namespace std;





void leftClickDown()

{

    mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);

}



void leftClickUp()

{

    mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);

}



void mouseMove(int dx, int dy, int step = 1, int sleep = 10)

{

    int stepx, stepy;



    stepx = (dx < 0) ? (step*-1) : (step);

    for (int cnt = 1; cnt <= abs(dx / stepx); cnt++)

    {

        mouse_event(MOUSEEVENTF_MOVE, stepx, 0, 0, 0);

        Sleep(sleep / 2);

    }



    stepy = (dy < 0) ? (step*-1) : (step);

    for (int cnt = 1; cnt <= abs(dy / stepy); cnt++)

    {

        mouse_event(MOUSEEVENTF_MOVE, 0, stepy, 0, 0);

        Sleep(sleep / 2);

    }

}



void typeGraveAccent()

{

    keybd_event(VK_OEM_3, 0, 0, 0);

    keybd_event(VK_OEM_3, 0, KEYEVENTF_KEYUP, 0);

}



void monitorLoop(int dx, int dy, int waitMs, int shootDelayMs)

{



    while (true)

    {

        SHORT gaks = GetAsyncKeyState(VK_LBUTTON);

        if (gaks & 0b1000000000000000) //if MSB is set(non-zero) i.e. being held down

        {

            leftClickDown();

            leftClickUp();



            typeGraveAccent();

            leftClickDown();



#pragma region Recoil compensation/pull

            /*

            * first param : horizontal recoil correction per shot in pixels

            * second param : vertical recoil correction per shot in pixels (greater value=stronger downward pull)

            * third param : recoil correction step size in pixels (game seems to not register the pull if >=2 (?) )

            * fourth param : wait period between consecutive step-pulls/step-corrections (lower value=faster fire rate) (game doesn't register the pull if <=1)

            */

            mouseMove(dx, dy, 1, shootDelayMs);

            /*

            * Recommended parameters for :

            + 5.56 guns :

            - M16A4 : 0, 29, 1, 4

            - Mini 14 : 0, 35, 1, 2

            - SCAR-L : 0, 35, 1, 2

            + 7.72 guns : (generally worse recoil consistency than 5.56 guns)

            - SKS : 5, 40, 1, 2

            - AKM : 5, 35, 1, 2 (really just use auto mode with manual correction for this; AKM is just all over the place)

            - Mk14 : 0, 35, 1, 2 (better recoil consistency than AKM but still not that good)

            */

#pragma endregion



            leftClickUp();

            typeGraveAccent();

        }



#pragma region Firing rate delay

        /*

        * the lower it is, the faster the firing rate

        * any lower than 6 and the game will freeze

        * the lower it is, the greater the recoil

        */

        Sleep(shootDelayMs);

        /*

        * Recommended delay for :

        - M16A4 : 6-8

        - SKS, AKM, Mk14, Mini 14, SCAR-L : 6

        */

#pragma endregion



    }

}
 
Moderatörün son düzenlenenleri:
  • Konuyu başlatan
  • Yasaklandı
  • #4
/×\ 飢餓的狼 /×\
Banlı Üye
Katılım
23 Ağu 2017
Mesajlar
689
Tepki puanı
153
8 HİZMET YILI
@ByLeonS bana yardım eder misin ? Bu kodları nasıl exe yapıp program haline getireceğim visual studio programı var


//globalpolicy
//c0dew0rth.blogspot.com
//26th May, 2018
//Hold middle mouse button to auto fire any single shot gun
//Also performs recoil compensation

#pragma once
#include <Windows.h>
#include <stdio.h>
using namespace std;


void leftClickDown()
{
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
}

void leftClickUp()
{
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
}

void mouseMove(int dx, int dy, int step = 1, int sleep = 10)
{
int stepx, stepy;

stepx = (dx < 0) ? (step*-1) : (step);
for (int cnt = 1; cnt <= abs(dx / stepx); cnt++)
{
mouse_event(MOUSEEVENTF_MOVE, stepx, 0, 0, 0);
Sleep(sleep / 2);
}

stepy = (dy < 0) ? (step*-1) : (step);
for (int cnt = 1; cnt <= abs(dy / stepy); cnt++)
{
mouse_event(MOUSEEVENTF_MOVE, 0, stepy, 0, 0);
Sleep(sleep / 2);
}
}

void typeGraveAccent()
{
keybd_event(VK_OEM_3, 0, 0, 0);
keybd_event(VK_OEM_3, 0, KEYEVENTF_KEYUP, 0);
}

void monitorLoop(int dx, int dy, int waitMs, int shootDelayMs)
{

while (true)
{
SHORT gaks = GetAsyncKeyState(VK_LBUTTON);
if (gaks & 0b1000000000000000) //if MSB is set(non-zero) i.e. being held down
{
leftClickDown();
leftClickUp();

typeGraveAccent();
leftClickDown();

#pragma region Recoil compensation/pull
/*
* first param : horizontal recoil correction per shot in pixels
* second param : vertical recoil correction per shot in pixels (greater value=stronger downward pull)
* third param : recoil correction step size in pixels (game seems to not register the pull if >=2 (?) )
* fourth param : wait period between consecutive step-pulls/step-corrections (lower value=faster fire rate) (game doesn't register the pull if <=1)
*/
mouseMove(dx, dy, 1, shootDelayMs);
/*
* Recommended parameters for :
+ 5.56 guns :
- M16A4 : 0, 29, 1, 4
- Mini 14 : 0, 35, 1, 2
- SCAR-L : 0, 35, 1, 2
+ 7.72 guns : (generally worse recoil consistency than 5.56 guns)
- SKS : 5, 40, 1, 2
- AKM : 5, 35, 1, 2 (really just use auto mode with manual correction for this; AKM is just all over the place)
- Mk14 : 0, 35, 1, 2 (better recoil consistency than AKM but still not that good)
*/
#pragma endregion

leftClickUp();
typeGraveAccent();
}

#pragma region Firing rate delay
/*
* the lower it is, the faster the firing rate
* any lower than 6 and the game will freeze
* the lower it is, the greater the recoil
*/
Sleep(shootDelayMs);
/*
* Recommended delay for :
- M16A4 : 6-8
- SKS, AKM, Mk14, Mini 14, SCAR-L : 6
*/
#pragma endregion

}
}
kardeş kusura bakma fazla C++ Bilgim yok :(
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst