Jump to content

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


Briant
 Share

Recommended Posts

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

 

Link to comment
Share on other sites

hello and welcome to AutoIt forum,

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

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...