Sign in to follow this  
Followers 0
JohnOne

Command prompt window [Solved]

3 posts in this topic

#1 ·  Posted (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 by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites



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;
}

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0