Sami671

i need Help with this code

6 posts in this topic

#1 ·  Posted

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



#3 ·  Posted

then tell me how to fix it !!!!

 

Share this post


Link to post
Share on other sites

#4 ·  Posted

1 hour ago, Sami671 said:

 !!!!

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

 

Share this post


Link to post
Share on other sites

#5 ·  Posted

@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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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

#6 ·  Posted

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