Imports System.Runtime.InteropServices
Public Class Form1
Const SW_GIZLE As Integer = 0
Const SW_GOSTER As Integer = 9
Dim hWnd As Integer
Dim p As Process()
<DllImport("User32")> Private Shared Function ShowWindow(ByVal hwnd As Integer, ByVal nCmdShow As Integer) As Integer
End Function
Private Sub KapatToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles KapatToolStripMenuItem.Click
Me.Close()
End Sub
Private Sub GizleToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GizleToolStripMenuItem.Click
Me.Visible = False
GizleToolStripMenuItem.Visible = False
GöterToolStripMenuItem.Visible = True
End Sub
Private Sub GöterToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GöterToolStripMenuItem.Click
Me.Visible = True
GizleToolStripMenuItem.Visible = True
GöterToolStripMenuItem.Visible = False
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
ShowWindow(hWnd, SW_GOSTER)
hWnd = p(0).MainWindowHandle.ToInt32
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
ShowWindow(hWnd, SW_GIZLE)
hWnd = p(0).MainWindowHandle.ToInt32
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If CheckBox1.Checked = True Then
SendKeys.Send("{x}")
End If
If CheckBox2.Checked = True Then
SendKeys.Send("{1}")
End If
If CheckBox3.Checked = True Then
SendKeys.Send("{2}")
End If
If CheckBox4.Checked = True Then
SendKeys.Send("{3}")
End If
If CheckBox5.Checked = True Then
SendKeys.Send("{4}")
End If
If CheckBox6.Checked = True Then
SendKeys.Send("{5}")
End If
If CheckBox7.Checked = True Then
SendKeys.Send("{6}")
End If
If CheckBox8.Checked = True Then
SendKeys.Send("{7}")
End If
If CheckBox9.Checked = True Then
SendKeys.Send("{8}")
End If
If CheckBox10.Checked = True Then
SendKeys.Send("{9}")
End If
If CheckBox11.Checked = True Then
SendKeys.Send("{0}")
End If
If CheckBox12.Checked = True Then
SendKeys.Send("{TAB}")
End If
If CheckBox13.Checked = True Then
SendKeys.Send("{ENTER}")
End If
If CheckBox14.Checked = True Then
SendKeys.Send("{G}")
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Enabled = True
Button1.Visible = False
Label4.Text = "başlatıldı"
Label3.Text = ""
Button2.Visible = True
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Timer1.Enabled = False
Button2.Visible = False
Label4.Text = ""
Label3.Text = "Durduruldu"
Button1.Visible = True
End Sub
Private Sub ToolStripDropDownButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripDropDownButton2.Click
Me.Hide()
End Sub
Private Sub GroupBox4_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GroupBox4.Enter
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
p = Process.GetProcessesByName("SRO_Client.exe")
End Sub
End Class