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);
}
c++
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.
add a comment |
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);
}
c++
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
add a comment |
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);
}
c++
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++
c++
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
add a comment |
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
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
i update the question sorry about that
– JustCry
6 hours ago