JohnOne Posted July 12, 2010 Share Posted July 12, 2010 (edited) When I create a project and run it a command prompt window always appears and becomes active while the program is running in debug.This happens if the Active platform is win32 or console.Any idead why this happens.Only a mousemove and mouseclick in it.#include <Windows.h> #include "AutoIt3.h" int main() { AU3_MouseMove(0,0,5); AU3_Sleep(1000); AU3_MouseClick("Primary",1020,764,1,5); } Edited July 12, 2010 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Authenticity Posted July 12, 2010 Share Posted July 12, 2010 It's a console application. You need to change to GUI application using the application properties manager, or create a new Win32 GUI project. You're using a console main function, after all... :<)Win32 GUI main function is defined as:INT WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, INT nCmdShow} { return 0; } Link to comment Share on other sites More sharing options...
JohnOne Posted July 12, 2010 Author Share Posted July 12, 2010 Perfect, thanks Authenticity. Appreciated. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now