C# Hotkey Fix

En curso Publicado Jan 19, 2014 Pagado a la entrega
En curso Pagado a la entrega

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

}

Programación en C Programación en C# Programación en C++

Nº del proyecto: #5337373

Sobre el proyecto

7 propuestas Proyecto remoto Activo Jan 24, 2014

7 freelancers están ofertando un promedio de $42 por este trabajo

LearningNew

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

$33 USD en 5 días
(49 comentarios)
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 Más

$25 USD en 1 día
(30 comentarios)
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 en 2 días
(3 comentarios)
4.5
amitvibhuti

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

$25 USD en 1 día
(6 comentarios)
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 en 1 día
(0 comentarios)
0.0
tuzi92

A proposal has not yet been provided

$15 USD en 1 día
(0 comentarios)
0.0