Chakratos Posted January 28, 2014 Share Posted January 28, 2014 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 Link to comment Share on other sites More sharing options...
JohnOne Posted January 28, 2014 Share Posted January 28, 2014 Show how you use includes in both files. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Chakratos Posted January 28, 2014 Author Share Posted January 28, 2014 In my Chakratos.au3: #include <Misc.au3> In my Example script: #include <Chakratos.au3> LG Chakratos Link to comment Share on other sites More sharing options...
JohnOne Posted January 28, 2014 Share Posted January 28, 2014 #include "Chakratos.au3" AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Chakratos Posted January 28, 2014 Author Share Posted January 28, 2014 (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 January 28, 2014 by Chakratos Link to comment Share on other sites More sharing options...
JohnOne Posted January 28, 2014 Share Posted January 28, 2014 Same setup works as expected on my ... win7 32 AutoIt 3.3.8.1 Scite4AutoIt 3.3.6 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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