Log in to reply
 

Open another application into gta process



  • for open an application into a windows form i use this code

        [DllImport("user32.dll")]
        static extern IntPtr SetParent(IntPtr h, IntPtr h1);
        function
        {
                Process p = Process.Start("notepad.exe");
                Thread.Sleep(500);
                p.WaitForInputIdle();
                SetParent(p.MainWindowHandle,this.Handle);
         }
    

    but i can't use this.Handle in a script how i can tell to use gta process handle?



  • @Santo99 Whatever you're trying to accomplish here (opening notepad.exe inside GTA V?), wouldn't it be endlessy easier, and cleaner, to just alt-tab between the 2 applications?!

    Pro-Tip: Set GTA V to play in borderless, windowed mode, for very smooth alt-tabbing between GTA V and other apps.


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.