Jump to content
Sign in to follow this  
Briant

If _IsPressed("51") Then.... Error

Recommended Posts

Briant

for some reason when ever i try and run this it says:

If _IsPressed("51") Then

if ^ERROR

Error: Unknown function name.

 

here is a full clip:
 

  1. func smartQ()
  2.                         If _IsPressed("51") Then
  3.                         Do
  4.                                 sleep(1)
  5.                                 if _IsPressed("02") then return
  6.                         until _IsPressed("51") = 0
  7.                         Mouseclick("left")
  8.                 endif
  9.         endfunc

 

Share this post


Link to post
Share on other sites
orbs

hello and welcome to AutoIt forum,

it requires #include <Misc.au3> at the top of the script - see example in the help file.

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  

×