Jump to content

AutoItSetOption (SendKeyDelay, ..) not working inspite of #includes present


settler
 Share

Go to solution Solved by Danyfirex,

Recommended Posts

Hello all,

firstly, a big Thank-You to all developers & admins for creating an awesome free macro language & editor and support forum!

I've found a strange bug and have already searched for solutions, but i can't find the correct #include file which is needed here 😕

Is there something i missed?

#include <AutoItConstants.au3>
#include <Constants.au3>
#include <Misc.au3>
#include <MsgBoxConstants.au3>
#include <GUIConstantsEx.au3>

AutoItSetOption(SendKeyDelay,80)
AutoItSetOption(SendKeyDownDelay,20)
; Opt(SendKeyDelay,80)
; Opt(SendKeyDownDelay,20)

This gave this result:

>Running AU3Check (3.3.14.5)  from:E:\Apps\AutoIt3  input:E:\Apps\AutoIt3_my_scripts\test.au3
"E:\Apps\AutoIt3_my_scripts\test.au3"(7,29) : error: SendKeyDelay(): undefined function.
AutoItSetOption(SendKeyDelay,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"E:\Apps\AutoIt3_my_scripts\test.au3"(8,33) : error: SendKeyDownDelay(): undefined function.
AutoItSetOption(SendKeyDownDelay,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
E:\Apps\AutoIt3_my_scripts\test.au3 - 2 error(s), 0 warning(s)
!>08:25:22 AU3Check ended. Press F4 to jump to next error.rc:2
+>08:25:22 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 0.7933

PS: i tested with both variants, to no avail

(this is just my tiny test-prog to solve this issue for my main project)

Before i used that Keyboard-option, my >700 line program (including lots of comments) compiled and ran perfectly without any issues.

 

Thanks for your time,

settler

Link to comment
Share on other sites

  • Solution

Hello.  It needs a string as option parameter.

Opt('SendKeyDelay',80)
Opt('SendKeyDownDelay',20)

 

Saludos

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