Skip to content

Commit

Permalink
added btnGetMouse functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Walkman100 committed Jan 15, 2019
1 parent 1399c6a commit 6321f85
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion KeyInsert.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions KeyInsert.vb
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ Public Partial Class KeyInsert
Sub CheckButtons() Handles lstKeyStrokes.Click, lstKeyStrokes.SelectedIndexChanged, lstKeyStrokes.AfterLabelEdit, lstKeyStrokes.ColumnReordered
If IsNothing(lstKeyStrokes.FocusedItem) Then
btnRemove.Enabled = False
btnGetMouse.Enabled = False
Else
btnRemove.Enabled = True
btnGetMouse.Enabled = True
End If
If lstKeyStrokes.Items.Count = 0 Then
btnStart.Enabled = False
Expand Down Expand Up @@ -147,7 +149,11 @@ Public Partial Class KeyInsert
End Sub

Sub btnGetMouse_Click() Handles btnGetMouse.Click
Me.SendToBack
Threading.Thread.Sleep(2000)

lstKeyStrokes.FocusedItem.SubItems.Item(0).Text = "$MOVETO(" & Cursor.Position.X & ", " & Cursor.Position.Y & ")"
Me.BringToFront
End Sub

Sub lnkInfo_LinkClicked() Handles lnkInfo.LinkClicked
Expand Down

0 comments on commit 6321f85

Please sign in to comment.