Dana86 Posted January 24, 2017 Share Posted January 24, 2017 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 Link to comment Share on other sites More sharing options...
water Posted January 24, 2017 Share Posted January 24, 2017 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: Dana86 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Dana86 Posted January 24, 2017 Author Share Posted January 24, 2017 #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 Link to comment Share on other sites More sharing options...
Dana86 Posted January 24, 2017 Author Share Posted January 24, 2017 Its just an example code I found from autoit documentation. Link to comment Share on other sites More sharing options...
water Posted January 24, 2017 Share Posted January 24, 2017 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Dana86 Posted January 24, 2017 Author Share Posted January 24, 2017 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... Link to comment Share on other sites More sharing options...
Dana86 Posted January 24, 2017 Author Share Posted January 24, 2017 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 Link to comment Share on other sites More sharing options...
Dana86 Posted January 24, 2017 Author Share Posted January 24, 2017 Heres a screen shot of the error with the exact same code with version 3.3.12.0... Link to comment Share on other sites More sharing options...
smellyfingers Posted January 24, 2017 Share Posted January 24, 2017 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 Link to comment Share on other sites More sharing options...
Dana86 Posted January 24, 2017 Author Share Posted January 24, 2017 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! Link to comment Share on other sites More sharing options...
Dana86 Posted January 24, 2017 Author Share Posted January 24, 2017 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.. Link to comment Share on other sites More sharing options...
smellyfingers Posted January 24, 2017 Share Posted January 24, 2017 Ah, your using 3.3.14 on this computer? Link to comment Share on other sites More sharing options...
smellyfingers Posted January 24, 2017 Share Posted January 24, 2017 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 Link to comment Share on other sites More sharing options...
water Posted January 24, 2017 Share Posted January 24, 2017 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
iamtheky Posted January 24, 2017 Share Posted January 24, 2017 (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 January 24, 2017 by iamtheky ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
water Posted January 24, 2017 Share Posted January 24, 2017 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
iamtheky Posted January 24, 2017 Share Posted January 24, 2017 (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   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 January 24, 2017 by iamtheky ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Dana86 Posted January 25, 2017 Author Share Posted January 25, 2017 Hey guys I tried all of your advise still no luck... autoit seems to work just fine in my two other computers. Link to comment Share on other sites More sharing options...
water Posted January 25, 2017 Share Posted January 25, 2017 In this case I suggest to unisntall/reinstall AutoIt on this computer My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Dana86 Posted January 25, 2017 Author Share Posted January 25, 2017 17 minutes ago, water said: In this case I suggest to unisntall/reinstall AutoIt on this computer Ya I tried that too.. 😢 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now