27-11-19, 12:04 AM
(آخر تعديل لهذه المشاركة : 27-11-19, 12:07 AM {2} بواسطة محمد كريّم.)
كود :
Dim process As Process = Process.GetProcessesByName("notepad").FirstOrDefault()
If process IsNot Nothing Then
Dim mainWindowHandle As IntPtr = process.MainWindowHandle
Form1.SetForegroundWindow(mainWindowHandle)
SendKeys.SendWait("^{h}") 'replace Ctrl & H
End If
