Sign in to follow this  
Followers 0
Chakratos

#Include in my own UDF won´t work :(

6 posts in this topic

Hey,

im trying to make my first UDF but i have problems.

In my UDF i need the Misc.au3 and Inlcuded it.

But if i Include my UDF it say´s me "C:\Program Files (x86)\AutoIt3\Include\Chakratos.au3(12,27) : ERROR: _IsPressed(): undefined function."

Only if i Include the Misc.au3 in the Script i wan´t to youse my UDF it will work :(

I hope you understand what i mean

LG Chakratos

Share this post


Link to post
Share on other sites



In my Chakratos.au3: #include <Misc.au3>

In my Example script: #include <Chakratos.au3>

LG Chakratos

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Didn´t worked because the UDF is in the Includes folder already.

Here i post both:

Chakratos.au3

#include <Misc.au3>

Func Waitforkey($key)
    While Not _IsPressed($key,"user32.dll")
        Sleep(100)
    WEnd
EndFunc

Example.au3

#include <Chakratos.au3>
Waitforkey(01)

LG Chakratos

Edited by Chakratos

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  
Followers 0