Orcrist Grandmaster Cheater
Reputation: 0
Joined: 13 Jul 2008 Posts: 748 Location: Some where under ground =P
|
Posted: Sun Feb 08, 2009 12:35 pm Post subject: [Help] Whats wrong with my script? |
|
|
Yeah I'm trying to make a simple Auto Clicker...
And This is my script
| Code: | #include <iostream>
#include <windows.h>
int main()
{
int clickSpeed;
std::cout << "Hey there lazy bum...Want me to click your mouse for you, Mr.Lazy?\n" Sleep(500);
std::cout << "How fats do you want me to click it? Gear 1, Gear2, Gear 3, Gear 4, or Gear 5? Just type in 1, 2, 3, 4, or 5. Don't add the Gear!\n";
std::cout << "Gear 1... Really Slow!\n";
std::cout << "Gear 2... Its better...\n";
std::cout << "Gear 3... Fast.\n";
std::cout << "Gear 4... WTF SLOW DOWN TOOO FAAAASSSSTTT!!!!!!AAAAWWW!!!!\n";
std::cout << "Gear 5... Only for the Pros.\n";
std::cin >> clickSpeed;
if
(clickSpeed == 1)
{
std::cout << "I'll click for you in 5...\n";
Sleep(1000);
std::cout << "4...\n";
Sleep(1000);
std::cout << "3...\n";
Sleep(1000);
std::cout << "2...\n";
Sleep(1000);
std::cout << "1...\n";
Sleep(1000);
for
(;;)
{
Sleep(500);
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
std::cout << "I'm clicking Mr.Lazy! Hit the X To stop at the top right!\n";
}
}
if
(clickSpeed == 2)
{
std::cout << "I'll click for you in 5...\n";
Sleep(1000);
std::cout << "4...\n";
Sleep(1000);
std::cout << "3...\n";
Sleep(1000);
std::cout << "2...\n";
Sleep(1000);
std::cout << "1...\n";
Sleep(1000);
for
(;;)
{
Sleep(200);
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
std::cout << "I'm clicking Mr.Lazy! Hit the X To stop at the top right!\n";
}
}
if
(clickSpeed == 3)
{
std::cout << "I'll click for you in 5...\n";
Sleep(1000);
std::cout << "4...\n";
Sleep(1000);
std::cout << "3...\n";
Sleep(1000);
std::cout << "2...\n";
Sleep(1000);
std::cout << "1...\n";
Sleep(1000);
for
(;;)
{
Sleep(100);
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
std::cout << "I'm clicking Mr.Lazy! Hit the X To stop at the top right!\n";
}
}
if
(clickSpeed == 4)
{
std::cout << "I'll click for you in 5...\n";
Sleep(1000);
std::cout << "4...\n";
Sleep(1000);
std::cout << "3...\n";
Sleep(1000);
std::cout << "2...\n";
Sleep(1000);
std::cout << "1...\n";
Sleep(1000);
for
(;;)
{
Sleep(50);
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
std::cout << "I'm clicking Mr.Lazy! Hit the X To stop at the top right!\n";
}
}
if
(clickSpeed == 5)
{
std::cout << "I'll click for you in 5...\n";
Sleep(1000);
std::cout << "4...\n";
Sleep(1000);
std::cout << "3...\n";
Sleep(1000);
std::cout << "2...\n";
Sleep(1000);
std::cout << "1...\n";
Sleep(1000);
for
(;;)
{
Sleep(20);
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
std::cout << "I'm clicking Mr.Lazy! Hit the X To stop at the top right!\n";
}
}
std::cout << "Wow Yuor IQ is -683! This isn't hard! Try it again....\n";
system("pause");
return 0;
}
|
It says on the error box C:\Documents and Settings\Nick\Desktop\Mr.LazyAC.cpp In function `int main()':
and then
Line: 7 File:C:\Documents and Settings\Nick\Desktop\Mr.LazyAC.cpp Message: expected `;' before "Sleep"
My line 7 says
| Code: | | std::cout << "Hey there lazy bum...Want me to click your mouse for you, Mr.Lazy?\n" Sleep(500); |
_________________
|
|