Jump to content
Sami671

i need Help with this code

Recommended Posts

Sami671

i have the au3 code:

While 1
  $pix = PixelSearch(0,0,1359,767,0xDB8825)
  if IsArray($pix) = True Then
MouseMove($pix[0]+10,$pix[1]+60,0)
EndIf
WEnd

when i convert it to C++:

#include <windows.h>
#include "AutoItX3_DLL.h"
int main()
{
while(1)
{
$pix = Au3_PixelSearch(0,0,1359,767,0xDB8825)
  if (IsArray($pix)) = True 
  {
Au3_MouseMove($pix[0]+10,$pix[1]+60,0)
}
}
}

 

can some fix the code plz!

and thanks.

 

Share this post


Link to post
Share on other sites
Sami671

then tell me how to fix it !!!!

 

Share this post


Link to post
Share on other sites
caramen
1 hour ago, Sami671 said:

 !!!!

????? < does not even give me the desire to help

 

Share this post


Link to post
Share on other sites
Jos

@caramen, please don't try to lecture somebody that isn't used to write English like you. It will only lead to more confusion. ;)

@Sami671, I assume you wanted to ask a question in stead of telling me to write the code for you? 

I think you first need to study some C++ coding and the Helpfile provided on how to use the DLL version of AutoIt3X.

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
caramen
Received

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

×