Dana86

Why am I getting these errors???!

43 posts in this topic

This is so strange I keep getting this error func not found among other errors... my autoit works fine on my other computers but this computer gets strange errors... Please help...

 

Surface Book 2016

Capture.PNG

Share this post


Link to post
Share on other sites



Welcome to AutoIt and the forum!

Could you please post your code as text so anyone trying to help you can play with the code?
Details can be found here:

 

1 person likes this

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
#include <MsgBoxConstants.au3>

; Press Esc to terminate script, Pause/Break to "pause"

Global $g_bPaused = False

HotKeySet("{PAUSE}", "HotKeyPressed")
HotKeySet("{ESC}", "HotKeyPressed")
HotKeySet("+!d", "HotKeyPressed") ; Shift-Alt-d

While 1
    Sleep(100)
WEnd

Func HotKeyPressed()
    Switch @HotKeyPressed ; The last hotkey pressed.
        Case "{PAUSE}" ; String is the {PAUSE} hotkey.
            $g_bPaused = Not $g_bPaused
            While $g_bPaused
                Sleep(100)
                ToolTip('Script is "Paused"', 0, 0)
            WEnd
            ToolTip("")

        Case "{ESC}" ; String is the {ESC} hotkey.
            Exit

        Case "+!d" ; String is the Shift-Alt-d hotkey.
            MsgBox($MB_SYSTEMMODAL, "", "This is a message.")

    EndSwitch
EndFunc   ;==>HotKeyPressed

 

Share this post


Link to post
Share on other sites

Its just an example code I found from autoit documentation.

Share this post


Link to post
Share on other sites

I do not get any errors when running your script with AutoIt 3.3.12.0.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
1 minute ago, water said:

I do not get any errors when running your script with AutoIt 3.3.12.0.

My

SciTE
Version 3.6.6

Autoit

Latest version: v3.3.14.2

T_T...

Share this post


Link to post
Share on other sites
6 minutes ago, water said:

I do not get any errors when running your script with AutoIt 3.3.12.0.

Maybe because I'm windows 10???? T_T

Share this post


Link to post
Share on other sites

Heres a screen shot of the error with the exact same code with version 3.3.12.0...

:'(

 

:'( 

Capture2.PNG

Share this post


Link to post
Share on other sites

SciTE
Version 3.4.4

Autoit version 3.3.12.0

Windows 10 Home

Runs without errors, i have had similar issues if i have some instance opened elsewhere or not saved and reopened the script

Share this post


Link to post
Share on other sites

#10 ·  Posted

2 minutes ago, smellyfingers said:

SciTE
Version 3.4.4

Autoit version 3.3.12.0

Windows 10 Home

Runs without errors, i have had similar issues if i have some instance opened elsewhere or not saved and reopened the script

Thanks ill try a restart!

 

Share this post


Link to post
Share on other sites

#11 ·  Posted

4 minutes ago, smellyfingers said:

SciTE
Version 3.4.4

Autoit version 3.3.12.0

Windows 10 Home

Runs without errors, i have had similar issues if i have some instance opened elsewhere or not saved and reopened the script

Restarted my computer still the same problem..

Share this post


Link to post
Share on other sites

#12 ·  Posted

Ah, your using 3.3.14 on this computer?

Share this post


Link to post
Share on other sites

#13 ·  Posted

I would try a complete uninstall of autoit and scite and then just install 3.3.12.0 and scite 3.4.4 again just to make sure that there isn't any version conflict going on in windows and see if that works

Share this post


Link to post
Share on other sites

#14 ·  Posted

I tested with AutoIt 3.3.15.0 (beta) and it works as well.

The error message "illegal character" makes me think ... I just copied the code from #3.
Could you please copy the code from post #3 into SciTe and try again? Maybe there are some invisible characters in your code.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

@water

that's an issue with the latest update to IPB, not her code.  Well not her typing, if she copy pasted from the forums, then she grabbed some of those characters and deleting all the indention would fix it (and I see it now in the OP, that is most certainly the issue).

Edited by iamtheky

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

#16 ·  Posted

I think it might be the other way round.
Her script might contain an illegal and invisible character and hence AutoIt fires the error. By copy/paste to the forum the invisible/illegal character gets dropped. That's why everyone here doesn't see the error.
Does this make sense?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#17 ·  Posted (edited)

I can repro, copy/paste out of the window in edge without using the popout

(I cannot however post screenshots because nobody can figure out how to delete my previous attachments to free space)

This is the console output:

C:\Users\akyle\Desktop\DEV\FORUM_TESTS\New AutoIt v3 Script.au3 (12) : ==> Unable to parse line.:    
    Sleep(100)
^ ERROR
>Exit code: 1    Time: 0.1795

 

You could opt to character replace ASCII code 160 (non-breaking space) with 32 (normal space), as 160 is coming off the code block on the forum.

nobody is typing &nbsp instead of tab or space 4 times, and there certainly is not an outbreak of people doing so, so I'm still leaning towards IPB being the culprit.

Edited by iamtheky

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

#18 ·  Posted

Hey guys I tried all of your advise  still no luck... autoit seems to work just fine in my two other computers.

Share this post


Link to post
Share on other sites

#19 ·  Posted

In this case I suggest to unisntall/reinstall AutoIt on this computer :)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#20 ·  Posted

17 minutes ago, water said:

In this case I suggest to unisntall/reinstall AutoIt on this computer :)

Ya I tried that too.. 😢

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