Jump to content

All Activity

This stream auto-updates     

  1. Today
  2. What browser are you going to use? If IE, use the _IE* functions. If something else, use the webdriver UDF or the UIA UDF. Best approach, take each of your requirements, and find the best way of doing each one individually and then combine them into the final script.
  3. got an error when trying to run the UIASpy.au3 I just downloaded it today. line 3787 looks like this: Local $aElemIndexes = ($aElems[$iIdx][7])[1], $aIndex, $jCnt = 0 here is from the console: >"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "C:\#\__AutoIT\!! try IUI automation - may work on controls without names\UIAExamples\UIASpy.au3" /UserParams +>14:03:15 Starting AutoIt3Wrapper v.18.708.1148.0 SciTE v. Keyboard:00010409 OS:WIN_10/ CPU:X64 OS:X64 Environment(Language:0409) CodePage:0 utf8.auto.check:4 +> SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE UserDir => C:\Users\pkryder\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\pkryder\AppData\Local\AutoIt v3\SciTE >Running AU3Check ( from:C:\Program Files (x86)\AutoIt3 input:C:\#\__AutoIT\!! try IUI automation - may work on controls without names\UIAExamples\UIASpy.au3 +>14:03:16 AU3Check ended.rc:0 >Running:(\Program Files (x86)\AutoIt3\autoit3.exe "C:\#\__AutoIT\!! try IUI automation - may work on controls without names\UIAExamples\UIASpy.au3" --> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop "C:\#\__AutoIT\!! try IUI automation - may work on controls without names\UIAExamples\Includes\UIASpy_ElemInfo.au3" (3787) : ==> Subscript used on non-accessible variable.: Local $aElemIndexes = ($aElems[$iIdx][7])[1], $aIndex, $jCnt = 0 Local $aElemIndexes = ($aElems[$iIdx][7])^ ERROR ->14:03:17 AutoIt3.exe ended.rc:1 +>14:03:17 AutoIt3Wrapper Finished. >Exit code: 1 Time: 2.566
  4. I would like find a way to learn to create a prog/script that: 1) open a specific web page 2) analyse the content and extract specific parameters (example: object, price, description etc...) 3) and every x minutes check (comparing with the previous parameters) if there are new adds or some change has been applied and if yes send an email alert with the new parameters. I am sure it is not easy and considering I am not an expert what way do you suggest me to start and learn how to do it? Thanks
  5. If you're using Send and MouseClick on the active window you should probably use ControlSend and ControlClick instead. Send is very unreliable as it never checks to see if the window you want is the active one, it just sends characters to whatever is active at the time, same with MouseClick.
  6. I solve the problem using: $oSpans = _IETagNameGetCollection($oIE, "div") Global $oIE = _IECreate ("https://www........") Local $oSpans = _IETagNameGetCollection($oIE, "div") For $oSpan In $oSpans If $oSpan.className = 'btn btn-primary btn-sm font-sm property-details-button' Then _IEAction($oSpan, "click") ExitLoop EndIf Thank you
  7. water, thank you for your reply - It was just a matter of time that someone came across this problem. So: It will be a pleasure to help out by testing modified/new script code. Maybe other forum members will help out, too. I think so... As for me, all the time/work we spend should keep your UDF as it is now - in a consistent/working state. And our efforts should even avoid "good workarounds". There are several solutions to this issue. One idea could be to rewrite _AD_FixSpecialChars´╗┐´╗┐() and _AD_ObjectExists() to handle already escaped strings. All functions benefit from it.
  8. Hi database and SQL masters, This is my first time dealing with .mdb files and Arrays and I have a few questions. I just need to change one field in a databases of unknow # of records. The script runs on different PC's. Each PC has a database with the same structure just more or less records. Let me explain what I want to do: 1: Open .mdb 2: Get the number of records 3: Start with 1st record 4: Check DBfield "fldQSLConfByS" if Letter "Q" is in the field 5: If Letter exists goto next record 6: If not, add Letter Q to existing entry and write it back to "fldQSLConfBYs' field in DB record Put complete record (all fields) into a workable string (I think ArraytoString does that) for further processing or even better into $fieldsxy[xy] [xy] 7: next record until all records are processed. I found ADO.au3 UDF, which is over my head and an overkill to what I need to do, I think. Then I stumbled across Access.au3.I modified the example.au3 and can read the DB, display the fields etc. but I can not write back to the DB. Always get: "Error in writting Data" See Section: ; ******************************************************* ; 10 - Edit/change Record ; ******************************************************* No idea why I can not write the data back. Playing with it for a week now and can not figure it out. Is there an easier way to just edit/change one DBfield? Oh.. and how do I display or read an array value? ( $datafieldxy = $array[xy][xy] ) Is _ArrayToString($avArray_Record, "", 48,48) the only way? (48, number of field) Attached are 3 files: Access.au3 - the UDF ~~ HAMLog_AccessDB.au3 - Scripy ~~ testdb.mdb - Database Thanks for any help HAMLog_AccessDB.au3 testdb.mdb Access.au3
  9. You are probably not waiting as mentioned above
  10. Hi, I notice that Autoit doesn't reliably switch windows which in terms messes up the entire program because the correct window is not in focus. This is the code I have Opt("WinTitleMatchMode",2) WinActivate("CUSTOMERS") The title of the window I want to activate for example is 'Foundation Production - CUSTOMERS -- LARRY SMITH'. It will switch most of the time but sometimes it simply doesn't do that . I was curious what to do to make it 100% reliable. Is there any way to notice the window is active before executing a certain portion of the program? Thanks much, K
  11. I just started to read about the need to escape characters again. I already tried to get my head around this subject some years ago. It can become quite complex as you can read here: https://www.rlmueller.net/CharactersEscaped.htm Right now my spare time is very limited. As I only have read access to our AD I can not create objects with special characters. So you (or someone else) would have to do all testing. As no one else has run into this problem since 2009 (when I started to work on the UDF) I think the best solution would be to simply create a custom function of _AD_RenameObject and remove _AD_ObjectExists. Maybe I will fix this bug sooner or later but for the time being this is the best I can offer.
  12. It seems your source name for the object is csrf, rather than trying to obtain a token (poor choice of coding on the page). So this thread is fine to continue, so long as it does not tread into territory that is against the forum rules.
  13. Yes, the account has rights to both the local machine and network path. That's why command line parameter is able to copy files but not via the autoIT code.
  14. pintas, Surely you do not expect us to help you bypass what is a pretty clear security message? Please read the Forum rules before you post again to make sure you are clear on what is not permitted here. Thread locked. M23
  15. I think someone else can probably answer this better than me... I have used sqlite extensively with AutoIt and it works really well (just use the help), but to access it from vba you will need to use ADO, this might help https://stackoverflow.com/questions/42509154/accessing-a-sqlite-database-in-vba-in-excel Or you can do it the other way around if you have access on all of the user machines you can then use ADO to connect to it from AutoIt (I'm sure someone here can help with that). Or you can flat file it (depending on the level of robustness, security, and any file locking issues). Or you could vba the external links if you don't mind having all your passwords stored / visible in a master excel document. A quick search found this https://stackoverflow.com/questions/47068941/linking-to-password-protected-workbook (second answer) https://stackoverflow.com/questions/42067872/how-to-get-data-from-password-protected-and-closed-workbook-with-in-excel-2007
  16. Why would you need to do this? Once you click on a window and drag it, it becomes the active window. If you just want to move it somewhere, use WinMove.
  17. Hi. I'm trying to suppress or prevent a Windows message from appearing. The message is regarding a GPO policy that prevents users from running some apps. (see pic attached) I'd like to prevent that message from appearing without making my script waiting for the message in real-time, so i don't stress the cpu. I tried 'playing' with _WinAPI_SetWinEventHook but i couldn't figure out how to use it. The message title is also relative to the app the user tries to run, so it's not a fixed message, nor do i see a new process in task manager. Is this possible in AutoIT?
  18. Hi, There is mouseclickdrag function, but .. is there controlclickdrag function? I can't find the function, I want a mouseclickdrag function that can work background.. I have no idea how to implement that .. Can anyone help me?
  19. But the macro @AutoItX64 is described as: "Returns 1 if the script is running under the native x64 version of AutoIt." So my understanding is that the script is executed as X64. And I think this causes the problem we see.
  20. thanks guys i already found it thankyou again
  21. I used index, instance. No much help to succeed. Is there a way to iterate controls that are available in TableLayoutpanel and perform click operation based on Text identification? Please help.
  22. Would be nice to add a proxy configuration option to the code.
  23. @rudi First off, use of third party tools to reach source code is not something we are going to discuss (should be common sense). As for whether it is possible to make the script itself extract the source, did you not read the suggestions given??
  24. https://www.autoitscript.com/wiki/FAQ#How_can_I_control_.28click.2C_edit_etc.29_an_external_.28html.29_application.3F
  1. Load more activity
  • Create New...