❓ How to make public process ?
This is my code
i put it in my form but it is working only if the game is open
if the game is not open my hack is crashing i cant open my hack cuz the process of the game is not open
if i open the game first my hack will open
i want to be able to open the hack even if the game is not open
---------------------------------------------------------------------------------------------
i fixed it by deleting the code from the form ---> and put it in every button and timer
but i do not want to do that cuz its constants so i do not want copy and paste it in every button
how to do that
Thanks in advance
Code:
Private Const ProcName = "game"
Dim GaMe As Process() = Process.GetProcessesByName(ProcName)
Dim pID As IntPtr = GaMe(0).Handle
Dim base As IntPtr = GaMe(0).MainModule.BaseAddress
Dim offsets() As IntPtr = {&H0}
if the game is not open my hack is crashing i cant open my hack cuz the process of the game is not open
if i open the game first my hack will open
i want to be able to open the hack even if the game is not open
---------------------------------------------------------------------------------------------
i fixed it by deleting the code from the form ---> and put it in every button and timer
but i do not want to do that cuz its constants so i do not want copy and paste it in every button
how to do that
Thanks in advance
