C# Hotkey Fix
$10-30 USD
Paid on delivery
I actually need help with my project, i'm working on a music player for my game server.
so my game server is starting a exe and that exe have the code on it
the hotkey is working perfectly, but when the game is open, it doesnt work (fullscreen issue)
Code:
[[login to view URL]("[login to view URL]")]
private static extern bool RegisterHotKey(IntPtr hWnd, int id, int fsModifiers, int vk);
[[login to view URL]("[login to view URL]")]
private static extern bool UnregisterHotKey(IntPtr hWnd, int id);
enum KeyModifier
{
None = 0,
Alt = 1,
Control = 2,
Shift = 4,
WinKey = 8
}
public Form1()
{
InitializeComponent();
int id = 0; // The id of the hotkey.
RegisterHotKey([login to view URL], id, (int)[login to view URL], [login to view URL]());
}
public string status = "";
public bool hide = false;
public bool show = false;
bool first = true;
DateTime LastCheck = [login to view URL];
protected override void WndProc(ref Message m)
{
[login to view URL](ref m);
if ([login to view URL] == 0x0312)
{
Keys key = (Keys)(((int)[login to view URL] >> 16) & 0xFFFF);
KeyModifier modifier = (KeyModifier)((int)[login to view URL] & 0xFFFF);
int id = [login to view URL]();
Radio();
}
}
private void ExampleForm_FormClosing(object sender, FormClosingEventArgs e)
{
UnregisterHotKey([login to view URL], 0);
}
Project ID: #5337373
About the project
7 freelancers are bidding on average $42 for this job
Need more details.........................................................................................................................
Hi Sir, I am ready to work for you.I have 8 years of experience in C/C++/java and Iphone/android. please see some of my works also check my reviews you will get better idea about my skill.I deliver quality work within More
Hello. If you need a real hotkey, so it works when your app in background, when other app in fullscreen etc - you'll need to set windows hook, using SetWindowsHookEx API. I can help with it Regards
I have 9 years expertise and through my skills and dedication, I assure you the success of this project
Hi, I can help you to fix the problem. I have the experience in fixing this kind of issues. Cheers, Tharindu