Advertisement
AlixXXX

C# SetWindowText By Alix

Jun 22nd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. public static extern bool SetWindowText(IntPtr hwnd, String lpString);
  2.  
  3. [DllImport("user32.dll", EntryPoint = "FindWindow", CharSet = CharSet.Ansi)]
  4.  
  5. public static extern IntPtr FindWindow(string className, string windowName);
  6.  
  7.    private void button4_Click_2(object sender, EventArgs e)
  8.         {
  9.             SetWindowText(FindWindow(null, "Growtopia"), YOUR TEXT!);
  10.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement