Jump to content

Recommended Posts

Posted (edited)

Why do I get "Variable used without being declared" here for $Hoek1Noord[0]?

The variable is literaly used for pixelgelcolor?

HotKeySet("q", "Hoek1Noord")
HotKeySet("{ESC}", "Terminate")

Global $colorHoek1Noord
Global $colorHoek2Noord

Func Terminate()
   Exit 1
EndFunc

Func Hoek1Noord()
   $Hoek1Noord = MouseGetPos()
   sleep(10)
   $colorHoek1Noord = PixelGetColor($Hoek1Noord[0], $Hoek1Noord[1])
EndFunc

Do
   sleep(10)

Until $colorHoek1Noord = True

sleep(1000)
Mousemove($Hoek1Noord[0],$Hoek1Noord[1])
 

Edited by Zwettenduvel
  • Developers
Posted (edited)
16 minutes ago, Zwettenduvel said:

The variable is literaly used for pixelgelcolor?

But part of a func, so no garantee it was created there.  This script has a games vipe ...right?

Edited by Jos

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

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
×
×
  • Create New...