Detect mouse press and send itself [on hold]











up vote
-3
down vote

favorite












This is the code im trying to accomplish but it does not work as expected does any body have idea how can i implement it.
When i use different hotkey for instance "VK_SHIFT" it works perfectly.



if (GetAsyncKeyState(VK_LBUTTON) & 0x8000)
{
mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);
Sleep(30);
mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL);
Sleep(30);
}









share|improve this question















put on hold as unclear what you're asking by hellow, Unheilig, Lie Ryan, greg-449, Max Vollmer 7 hours ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.















  • i update the question sorry about that
    – JustCry
    6 hours ago















up vote
-3
down vote

favorite












This is the code im trying to accomplish but it does not work as expected does any body have idea how can i implement it.
When i use different hotkey for instance "VK_SHIFT" it works perfectly.



if (GetAsyncKeyState(VK_LBUTTON) & 0x8000)
{
mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);
Sleep(30);
mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL);
Sleep(30);
}









share|improve this question















put on hold as unclear what you're asking by hellow, Unheilig, Lie Ryan, greg-449, Max Vollmer 7 hours ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.















  • i update the question sorry about that
    – JustCry
    6 hours ago













up vote
-3
down vote

favorite









up vote
-3
down vote

favorite











This is the code im trying to accomplish but it does not work as expected does any body have idea how can i implement it.
When i use different hotkey for instance "VK_SHIFT" it works perfectly.



if (GetAsyncKeyState(VK_LBUTTON) & 0x8000)
{
mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);
Sleep(30);
mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL);
Sleep(30);
}









share|improve this question















This is the code im trying to accomplish but it does not work as expected does any body have idea how can i implement it.
When i use different hotkey for instance "VK_SHIFT" it works perfectly.



if (GetAsyncKeyState(VK_LBUTTON) & 0x8000)
{
mouse_event(MOUSEEVENTF_LEFTDOWN, NULL, NULL, NULL, NULL);
Sleep(30);
mouse_event(MOUSEEVENTF_LEFTUP, NULL, NULL, NULL, NULL);
Sleep(30);
}






c++






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 6 hours ago









gsamaras

47.6k2393173




47.6k2393173










asked 9 hours ago









JustCry

384




384




put on hold as unclear what you're asking by hellow, Unheilig, Lie Ryan, greg-449, Max Vollmer 7 hours ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






put on hold as unclear what you're asking by hellow, Unheilig, Lie Ryan, greg-449, Max Vollmer 7 hours ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • i update the question sorry about that
    – JustCry
    6 hours ago


















  • i update the question sorry about that
    – JustCry
    6 hours ago
















i update the question sorry about that
– JustCry
6 hours ago




i update the question sorry about that
– JustCry
6 hours ago

















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

SQL update select statement

'app-layout' is not a known element: how to share Component with different Modules