Ascend4nt Posted May 23, 2011 Posted May 23, 2011 Will Visual C++ 10 be what AutoIt is compiled in from now on? The only reason I ask is because this will break backwards compatibility with Windows 2000 and Win XP (pre-SP2). My contributions: Performance Counters in Windows - Measure CPU, Disk, Network etc Performance | Network Interface Info, Statistics, and Traffic | CPU Multi-Processor Usage w/o Performance Counters | Disk and Device Read/Write Statistics | Atom Table Functions | Process, Thread, & DLL Functions UDFs | Process CPU Usage Trackers | PE File Overlay Extraction | A3X Script Extract | File + Process Imports/Exports Information | Windows Desktop Dimmer Shade | Spotlight + Focus GUI - Highlight and Dim for Eyestrain Relief | CrossHairs (FullScreen) | Rubber-Band Boxes using GUI's (_GUIBox) | GUI Fun! | IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) | Magnifier (Vista+) Functions UDF | _DLLStructDisplay (Debug!) | _EnumChildWindows (controls etc) | _FileFindEx | _ClipGetHTML | _ClipPutHTML + ClipPutHyperlink | _FileGetShortcutEx | _FilePropertiesDialog | I/O Port Functions | File(s) Drag & Drop | _RunWithReducedPrivileges | _ShellExecuteWithReducedPrivileges | _WinAPI_GetSystemInfo | dotNETGetVersions | Drive(s) Power Status | _WinGetDesktopHandle | _StringParseParameters | Screensaver, Sleep, Desktop Lock Disable | Full-Screen Crash Recovery Wrappers/Modifications of others' contributions: _DOSWildcardsToPCRegEx (original code: RobSaunder's) | WinGetAltTabWinList (original: Authenticity) UDF's added support/programming to: _ExplorerWinGetSelectedItems | MIDIEx UDF (original code: eynstyne) (All personal code/wrappers centrally located at Ascend4nt's AutoIT Code)
Valik Posted May 23, 2011 Posted May 23, 2011 One of you who are having a crash issue with Au3Check, please provide the following:The script. If you are obfuscating it then provide that version. I want a file I can pass to Au3Check that should cause it to crash.The OS you're running on.
Administrators Jon Posted May 23, 2011 Author Administrators Posted May 23, 2011 Will Visual C++ 10 be what AutoIt is compiled in from now on? The only reason I ask is because this will break backwards compatibility with Windows 2000 and Win XP (pre-SP2).Pretty sure it works on 2000 the last time I tried when I first installed VC10 - I think it's just the docs that remove the mention of "support". I'll need to recheck though.Edit: Hmm, maybe it was the beta of VC10 that worked. This thread seems to support what you say: http://stackoverflow.com/questions/2484511/can-i-use-visual-studio-2010s-c-compiler-with-visual-studio-2008s-c-runtimeLoss of 2000 support doesn't bother me that much (can use an older version). But XP RTM and SP1 is slightly different. I'll try the assembler hack suggested in the thread. Or I could use VC9, but I really don't want two dev envs again. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
skyteddy Posted May 24, 2011 Posted May 24, 2011 One of you who are having a crash issue with Au3Check, please provide the following: The script. If you are obfuscating it then provide that version. I want a file I can pass to Au3Check that should cause it to crash.The OS you're running on. - No obfuscator using! - OS: Windows XP Pro, SP3+, x86, German - Script:: #region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Version=Beta #endregion ;**** Directives created by AutoIt3Wrapper_GUI **** #include-once #include <array.au3> #include <date.au3> #include <inet.au3> #include <GUIComboBox.au3> #include <GuiEdit.au3> #include <GuiConstantsEx.au3> #include <Constants.au3> #include <string.au3> #include <SliderConstants.au3> #include <ButtonConstants.au3> #include <WindowsConstants.au3> #include <StaticConstants.au3> #include <ScrollBarConstants.au3> #include <Misc.au3> #include <FTPEx.au3> Opt("MustDeclareVars", 1) MsgBox(0, "Test", "Test") happy computing R@iner
Moderators Melba23 Posted May 24, 2011 Moderators Posted May 24, 2011 Valik,- OS: Vista x32 SP2 English- Obfuscator parameters: /sf /sv /om /cs=0 /cn=0 (I have tried without /om and get the same results)Result from Beta AU3Check 1.54.20.0 - always the same error code:>Running AU3Check (1.54.20.0) from:C:\Program Files\AutoIt3\Beta !>08:24:33 AU3Check ended.rc:3This one crashes in both original and obfuscated form:This one crashes only in obfuscated form:Neither script crashes in either form with Release AU3Check 1.54.19.0Let me know if you need anything more.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Administrators Jon Posted May 24, 2011 Author Administrators Posted May 24, 2011 Pretty sure it works on 2000 the last time I tried when I first installed VC10 - I think it's just the docs that remove the mention of "support". I'll need to recheck though.Edit: Hmm, maybe it was the beta of VC10 that worked. This thread seems to support what you say: http://stackoverflow.com/questions/24845...piler-with-visual-studio-2008sLoss of 2000 support doesn't bother me that much (can use an older version). But XP RTM and SP1 is slightly different. I'll try the assembler hack suggested in the thread. Or I could use VC9, but I really don't want two dev envs again.I've added the workarounds for the main AutoIt exes so we'll see if it breaks anything. (I tested on win2k that basic stuff runs). - Changed: Compiling with VC10. Added workarounds for Win2000/XP RTM to allow execution of AUtoIt, Aut2Exe, Au3Info, Au3Check and AutoItHelp. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
asdf8 Posted May 24, 2011 Posted May 24, 2011 I, too, crash Au3Check 1.54.20 the following script: ConsoleWrite(_data() & @CRLF) Func _data() Local $s = "0x0000010001002020080000000000E80200001600000028000000200000004000000001000400000000000002" $s &= _R("0",20) & "100000001" & _R("0",19) & "80000080000000808000800000008000800080800000C0C0C00080808000" $s &= "0000FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF" & _R("0",35) & _R("0",20) & "0000000000" $s &= _R("000FFFFFFFFFFFFFFFFFFFFFFFFFFFFF",21) & "000" & _R("F",29) & _R("0",35) & "7770" & _R("C",21) $s &= "07770007070" & _R("C",21) & "07070007770" & _R("C",21) & "0777" & _R("0",129) & "FFFFFFFF" $s &= _R("80000000",28) & _R("F",24) Return $s EndFunc Func _R($str, $count) Local $i, $ret = "" For $i = 1 To $count $ret &= $str Next Return $ret EndFunc Win XP sp3 x86
Richard Robertson Posted May 24, 2011 Posted May 24, 2011 Why does AutoIt still support pre-XP anyway? Even XP is supposed to be phasing out soon.
GEOSoft Posted May 24, 2011 Posted May 24, 2011 Win2000 is still supported which is pre-XPAFAIK AutoIt supports all of the NT platforms from Win2000 up.Even XP is supposed to be phasing out soon.Support for XP ends soon. That in itself doesn't phase out the product. The product is phased out when there is no one left using it and it will be a long time before XP is gone from the scene. Ask any technician how many XP systems he still sees in use.It would be better to drop back to VC9 than to drop XP from the products supported by AutoIt. Getting VC10 working properly is a far better solution. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
trancexx Posted May 24, 2011 Posted May 24, 2011 I, too, crash Au3Check 1.54.20 the following script: ConsoleWrite(_data() & @CRLF) Func _data() Local $s = "0x0000010001002020080000000000E80200001600000028000000200000004000000001000400000000000002" $s &= _R("0",20) & "100000001" & _R("0",19) & "80000080000000808000800000008000800080800000C0C0C00080808000" $s &= "0000FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF" & _R("0",35) & _R("0",20) & "0000000000" $s &= _R("000FFFFFFFFFFFFFFFFFFFFFFFFFFFFF",21) & "000" & _R("F",29) & _R("0",35) & "7770" & _R("C",21) $s &= "07770007070" & _R("C",21) & "07070007770" & _R("C",21) & "0777" & _R("0",129) & "FFFFFFFF" $s &= _R("80000000",28) & _R("F",24) Return $s EndFunc Func _R($str, $count) Local $i, $ret = "" For $i = 1 To $count $ret &= $str Next Return $ret EndFunc Win XP sp3 x86 And this? Func _A() _B() EndFunc Func _B() ;e.g. nothing EndFunc ♡♡♡ . eMyvnE
Administrators Jon Posted May 24, 2011 Author Administrators Posted May 24, 2011 Win2000 is still supported which is pre-XPAFAIK AutoIt supports all of the NT platforms from Win2000 up.Support for XP ends soon. That in itself doesn't phase out the product. The product is phased out when there is no one left using it and it will be a long time before XP is gone from the scene. Ask any technician how many XP systems he still sees in use.It would be better to drop back to VC9 than to drop XP from the products supported by AutoIt. Getting VC10 working properly is a far better solution.My last 4 projects were all for global banks. All running XP >.< Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
Valik Posted May 24, 2011 Posted May 24, 2011 And this? Func _A() _B() EndFunc Func _B() ;e.g. nothing EndFunc This crashes for me so now I have a place to start debugging. Thanks everyone for finding a simple script to test with.
Valik Posted May 24, 2011 Posted May 24, 2011 Totally baffled why the code crashes. Looks like it should work perfectly fine.
BrewManNH Posted May 24, 2011 Posted May 24, 2011 Just an FYI, I just downloaded the beta and ran Au3Check and it's giving me a version number of 1.54.19 but still crashes with Trancexx's script."C:\Program Files\AutoIt3\Beta\Au3Check.exe"AutoIt3 Syntax Checker v1.54.19 Copyright © 2007-2010 Tylo & AutoIt Team If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
Valik Posted May 24, 2011 Posted May 24, 2011 The file version is what matters, not the version the application reports. That appears to be an out-of-date string.
BrewManNH Posted May 24, 2011 Posted May 24, 2011 Check, the file version on the Details tab is showing 1.54.20. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
jaberwacky Posted May 24, 2011 Posted May 24, 2011 This may be an obvious question. How do I know if I'm using the beta? I have it checked to use 3.3.7.1 in the SciTE Config for AutoIt menu. But when I run this: MsgBox(0, '', @AutoItVersion) then it says I'm using 3.3.6.1. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum?
BrewManNH Posted May 24, 2011 Posted May 24, 2011 (edited) You have to specify in every script to use the beta by including this: #AutoIt3Wrapper_Version=Beta.correction, that's how you tell it to compile it using the beta, to RUN it using the beta there's a tool on the Tools menu that allows you to use the beta version to run/compile etc. Edited May 24, 2011 by BrewManNH If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
Administrators Jon Posted May 24, 2011 Author Administrators Posted May 24, 2011 Totally baffled why the code crashes. Looks like it should work perfectly fine.Maybe it's one of those bugs where it's always been broken and some in memory buffer has moved with the new compiler and a previously unseen memory problem is showing up. I hate those. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
Developers Jos Posted May 24, 2011 Developers Posted May 24, 2011 You have to specify in every script to use the beta by including this: #AutoIt3Wrapper_Version=Beta.correction, that's how you tell it to compile it using the beta, to RUN it using the beta there's a tool on the Tools menu that allows you to use the beta version to run/compile etc.assuming you have the full version of SciTE installed:F1=Help Production F5=Run Production (Will run AU3Check and AutoIt3) Ctrl+F5=Au3Check Production F7=Compile Production (Will run AU3Check and Aut2Exe) Alt+F1=Help Beta Alt+F5=Run Beta (Will run AU3Check and AutoIt3) Alt+Ctrl+F5=Au3Check Beta Alt+F7=Compile Beta (Will run AU3Check and Aut2Exe) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts