Skip to content

Commit

Permalink
Merge pull request #336 from kaovilai/clean-intellisense-msg
Browse files Browse the repository at this point in the history
Clearing Intellisense messages
  • Loading branch information
ChrisAnd1998 authored Aug 18, 2020
2 parents 8df00b4 + d2b0100 commit ea9a76c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 22 deletions.
12 changes: 5 additions & 7 deletions TaskbarX/TaskbarX/Easings.vb
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ Public Delegate Function EasingDelegate(ByVal currentTime As Double, ByVal minVa
Dim num2 As Double = maxHeight / 2.0
Dim x As Double = 2.0
Dim num3 As Double = -10.0
Dim num4 As Double = currentTime - 1.0
currentTime = num4
Return num2 * (-Math.Pow(x, num3 * num4) + 2.0) + minHeight
Dim num4 As Double = currentTime - 1.0
Return num2 * (-Math.Pow(x, num3 * num4) + 2.0) + minHeight
End Function

Public Shared Function ExpoEaseOutIn(currentTime As Double, minHeight As Double, maxHeight As Double, duration As Double) As Double
Expand Down Expand Up @@ -138,10 +137,9 @@ Public Delegate Function EasingDelegate(ByVal currentTime As Double, ByVal minVa
End If
Dim num2 As Double = -maxHeight / 2.0
Dim num3 As Double = 3.1415926535897931
Dim num4 As Double = currentTime - 1.0
currentTime = num4
Return num2 * (Math.Cos(num3 * num4 / 2.0) - 2.0) + minHeight
End Function
Dim num4 As Double = currentTime - 1.0
Return num2 * (Math.Cos(num3 * num4 / 2.0) - 2.0) + minHeight
End Function

Public Shared Function SineEaseOutIn(currentTime As Double, minHeight As Double, maxHeight As Double, duration As Double) As Double
If currentTime < duration / 2.0 Then
Expand Down
2 changes: 1 addition & 1 deletion TaskbarX/TaskbarX/MSAA.vb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Public Class MSAA
Public Shared guidAccessible As New Guid("{00020400-0000-0000-C000-000000000046}")

Public Shared Function GetAccessibleChildren(ByVal objAccessible As IAccessible) As IAccessible()
Dim childCount As Integer = 0
Dim childCount As Integer
Try
childCount = objAccessible.accChildCount
Catch ex As Exception
Expand Down
4 changes: 2 additions & 2 deletions TaskbarX/TaskbarX/Main.vb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Option Strict On
Option Strict On

Imports System.Runtime.InteropServices
Imports System.Threading
Expand Down Expand Up @@ -233,7 +233,7 @@ Public Class Main
itemType.InvokeMember("Refresh", BindingFlags.InvokeMethod, Nothing, item, Nothing)
End If
End If
i = (i + 1)
i += 1
Loop
End Sub

Expand Down
16 changes: 7 additions & 9 deletions TaskbarX/TaskbarX/TaskbarCenter.vb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Option Strict On
Option Strict On


Imports System.Threading
Expand Down Expand Up @@ -91,7 +91,7 @@ Public Class TaskbarCenter
Return Nothing
End Function

Public Shared Sub setpos()
Public Shared Sub SetPos()
If setposori = "H" Then
Do
Win32.SetWindowPos(setposhwnd, IntPtr.Zero, setpospos, 0, 0, 0, Win32.SWP_NOSIZE Or Win32.SWP_ASYNCWINDOWPOS Or Win32.SWP_NOACTIVATE Or Win32.SWP_NOZORDER Or Win32.SWP_NOSENDCHANGING)
Expand Down Expand Up @@ -167,7 +167,6 @@ Public Class TaskbarCenter
Dim Handle As IntPtr
Do
Console.WriteLine("Waiting for Shell_TrayWnd")
Handle = Nothing
Thread.Sleep(250)
Handle = Win32.FindWindowByClass("Shell_TrayWnd", CType(0, IntPtr))
Loop Until Not Handle = Nothing
Expand All @@ -186,7 +185,6 @@ Public Class TaskbarCenter
Dim Handle As IntPtr
Do
Console.WriteLine("Waiting for Shell_TrayWnd")
Handle = Nothing
Thread.Sleep(250)
Handle = Win32.FindWindowByClass("Shell_TrayWnd", CType(0, IntPtr))
Loop Until Not Handle = Nothing
Expand Down Expand Up @@ -337,7 +335,7 @@ Public Class TaskbarCenter
'Put the results into a string ready to be matched for differences with last loop
results = results & Orientation & TaskbarCount & TrayWndSize

i = (i + 1)
i += 1
Next

If Not results = oldresults Then
Expand Down Expand Up @@ -388,7 +386,7 @@ triggerskip:
End If

End Try
Loop
Loop

Catch ex As Exception
MessageBox.Show("@Looper2 | " & ex.Message)
Expand Down Expand Up @@ -476,7 +474,7 @@ triggerskip:
setpospos = CInt(pos)
setposori = TrayOrientation

Dim t1 As Thread = New Thread(AddressOf setpos)
Dim t1 As Thread = New Thread(AddressOf SetPos)
t1.Start()

Thread.Sleep(5)
Expand Down Expand Up @@ -573,10 +571,10 @@ triggerskip:
For Each ccc As Accessibility.IAccessible In children2
Try
If CInt(childx.accRole(ccc)) = &H2B Or CInt(childx.accRole(ccc)) = &H39 Then 'push button (0x2B) | menu button (0x39)
Count = Count + 1
Count += 1
End If
Catch
Count = Count + 1
Count += 1
End Try

Next
Expand Down
6 changes: 3 additions & 3 deletions TaskbarX/TaskbarX/TaskbarStyle.vb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Option Strict On
Option Strict On

Imports System.Runtime.InteropServices
Imports System.Text
Expand Down Expand Up @@ -43,7 +43,7 @@ Public Class TaskbarStyle
Return True
End Function

Public Shared Sub ttt()
Public Shared Sub Ttt()
Do
windowHandles2.Clear()

Expand All @@ -61,7 +61,7 @@ Public Class TaskbarStyle
GetActiveWindows()

If Settings.DefaultTaskbarStyleOnWinMax = 1 Then
' Dim t2 As Thread = New Thread(AddressOf ttt)
' Dim t2 As Thread = New Thread(AddressOf Ttt)
' t2.Start()
End If

Expand Down

0 comments on commit ea9a76c

Please sign in to comment.