jep1955 Posted January 7, 2019 Posted January 7, 2019 Yes. We need to update our versions. But... We are running AutoItLibrary-1.1_x64 which I assume is actually AutoIt 3.1.1? We are also running Python 2.7. (it is possible that the old reasons from 3 years ago that interfered with us using current versions may no longer exist) If I try to Include StringConstants in order to use StringRegEx functions, it is not found. I assume that this was added post 3.1.1? Should the current version of AutoIt still work with Python 2.7? I have a string: 12345\SomeText.txt and I need to extract JUST the 12345 into a variable. Neither the RegEx functions or "Number" appear to be in the version I am using.
Nine Posted January 7, 2019 Posted January 7, 2019 $iLoc = StringInStr ("12345\SomeText.txt", "\") $sStr = StringMid ("12345\SomeText.txt", 1, $iLoc-1) “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
FrancescoDiMuro Posted January 7, 2019 Posted January 7, 2019 @jep1955 Couldn't you directly use Python to extract the string you want? By the way, in StringCostants.au3, as almost every *Costants.au3, there are not functions, but Costants used in functions and)or by use when calling them Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
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