Jump to content

Search the Community

Showing results for tags 'wrong number of arguments'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. I am trying to call a function with 7 arguments and when i do so, it says i called with only 6. When I add another argument, it says called with 8 arguments max is 7. PS this code runs just fine when I use it out of my MainProgram.au3 in a separate Temp.au3. But when i use it with the rest of my Functions it keeps returning the errors. ;TEMP.AU3 Global $LoginTextField[2] $LoginTextField[0]=1 $LoginTextField[1]=23 CustomClick("videoz","","","left",2,$LoginTextField[0],$LoginTextField[1]) ;clicking Login field Func CustomClick($sTitle,$sText,$sControlId,$sButton,$iClicks,$iX,$iY) ConsoleWrite("C. Clicking " &"("& $iX &","& $iY &")") Local $OffSetX=0 Local $OffSetY=0 ControlClick($sTitle,$sText,$sControlId,$sButton,$iClicks,$iX+$OffSetX,$iY+$OffSetY) MouseMove($iX+$OffSetX,$iY+$OffSetY) EndFunc Note: I pasted the exact same code in my MainProgram.au3 with minor changes like initialising the variable by a function (yes there is no problems with initilisation, I rechecked) and Declaring variables in separate functions and calling them in separate functions. There are no conflicts, variables of same name or similar stuff. Note2: The EXACT same code compiles fine on my PC2, (both have the recommeded autoit installed, updated, both are windows 10, amd and 64 bits) Is this a bug in autoit? Because previously, I had a similar problem with another function, which used to return errors saying wrong number of arguments while compiling on my PC1 but on PC2 the same EXACT code compiled without any issues. Then the program, compiled fine on PC1 too the next morning after a Reboot and stuff Has this happened with anyone before?
×
×
  • Create New...