C
C#3y ago
Aimbot

❔ 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);
}
17 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Aimbot
AimbotOP3y ago
Would that change the background on inactive window too? That was my whole point of going down to LowLevelKeyboardProc
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Buddy
Buddy3y ago
What are you making?
Aimbot
AimbotOP3y ago
keyboard overlay
Buddy
Buddy3y ago
what's a keyboard overlay?
Aimbot
AimbotOP3y ago
keyboard on the screen which displays various data
Buddy
Buddy3y ago
Ah, I see
Aimbot
AimbotOP3y ago
how often you click, which buttons etc
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Aimbot
AimbotOP3y ago
I already have everything else actually I still don't know what should I exactly try (call me noob)
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Aimbot
AimbotOP3y ago
but how can I subscribe without using static method again?
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Aimbot
AimbotOP3y ago
Sorry for wasting your time, issue was me putting the subscriber in the wrong place for longer than 1h nosanity Thanks for help ❤️
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server