Moderators Melba23 Posted August 11, 2014 Moderators Posted August 11, 2014 Jon,Have you seen #2834? There is definitely a bug there. 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
guinness Posted August 11, 2014 Posted August 11, 2014 About new addition - Regular expression caching - may i have small reproducer where this feature get max effect ? as a side note - what about Regular expression compiling/precompiling? The caching is "expression compiling". Jon keeps a record of the compiled expression in AutoIt and does a lookup of the expression string to see if a compiled version exists. Example request. jchd has a good one as well, but it's not my place to post it in the public forum. #AutoIt3Wrapper_UseX64=N #include <StringConstants.au3> #include <WinAPIShPath.au3> Local Const $ITERATION = 500000 Local $sFileName = @ScriptFullPath Local $hTimer = 0 Sleep(100) $hTimer = TimerInit() For $i = 0 To $ITERATION StringRegExp($sFileName, '(?:\.\w{3,}$)', '') ; Trim the extension. (guinness' way). Next ConsoleWrite(TimerDiff($hTimer) & @CRLF) ; v3.3.12.0 8.1 x64 with AutoIt 32-bit = 2789.08484282383 ; v3.3.13.16 8.1 x64 with AutoIt 32-bit = 1652.95282393131 UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018
jchd Posted August 11, 2014 Posted August 11, 2014 Feel free to post what you want, that I vomitted it or no. Beware my timings: they are pretty random and I don't have the faintest idea why, so run stuff on a more reliable PC. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
AZJIO Posted August 12, 2014 Posted August 12, 2014 Why cache? Better to return the compiled regular expression object. Or reference to an object in the form of numbers. Inside the shell is a dynamic array of objects. My other projects or all
jchd Posted August 13, 2014 Posted August 13, 2014 But then there is a need to free stored data and the task of managing them is a new burden, in case of long running applications building SREs on the fly. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
Moderators Melba23 Posted August 17, 2014 Moderators Posted August 17, 2014 Jon,Could I point you to ticket #2839 - does not look too difficult to fix. 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
steve8tch Posted August 17, 2014 Posted August 17, 2014 I do not know if this was intended or not . bugtracker - #2639 Unable to Copy/Paste from Embedded IE object Looks like it is "fixed" in this latest version. Thanks. Steve
Moderators JLogan3o13 Posted August 19, 2014 Moderators Posted August 19, 2014 (edited) As I pointed out in the GH & S thread, I would not call this fixed. I am still waiting on an example script in that thread showing the "working" behavior; this reproducer shows the same broken behavior that was originally reported. Cannot copy text out of the embedded page, nor the URL if you open the properties dialog for the page. #include <GUIConstantsEx.au3> #include <IE.au3> #include <WindowsConstants.au3> Local $oIE = _IECreateEmbedded() $myGUI = GUICreate("Test IE Embedded", 1000, 1000, Default, Default) GUICtrlCreateObj($oIE, 10, 10, 980, 980) GUISetState() _IENavigate($oIE, "http://tvtropes.org/pmwiki/pmwiki.php/Main/WallOfText") While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Edit: Just checked the new BETA (3.3.13.17), and confirmed the issue persists. I see no reason to call it resolved just yet. Edited August 19, 2014 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Ascend4nt Posted August 19, 2014 Posted August 19, 2014 Cannot copy text out of the embedded page, nor the URL if you open the properties dialog for the page. I don't think this is related to AutoIt, but to IE and embedded controls in general. It might be dependent on the IE version, or the O/S itself, but other (non-AutoIt) executables that embed an IE control fail to work with copying text for me as well. 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)
Moderators JLogan3o13 Posted August 19, 2014 Moderators Posted August 19, 2014 I agree, certainly. Just pointing out that it is an erroneous assessment to say that the latest BETA fixed the issue. If the OP has noticed something that was not working but now is, I would like to see a reproducer. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
BrewManNH Posted August 19, 2014 Posted August 19, 2014 I don't think this is related to AutoIt, but to IE and embedded controls in general. It might be dependent on the IE version, or the O/S itself, but other (non-AutoIt) executables that embed an IE control fail to work with copying text for me as well. Except it works in 3.3.8.1 and doesn't in 3.3.12.1 or any beta version. You can't highlight text inside an embedded IE and copy it in the latest release, while in 3.3.8.1 you can. 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
Ascend4nt Posted August 19, 2014 Posted August 19, 2014 (edited) Except it works in 3.3.8.1 and doesn't in 3.3.12.1 or any beta version. You can't highlight text inside an embedded IE and copy it in the latest release, while in 3.3.8.1 you can. Just tried it on 3.3.8.1 on Win7 x64 with IE11, didn't work. (tried both IE7 and IE11 modes) I'm betting there was more that changed on user's the test system than the AutoIt version. *Edit: just retested and realized I was using a different version! Edited August 20, 2014 by Ascend4nt 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)
BrewManNH Posted August 20, 2014 Posted August 20, 2014 I tried it using 3.3.8.1 on 2 Windows 7 machines and I was able to copy text from an embedded IE. I was not able to do it using the same 2 machines and 3.3.12.1. I went to http://whatismybrowser.com and it identified both instances were using IE11 in IE7 compatibility view. The ONLY difference between them is the version of AutoIt being used. BTW, I just used the help file example for _IECreateEmbedded for the tests. 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
steve8tch Posted August 20, 2014 Posted August 20, 2014 Sorry for not replying earlier. It is odd - I am trying to produce a reproducer script.... but am failing miserably ... My main application has started working. I use the embedded IE object to display reports from whatever I am looking at. It was great to be able to "cut and past" information of interest from the GUI.. but 3.3.12.0 broke the "cut and paste" functionality. I was aware of the 'bug report" - I was trying to be patient waiting for a fix. I have tried several betas - but the bug remained. Then with 3.3.13.16 - my embedded IE started to work again !! - I thought that it had just been fixed - but the bug report had not been updated. However - when I pull out the relevent bits of code to produce a demo script - .. it fails . All very odd - I will look futher to see what I need to do to get the demo script working. I am sorry I do not have any good news. I would really like this functionality to be fully working - my team are a bit frustrated by this loss of functionality. (I have put in some work-a-rounds - but it is not a clean as the "cut and paste" functionaliy .....) Steve
jpm Posted August 20, 2014 Posted August 20, 2014 As I pointed out in the GH & S thread, I would not call this fixed. I am still waiting on an example script in that thread showing the "working" behavior; this reproducer shows the same broken behavior that was originally reported. Cannot copy text out of the embedded page, nor the URL if you open the properties dialog for the page. #include <GUIConstantsEx.au3> #include <IE.au3> #include <WindowsConstants.au3> Local $oIE = _IECreateEmbedded() $myGUI = GUICreate("Test IE Embedded", 1000, 1000, Default, Default) GUICtrlCreateObj($oIE, 10, 10, 980, 980) GUISetState() _IENavigate($oIE, "http://tvtropes.org/pmwiki/pmwiki.php/Main/WallOfText") While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Edit: Just checked the new BETA (3.3.13.17), and confirmed the issue persists. I see no reason to call it resolved just yet. I have no problem Under a Win81 pro with the beta 3.3.13.17
Ascend4nt Posted August 20, 2014 Posted August 20, 2014 I tried it using 3.3.8.1 on 2 Windows 7 machines and I was able to copy text from an embedded IE. I was not able to do it using the same 2 machines and 3.3.12.1. Ah, sorry. I just retested now, and I can reproduce the issue with 3.3.8.1. I previously used the wrong AutoIt folder for testing that script on Anyway, the new beta 3.3.13.17 seems to mostly work.... but I see a difference in data that is copied - there's a lot more whitespace now.. 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)
Administrators Jon Posted August 20, 2014 Author Administrators Posted August 20, 2014 What a weird bug. I can't even imagine what could possibly cause that. The only thing I can try is to roll back the source to 3.3.8.1 and then skip 100 revisions and recompile until it stops working. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
Administrators Jon Posted August 20, 2014 Author Administrators Posted August 20, 2014 Found the revision it seems to happen in. The changelog is "Changed: The way COM initialization handled. Removed: g_bCOMOleInitialize global variable.". The changes all look completely innocent though :/ Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
Administrators Jon Posted August 20, 2014 Author Administrators Posted August 20, 2014 The COM initialisation changed from using OleInitialize() to CoInitialize(). The docs on the OleInitialize version have these remarks hidden away: Applications that use the following functionality must call OleInitialize before calling any other function in the COM library: Clipboard Drag and Drop Object linking and embedding (OLE) In-place activation I guess that explains it. I changed it back to OleInitialize and the script seems to work. coffeeturtle and Mat 2 Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
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