Question:
Key Press/Mouse Click simulator?
solnushka123
2009-05-25 17:08:32 UTC
i need a program that would simulate a key pressing or mouse click every once in a while
do u know any programs that can help do this?
if not, with what language can I make one?
Six answers:
guitarp11
2009-05-25 17:20:50 UTC
I made one in C++ a coupla days back. Here is a simple code to 'left click' once per second 100 times:



#include

using namespace std;



void MouseClick()

{

Sleep(75);

mouse_event(0x00000002, 0,0,0,0);

Sleep(25);

mouse_event(0x00000004, 0,0,0,0);

}



int main(){

x = 0;

while (x < 100) // will do the below (left click) 100 times

{

MouseClick();

Sleep(1000); // Sleep for 1 second

x++;

}

return 0;

}





__________

Want the full source code or a program to do the above? It also contains functions for simulating keyboard presses, right mouse clicks, and double (left) clicks.

guitarp_11@yahoo.com



Also: https://answersrip.com/question/index?qid=20090525164956AAIStoo
?
2016-12-10 22:03:34 UTC
Mouse Click Simulator
?
2016-05-28 00:19:04 UTC
1
2014-08-22 22:16:55 UTC
Hello,

you can find a free download of Flight Simulator X here: http://bit.ly/1p0vDSM



Finally the full version is avaiable!

Try it out

Regards
Luke
2009-05-25 17:14:14 UTC
A quick google search [mouse click]:

http://www.google.com/search?hl=en&q=Mouse+Click+simulator&btnG=Search



[key press]:

http://www.google.com/search?hl=en&q=keypress+simulator&btnG=Search



I've used VBScript myself. Check it out..

An example, after a quick search: Copy this into Notepad and save it as "enter.vbs" WITH the qoutes in the name. Assign a keyboard shortcut to it. When you press the keys, it will hit the enter key 5 times.



Set WshShell = WScript.CreateObject("WScript.Shell")



WshShell.SendKeys "{enter}"

WScript.Sleep 10

WshShell.SendKeys "{enter}"

WScript.Sleep 10

WshShell.SendKeys "{enter}"

WScript.Sleep 10

WshShell.SendKeys "{enter}"

WScript.Sleep 10

WshShell.SendKeys "{enter}"

WScript.Sleep 10
18 gibbs 20
2009-05-25 17:16:06 UTC
Try a program called shortkeys


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...