whiteKC Posted May 14, 2006 Share Posted May 14, 2006 Hi all. At first this script worked fine, but suddently it seems that functions has been disabled. Obviously i have been messing with some settings i shouldnt have been messing with. Opt("PixelCoordMode",2) Opt("MouseCoordMode",2) Opt("ColorMode", 0) #Include <Misc.au3> $v_dll = 'user32.dll' $mschk = MouseGetPos() while 1 if _IsPressed(01,$v_dll) then <-------------IsPressed now shows with black inc. $mschk = MouseGetPos() $colorwin = PixelGetColor($mschk[0], $mschk[1]) $colorwin1 = '0x' & Hex(PixelGetColor($mschk[0], $mschk[1]), 6) $ms = MsgBox(1,"",$colorwin & " = Decimal value" & @CRLF & $colorwin1 & " = Hex value"& @CRLF & "X =" & $mschk[0] & " Y = " & $mschk[1]) if $ms = 2 then exit endif endif sleep(20) WEnd --------- This is the ErrorMessage: C:\Documents and Settings\Julian.JULLIUS\Skrivebord\Kopi af Coords.au3(9,24) : ERROR: _IsPressed(): undefined function. if _IsPressed(01,$v_dll) Link to comment Share on other sites More sharing options...
NegativeNrG Posted May 14, 2006 Share Posted May 14, 2006 #Include <Misc.au3> ? (BETA release) Or, you can search _IsPressed in Scripts and scraps. [size=20]My File Upload[/size]Register at my site and upload. Link to comment Share on other sites More sharing options...
whiteKC Posted May 14, 2006 Author Share Posted May 14, 2006 Thánks for the respone. Peace Out Link to comment Share on other sites More sharing options...
whiteKC Posted May 14, 2006 Author Share Posted May 14, 2006 Can it be becasuse of my windows language, Danish? Cause it did work after it prompted to change language, but i suddently set it to not change language... Link to comment Share on other sites More sharing options...
whiteKC Posted May 14, 2006 Author Share Posted May 14, 2006 Works now with Beta version! END ______ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now