Leaderboard
Popular Content
Showing content with the highest reputation on 08/15/2020 in all areas
-
Adlib - What does the word mean?
argumentum and one other reacted to jchd for a topic
Late to the party: I believe the name was chosen to match the uses case in music where it means "adjust the tempo as you see fit" or "repeat as much as you want", which is pretty close to what the function allows.2 points -
Adlib - What does the word mean?
TheSaint and one other reacted to argumentum for a topic
AdlibEnable would enable the adlib. Just one. ( old AutoIt version ) AdlibRegister any count of Alibs ( newer versions ) Edit: ..I did not read attentively. You've answered your question.2 points -
Adlib - What does the word mean?
TheSaint and one other reacted to Professor_Bernd for a topic
One more question. Why was the name changed from AdlibEnable to AdlibRegister? ... Okay, I found it. AdlibEnable had only allowed one timer, AdlibRegister now allows multiple.2 points -
Automate all windows and browser applications with one UDF function library. Based on the microsoft automation API this library high level supports Recognition of conttrols from EDGE, Chrome, FF, Opera, Safari and Windows native apps Small testing framework to split object repository from coding away Introduction Quickstart - Getting started quickly Simple scripts With this module you can automate all applications/programs that support ui automation and/or accesibility api from microsoft you can recognize more controls than AutoIT can recognize "out of the box" you can use concepts from other testing frameworks like http://download.freedesktop.org/ldtp/doc/ldtp-tutorial.pdf http://safsdev.sourceforge.net/Default.htm coded ui testing from microsoft Some of those controls / applications are chrome browser (partly mainwindow has to be done with MSAA for navigating) chrome://accessibility in the adress bar of chrome or start with "--force-renderer-accessibility" silverlight controls Ribbon control controlbars of Excel/Word IE and FF browsers Windows Media Player Windows clock AFX .. controls (partly) .... Based on the initial AIO Object I now have made the interface file to work with objCreateInterface function which is in the latest beta's automate clicking and querying basic information It gives you a lot of basic information to be able to automate clicking, querying basic information where it goes further in certain situations than AutoIt is identifying Starting threads for background on the ui automation api of microsoft (not for starters) http://en.wikipedia.org/wiki/Microsoft_UI_Automation http://msdn.microsoft.com/en-us/library/ms747327.aspx Previous threads in general help/support Interface AutoItObject IUIAutomation ObjCreateInterface and struct tagPoint in method ElementFromPoint Be aware that API is not allways installed under XP/Vista see http://support.microsoft.com/kb/971513 Within Windows 7 and Windows 8 it should be preinstalled by default. Be aware on 32 and 64 bits way of running your script #AutoIt3Wrapper_UseX64=Y or N Basic example of usage / showing and retrieving the default information, will post multiple examples later Hover your mouse to an area of interest and press ctrl+w and information will be shown in the edit box of the form Simple spy demo (see simplespy.au3 or use latest ZIP attachment for latest version) Main features Recognize windows and html controls for the major browsers Logical and physical description for controls (UI mapping, Application map) Simple repository logic to abstract logical and physical descriptions Store Runtime Type Information in RTI. variables Rubberbanding/highlighting of objects Simple spy to help in making / identifying the physical description Support of regular expression(s) in identifying objects recognize objects on multiple properties supported properties: name ,title, automationid, classname, class, iaccessiblevalue, iaccessiblechildId, controltype, processid, acceleratorkey The actions provided so far "leftclick", "left", "click", "leftdoubleclick", "leftdouble", "doubleclick", _ "rightclick", "right", "rightdoubleclick", "rightdouble", _ "middleclick", "middle", "middledoubleclick", "middledouble", "mousemove", "movemouse" "setvalue","settextvalue" "setvalue using keys" "setValue using clipboard" "getvalue" "sendkeys", "enterstring", "type", "typetext" "invoke" "focus", "setfocus", "activate" "close" "move","setposition" "resize" "minimize", "maximize", "normal", "close", "exist", "exists" "searchcontext", "context" "highlight" "getobject","object" "attach" "capture","screenshot", "takescreenshot" "dump", "dumpthemall" "propertyvalue", "property" match on multiple properties like: name:=((Zoeken.*)|(Find.*)); ControlType:=Button; acceleratorkey:=Ctrl+F Support for 117 different properties see $UIA_propertiesSupportedArray in uiawrappers like for example title, regexptitle, class, regexpclass, iaccessiblevalue, iaccessiblechildid, name, accesskey, automationid, classname IAccessible, IAccessible2, ISimpleDom interfaces debuglogging to a file log.txt (no output in scitewindow) Examples Example 1 Iterating thru the different ways of representing the objects in the tree (#comment-1105548) Example 2 Finding the taskbar and clicking on the start menu button (#comment-1105680) Example 3 Clicking a litlle more and in the end displaying all items from the clock (thats not directly possible with AU3Info) (#comment-1108849) Example 4 that demonstrates the calculator Example 5 Automating chrome Example 6 Demonstrates all stuff within chrome to navigate html pages, find hyperlink, click hyperlink, find picture, click picture, enter data in inputbox Example 7 The chrome example modified to a firefox example Example 8 The other major browser Internet Explorer automated (made on Example 6 and 7) Example 9 Windows media player Example 10 Automating mach 3 (AFX windows and other hard to get recognized by AutoIT) Lot of links are broken due to forum upgrade just search for the text like "Example 11 Demonstrate Word, Notepad and Calculator actions" Example 11 Demonstrate Word, Notepad and Calculator actions ... Example 13 Details 1 about the right pane of the windows explorer Example 14 Details 2 about the right pane of the windows explorer Example 15 Details 3 about the right pane of the windows explorer Example 16 Details 4 about the right pane of the windows explorer Example 17 Details 5 about the right pane of the windows explorer WITH CACHING Example 18 Details 6 about the right pane of the windows explorer WITH VIRTUAL ITEMS Example 19 Eventhandling examples Example 20 Eventhandling examples Example 21a Eventhandling examples Internet Explorer Example 21b Eventhandling examples Internet Explorer Example 22 Eventhandling examples Follow focus Example 23 Eventhandling examples structure changed Example 24 Eventhandling examples IUIAutomationEventHandler Example 25 SAFEARRAYS Example 26 IACCESSIBLE / MSAA Example 27 IACCESSIBLE2 / MSAA Example 28 IACCESSIBLE / MSAA events Example 29 IACCESSIBLE2 events Example 30 ISimpleDOM Example 31 Notepad window move, maximize, minimize Example 32 Three browsers doing the same stuff with small differences in scripting only .. TODO Build recorder Enhance the spy with a nicer UI UI for the repository (now in the script with dot notation) Enhance mapping / identifying on multiple properties instead of 1 combined with index If speed becomes an issue use the caching logic of the MS UIA framework Add the other patterns later Generalize the concept of System Under Test of starting the SUT (for testing framework purposes) Remote running of scripts Fix issue on finding within dynamic context ... edit august 18th 2013 initial post Only zip files are needed to download , just unzip in 1 directory edit july 2016 Made V0_63 and examples works with AutoIt v3.3.14 Windows 10 tested Simple spy gives some basic code as a present Chrome latest versions seems to be having issues with IUIAutomation on tabs/buttons of mainwindow use MSAA for accessing tabsheets / buttons more cleanup to be in UDF style More comments in the source see changelog.txt for previous changes edit september 2017 All examples fixed for the IE, Firefox and Chrome browser Some small but essential fixes in UIAWrappers edit april 2018 Enhanced logic on fallback / dynamic search, still not perfect, to slow Retested with latest Chrome, FF, Edge and IE11 and some extensions to show how to get text from the webpage (examples 5,6,7) Some small bugfixes Some comments as given in forum incorporated edit may 2019 Speed enhancements on especially fallback searching UIA.CFG works now in a better way to turn on/off debug, highlighting, debug2file More stable and consistent behavior Internal cleanup and refactoring of bigger functions Checked with W10 (not tested on W7) Added some W10 properties Run with 3.3.14.5 on W10 UIA_V0_51.zip EXAMPLES_V0_5.zip UIA_V0_63.zip EXAMPLES_V0_63.zip UIA_V0_64.zip EXAMPLES_V0_64.zip EXAMPLES_V0_66.zip UIA_V0_66.zip EXAMPLES_V0_70.zip UIA_V0_70.zip1 point
-
You're welcome!1 point
-
If you wanted something like this, then why didn't you say that in the beginning? It would have save at least 2 rounds of playing "whack-a-mole" because it gives a much better idea of what you are ultimately trying to do. Since you are having a hard time understanding how regular expressions work, I offer one more example that is closer to what you are looking for. #include <Constants.au3> #include <Array.au3> example() Func example() Const $DATA = "categ_1=Sun|123" & @crlf & _ "categ_1=Sun light|222" & @crlf & _ "categ_1=Sundance|69" & @crlf & _ "categ_1=Maui Sun|69" & @CRLF & _ "categ_2=Sun light|33" & @crlf & _ "categ_2=Sundance|44" & @crlf & _ "categ_2=Maui Sun|55" Local $sId = "", $sCategory = "" Local $aResult[0] $sId = "1" $sCategory = "Sun" $aResult = StringRegExp($DATA, StringFormat("(?im)^categ_%s=%s\|.*", $sId, $sCategory), $STR_REGEXPARRAYGLOBALMATCH) If @error Then Switch @error Case 1 ;No Matches MsgBox($MB_ICONWARNING, "WARNING", "No matches found.") Return Case 2 ;Bad RegEx MsgBox($MB_ICONWARNING, "WARNING", "Regular expression error at offset " & @extended) Exit 1 EndSwitch EndIf _ArrayDisplay($aResult) EndFunc1 point
-
... what about this ? #Include <Array.au3> $txt = "categ_1=Sun light|123" & @crlf & _ "categ_1=Sun|222" & @crlf & _ "categ_1=Sundance|69" & @crlf & _ "categ_1=Maui Sun|69" $n = 1 $skeyword1 = "categ_" $skeyword2 = "Sun" $res = StringRegExp($txt, $skeyword1 & $n & '=(' & $skeyword2 & ')\|(\d+)', 3) _ArrayDisplay($res)1 point
-
Regular expressions, as with any other programming language, do exactly what you tell them to do. The difference between the 2 keyword examples is one looks for all lines that start with "...Sun" and the other looks for all lines starting with "...Sun|" . In the example, 3 lines match the first regular expression and only one line matches the second regular expression. That is why when discussing regular expression it is SO IMPORTANT to describe, in as much detail as possible, the input data, the matching criteria, AND the expected results, otherwise unexpected results may occur.1 point
-
Is it just me or are compiled .exe au3 scripts running faster & less likely to crash?
danaman123 reacted to Jos for a topic
It is you as a compiled script is the bytecode of the script and runtime module packed into the EXE, so basically doing the exact same thing. ... having said that: When you use au3stripper, the cases aren't the same anymore as the source of the compiled script is "much" smaller and we run a bit faster. Jos1 point -
Solving a (solved) problem with a (not really suitable) programming language is something "for fun". But to solve a problem with an unusual approach is exciting and "expands the horizon". Thank you for that! OT: Nowadays, working with Terabyte-sized programming languages to solve the simplest problems with Titanic-sized programs running on gigaherz-powered, kilowatts burning Multicore-Computers, is NORMAL! Why? Because we can! Solving a Sudoku-puzzle is possible with a 62 BYTES (yes Bytes) sized program within Milliseconds. No compiler is necessary, no frameworks, no libraries, no overpowered Hardware. Just to mention. Solving a problem definitely does not depend on modern tools. And Brain rulez!😉1 point
-
Change this line to: Global $Pblshd_db = @ScriptDir & "\Pblshd_db.ini" Because the FileOpenDialog() will change the working directory, so the INIWrite will write a new INI file in the selected dorectory. Jos1 point
-
Adlib - What does the word mean?
TheSaint reacted to pixelsearch for a topic
I always thought that "Adlib" was related to "play it again and again" so it was great to find the same meaning in AdlibRegister ...in the phrase "repeat ad libitum," to play the passage an arbitrary number of times (cf vamp) : https://en.wikipedia.org/wiki/Ad_libitum Next step could be to play it "Ad nauseam"1 point -
Take a look at _WD_ElementOptionSelect. Pretty sure you can find a working example on the forum.1 point
-
Capture Serial Communications
Earthshine reacted to jchd for a topic
Just in case you need to use it, here's a schema you might have to use if the TxD signal from the PC is too week to meet requirements of 2 receivers. Can be done in minutes on a cheap little bit of protoboard. Limited to 120k Bps and you may not need to link all handshake lines (RTS, DTR, ...). Keep connections to capacitors as short as possible. Be careful about the supply power: 4.5 to 5.5 V max, few mA, correct polarity. Else put a diode in series and a LM78L05A regulator to avoid ruining the MAX232 one day. Sniffing serial.pdf1 point -
Adlib - What does the word mean?
mLipok reacted to argumentum for a topic
..I had children and had to give them names. Not easy. My spouses did that anyway ( and I had not much of a say anyway ) Now, coming up with names for concepts can get cumbersome and once you called it something it stays, even if you found a better name. I think the AdLib is a good name for the concept. It could be called Juan but, then again, people would say One, so.... AdLib it is ...and AdLib works like a timer but is not a timer. It will execute in the midst of the script every x ms. but is not a timer. Is an AdLib function. I can code something to show/proof the difference ( even if to add another shoe to my mouth )1 point -
AdlibRegister including Sleep
Professor_Bernd reacted to Jos for a topic
Somehow doubt that ... and there is no issue to ask questions. F1 /Search Read Think Try Goto 1 Jos1 point