Jump to content
Sign in to follow this  
xZZTx

AutoitX Help

Recommended Posts

xZZTx

im starting AutoitX and i was just wondering how todo a few things

#include <Windows.h>
#include "AutoIt3.h"
int APIENTRY WinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR   lpCmdLine,
                     int       nCmdShow)
{
    int $T;
    $T = AU3_PixelSearch(0,0,1000,900,0xFF0000,NULL,NULL,NULL);
    if (AU3_error() == 0)
    {
        AU3_MouseMove($T[0],$T[1],NULL);
    }
    return 0;
}

Error

1>------ Build started: Project: test1, Configuration: Debug Win32 ------
1>Compiling...
1>main.cpp
1>main.cpp(15) : error C2440: '=' : cannot convert from 'void' to 'int'
1>      Expressions of type void cannot be converted to other types
1>main.cpp(18) : error C2109: subscript requires array or pointer type
1>main.cpp(18) : error C2109: subscript requires array or pointer type
1>Build log was saved at "file://Debug\BuildLog.htm"
1>test1 - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Please Explane the error to me

thank you in advanced


Sorry For Any Spelling / Grammar Errors I May Make.... I Failed English Wayyyy To Many Times..

Share this post


Link to post
Share on other sites
PsaltyDS

im starting AutoitX and i was just wondering how todo a few things

#include <Windows.h>
#include "AutoIt3.h"
int APIENTRY WinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR   lpCmdLine,
                     int       nCmdShow)
{
    int $T;
    $T = AU3_PixelSearch(0,0,1000,900,0xFF0000,NULL,NULL,NULL);
    if (AU3_error() == 0)
    {
        AU3_MouseMove($T[0],$T[1],NULL);
    }
    return 0;
}

Error

1>------ Build started: Project: test1, Configuration: Debug Win32 ------
1>Compiling...
1>main.cpp
1>main.cpp(15) : error C2440: '=' : cannot convert from 'void' to 'int'
1>      Expressions of type void cannot be converted to other types
1>main.cpp(18) : error C2109: subscript requires array or pointer type
1>main.cpp(18) : error C2109: subscript requires array or pointer type
1>Build log was saved at "file://Debug\BuildLog.htm"
1>test1 - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Please Explane the error to me

thank you in advanced

Please move to appropriate forum: ActiveX/COM Help and Support (AutoItX)

:P


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.