C# Hotkey Fix

В роботі Опубліковано %project.relative_time Оплачується при отриманні
В роботі Оплачується при отриманні

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);

}

Програмування на С Програмування на C# Програмування на C++

ID Проекту: #5337373

Про проект

7 заявок(-ки) Дистанційний проект Остання активність Jan 24, 2014

7 фрілансерів(-и) готові виконати цю роботу у середньому за $42

LearningNew

Need more details.........................................................................................................................

$33 USD за 5 дні(-в)
(49 відгуків(и))
6.3
goswamiarpit475

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 Більше

$25 USD за 1 день
(30 відгуків(и))
5.5
Asrh

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

$111 USD за 2 дні(-в)
(3 відгуків(и))
4.5
amitvibhuti

I have 9 years expertise and through my skills and dedication, I assure you the success of this project

$25 USD за 1 день
(6 відгуків(и))
0.8
prabodhikatsl

Hi, I can help you to fix the problem. I have the experience in fixing this kind of issues. Cheers, Tharindu

$15 USD за 1 день
(0 відгуків(и))
0.0
tuzi92

A proposal has not yet been provided

$15 USD за 1 день
(0 відгуків(и))
0.0