Leaderboard
Popular Content
Showing content with the highest reputation on 06/20/2019 in all areas
-
That is what we need too .... so you first! Jos2 points
-
Reading from a text file
DankeronisPalace reacted to Subz for a topic
Untested but something like: Local $aFileLine, $aFileLines = FileReadToArray("<FilePath>") Local $iLineCount = @extended If @error Then Exit For $i = 0 To $iLineCount $aFileLine = StringSplit(StringStripWS($aFileLines[$i], 4), " ") If @error Then ContinueLoop For $j = 1 To $aFileLine[0] ;~ Do whatever for each number in the array Next Next1 point -
Reading from a text file
DankeronisPalace reacted to JLogan3o13 for a topic
@DankeronisPalace welcome to the forum. To begin, look at FileRead and FileReadToArray in the help file. Both have great examples you should be able to modify to your needs.1 point -
Restrict keyboard entry and only allow using bar code scanner - (Moved)
FrancescoDiMuro reacted to Gianni for a topic
or, you could unplug the keyboard from that system and leave plugged only the barcode reader .....1 point -
AutoIt as Portabilizer
Earthshine reacted to TheDcoder for a topic
AutoIt scripts by default are portable and don't leave many traces behind on the computer when ran. Only you can make your program/script not portable by integrating it with other (from the script's perspective) 3rd party applications or leaving data outside your script's directory.1 point -
AutoIt as Portabilizer
Earthshine reacted to Jos for a topic
Maybe you could explain what it is you want as the current provided question is not that clear. Do you want to use AutoIt3 as portable application or something? Jos1 point -
Restrict keyboard entry and only allow using bar code scanner - (Moved)
Earthshine reacted to jchd for a topic
This thread should help you:1 point -
BaseNamedObjects
Earthshine reacted to water for a topic
Welcome to Autoit and the forum! What have you tried so far? We do not spoon feed users here, we teach them to fish1 point -
I think that problem of non atomic SQL commands could be solved by using SQL transactions and setting DB to not read uncomitted transactions. And you can use this to make SQL atomic lock on "lock" table (SQL pseudocode): Begin tran Update lock set locked = locked -> this will do lock of table Select @locked = locked from lock If @locked = 1 then rollback tran exit If @locked = 0 then update lock set locked = 1 commit tran1 point
-
If it's for locking of SQLite database on shared network disk then I would create "lock" table in SQLite database with one record and columns locked=0/1 locked_date= locked_by_user= Each user who wants to lock DB have to read this record and if it's already locked he can't proceed, if it's not locked then he update this record (set locked=1) and proceed with further updates od other database tables, when all work is done, he will unlock DB by updating this record to locked=01 point
-
howto get current directory a script was started from?
atetester132 reacted to hannes08 for a topic
Hi rudi, try this: MsgBox(0,"test",@ScriptDir & @CRLF & @WorkingDir) I think the second macro (@WorkingDir) will lead you to the right way! Regards, Hannes1 point -
Internet Explorer Automation UDF library
KingOfNothing reacted to DaleHohm for a topic
I'm happy to announce that the next release of IE.au3 has been released (with documentation!) See Here The version in this thread will remain available until the new release has proven stable. Dale =============================================================== This basenote will hold the most recent version of an Internet Explorer Automation UDF Library (scroll to the bottom of this base-note post to find the link to IE.au3). All constructive feedback welcome. See Post 3 in this thread for a growing list of examples. Thanks, Dale Edit 7/9/05: Here is version T1.1 (See Update History for changes) Edit 7/11/05: Here is version T1.2 (See Update History for changes) Edit 7/14/05: Here is version T1.3 (See Update History for changes) Edit 7/24/05: Here is version T1.4 (See Update History for changes) Important: AutoIt Beta 3.1.1.63 or higher is now required to the use of the ObjName function. Beta downloads are here Also Important: Download a current version of SciTe (and use the Beta definitions) to get rid of the ObjName error from Au3Check CODE Title: Internet Explorer Automation UDF Library for AutoIt3 Filename: IE.au3 Description: A collection of functions for creating, attaching to, reading from and manipulating Internet Explorer Author: DaleHohm Version: T1.4 Last Update: 7/24/05 Requirements: AutoIt3 Beta with COM support (3.1.1.63 or higher), Developed/Tested on WindowsXP Pro with Internet Explorer Notes: Errors associated with incorrect objects will be common user errors. AutoIt beta 3.1.1.63 has now added an ObjName() function that will be used to trap and report most of these errors. This version of IE.au3 makes minimal use of this function but future release will be enhanced to take full advantage of it. Update History: =================================================== T1.0 7/9/05 Initial Release - error handling is pretty basic, documentation has just begun, only initial UDF standards met --------------------------------------------------- T1.1 7/9/05 Fixed errors with _IEQuit, _IETableGetCount and _IETableGetCollection Added _IETableWriteToArray --------------------------------------------------- T1.2 7/11/05 Added description text to all functions (full parameter documentation still pending) Removed 4 _IEAttachByXXXX functions and replaced with one _IEAttach function with a mode parameter Removed _IEForward() and _IEBack() and put functionality into the _IEAction() function Added _IEAction() that performs many simple browser functions Added _IEPropertyGet() that retrieves many properties of the browser --------------------------------------------------- T1.3 7/14/05 Change _IEPropertyGet() to _IEGetProperty() (sorry, should have been that way from the beginning) Added _IEClickImg() that allows finding and clicking on an image by alt text, name or src Added _IETagNameAllGetCollection() to get a collection of all elements in the document Added _IETagNameGetCollection() to get a collection of all elements in a document with a specified tagname --------------------------------------------------- T1.4 7/24/05 Fixed bug in _IEClickImg() that only allowed exact matches instead of sub-string matches Enhanced _IELoadWait() to work with Frame and Window objects (by drilling document readyState) Enhanced _IELoadWait() to add a configurable delay before checking status (to allow previous actions to start execution) - default = 0 milliseconds Added _IEBodyReadHTML() and _IEBodyWriteHTML() functions (read the page HTML, modify it and put it back!) Fixed _IEAttach() so that certain shell variants did not cause failures (using new ObjName() function in beta 3.1.1.63 -- thanks Sven!) =================================================== \\\ Core Functions _IECreate() Create an Internet Explorer Browser Window _IENavigate() Directs an existing browser window to navigate to the specified URL _IEAttach() Attach to the first existing instance of Internet Explorer where the search string sub-string matches based on the mode selected. _IEDocumentGetObj() Given a Window object, returns an object associated with the embedded document \\\ Frame Functions _IEIsFrameSet() Chects to see if the specified Window contains a FrameSet _IEFrameGetCount() Find the number of Frames (standard or iFrame) in the specified document _IEFrameGetCollection() Get a collection object containing the frames in a FrameSet or the iFrames on a normal page _IEFrameGetObjByIndex() Returns an object reference to a window within the specified frame (note that frame collection is 0 based) This object can be used in the same manner as the InternetExplorer.Application object _IEFrameGetObjByName() Obtain an object reference to a frame by name _IEFrameGetNameByIndex() Obtain an object reference to a frame by 0-based index _IEFrameGetSrcByIndex() Obtain the URL references within a frame by 0-based index _IEFrameGetSrcByName() Obtain the URL references within a frame by name \\\ Link Functions _IEClickLinkByText() Simulate a mouse click on a link with text sub-string matching the string provided _IEClickLinkByIndex() Simulate a mouse click on a link by 0-based index (in source order) \\\ Image Functions _IEClickImg() Simulate a mouse click on an image. Match by sub-string match of alt text, name or src \\\ Form Functions _IEFormGetCount() Get the count of the number of forms in the document _IEFormGetCollection() Obtain a collection object variable representing the frames in the document _IEFormGetObjByIndex() Obtain an object variable reference to a form by 0-based index _IEFormGetObjByName() Obtain an object variable reference to a form by name _IEFormGetNameByIndex() Obtain the name of a form by its 0-based index _IEFormElementGetCount() Obtain a count of the number of form elements within a given form _IEFormElementGetCollection() Obtain a collection object variable of all form elements within a given form _IEFormElementGetObjByIndex() Obtain a object reference to a form element within a form by 0-based index _IEFormElementGetObjByName() Obtain a object reference to a form element within a form by name _IEFormElementGetTypeByIndex() Obtain the type of a givien form element within a form by 0-based index (button, checkbox, fileUpload, hidden, image, password, radio, reset, submit, or text) _IEFormElementOptionGetCount() Get count of Options within a Select drop-down form element _IEFormElementGetValue() Get the value of a specifid form element _IEFormElementSetValue() Set the value of a specified form element _IEFormSubmit() Submit a specified form _IEFormReset() Reset a specified form \\\ Table Functions _IETableGetCount() Get count of tables within a document _IETableGetCollection() Obtain a collection object variable representing all the tables in a document _IETableGetObjByIndex() Obtain an object reference to a table in a document by 0-based index _IETableWriteToArray() Reads the contents of a table into an array. Note: Currently, if any of the cells span more than one column, the column offsets will be incorrect \\\ Body functions _IEBodyReadHTML() Retrieves the HTML inside the <body> tag of the document _IEBodyWriteHTML() Replaces the HTML inside the <body> tag of the document \\\ Utility Functions _IETagNameGetCollection() Returns a collection object all elements in the object with the specified tagName. The DOM is hierarchical, so if the object passed is the document object, all elements in the docuemtn are returned. If the object passed in is an object inside the document (e.g. a TABLE object), then only the elements inside that object are returned. _IETagNameAllGetCollection() Returns a collection object all elements in the document in source order. _IELoadWait() Wait for a browser page load to complete before returning _IEAction() Perform any of a set of simple actions on the Browser _IEGetProperty() Retrieve a select property of the Browser _IEQuit() Close the browser and remove the object refernce to it IE.au31 point -
Problems trying to emulate a silent install
Earthshine reacted to Steve_I for a topic
I can't find the log file at all on the system but I can see the process has kicked off (in the compiled version as well as when I use autoit then pass it the script)0 points