Jump to content

Recommended Posts

Posted

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

Posted

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:

 

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted
#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

 

Posted

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

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

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

Posted
  On 1/24/2017 at 8:02 AM, 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

Expand  

Thanks ill try a restart!

 

Posted
  On 1/24/2017 at 8:02 AM, 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

Expand  

Restarted my computer still the same problem..

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

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:

  Reveal hidden contents

 

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

  Reveal hidden contents

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:

  Reveal hidden contents

 

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

  Reveal hidden contents

Posted

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

My UDFs and Tutorials:

  Reveal hidden contents

 

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
  • Recently Browsing   0 members

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