Aimbot
Aimbot
CC#
Created by Aimbot on 11/26/2022 in #help
❔ 'Type may be weakened' inspection in rider
8 replies
CC#
Created by Aimbot on 11/11/2022 in #help
❔ Changing TextBlock Background property in a static method
The method needs to be static (unless there are implementations of LowLevelKeyboardProc that doesn't require it). I am looking for any solution or workaround that will allow for it. Ultimately background needs to be changed on every click. My only idea for now is using INotifyPropertyChanged but all its uses I've seen are about view models so idk if it's possible to use it for this property too. I can post rest if needed
public static IntPtr hookProc(int code, IntPtr wParam, IntPtr lParam)
{
if (code >= 0)
{
int vkCode = Marshal.ReadInt32(lParam);
if (wParam == (IntPtr)WM_KEYDOWN)
if (vkCode == 65)
{
A.Background = new SolidColorBrush(Colors.Red);
}
}

return CallNextHookEx(hhook, code, (int)wParam, lParam);
}
public static IntPtr hookProc(int code, IntPtr wParam, IntPtr lParam)
{
if (code >= 0)
{
int vkCode = Marshal.ReadInt32(lParam);
if (wParam == (IntPtr)WM_KEYDOWN)
if (vkCode == 65)
{
A.Background = new SolidColorBrush(Colors.Red);
}
}

return CallNextHookEx(hhook, code, (int)wParam, lParam);
}
20 replies