Jump to content
Sign in to follow this  
whiteKC

Functions Somehow Disabled?

Recommended Posts

whiteKC

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
NegativeNrG

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

Share this post


Link to post
Share on other sites
whiteKC

Thánks for the respone.

Peace Out

Share this post


Link to post
Share on other sites
whiteKC

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
whiteKC

Works now with Beta version!

END

______

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.