Jump to content
Sign in to follow this  
whiteKC

Functions Somehow Disabled?

Recommended Posts

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)

Share this post


Link to post
Share on other sites

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...

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...