Jump to content

s2mikey

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by s2mikey

  1. For me its the small exe's it generates and the fact that the setup required is trivial compared with the unending downloads/path tweaks/etc you have to perform just to get Selenium/Java up and running. So much setup and so many dependencies. I like to develop solutions, not spend all day "hoping" that I have every little tiny thing setup right just to get going. I realize that AUTOIT is not the best tool for everything but for any of us its perfect.
  2. I did some searching already but cant quite find what I want. I run some scripts overnight on our application and every so often, Id like to do the following: 1) Save the entire contents of the event log as a ".evt" file. 2) Clear the event log 3) Continue running script I figure every couple hours we'd like the event log saved and cleared. Ive already tried simply launching the Event Viewer app and trying to automate simply clicking the "Application" tree view item, then selecting the "Save Log File As..." option but I cannot make this work. There are no control names or any way I can find to click the right-mouse context menu items or even to click the Application tree view item. We just need the whole log - no parsing or anything like that. Ive seen lots of examples of specific items being read/written to the log using Auto UT but not just a simple "save the whole shibang". The help file does show some event log functions but nothing about saving it out. Im stuck. ?????
  3. Hi all, Whats the trick(if any) to accessing a Windows Text box control's text property by simply calling it by name instead of by the "ClassNN" value? Heres the deal - I have to store all of my textbox controls as constants because the only way I can access the actual text in them or set text in them is by the following identifier/Control ID: "ClassNN:WindowsForms10.EDIT.app.0.c8febe_r16_ad123" The problem is that on occassion, some of the "ClassNN..." values do change and this of course messes up the script. Here is the actual "name" of the text field Im trying to access: uploadHostUploadServerTextBox However, when I try to set the text of this control using "uploadHostUploadServerTextBox" as the control ID, it doesnt work. Ive tried ControlSetText and ControlSend. What am I doing wrong here??? Thanks!
  4. OK gents, Im working on an app that has a graphical button that the info window returns as having 4x6" as the text property. Thats 4x6 with a double quote(") appended to the end of it making it 4x6". So far, I cant figure out how to deal with the single-double quote at the end. I always get a syntax error if I try to click the button because Control Click doesnt like the various names Ive tried like: " 4x6" " OR "" 4x6" "" What to do? I need to use the text property and nothing else so somehow I have to call the control by the text property which is 4x6" Thanks!
  5. Hi all. I didnt see much about this particular issue so here goes: I compile and build an au3 script I have into an exe file. All good. But, if we rename the exe file the script starts but eventually dies and the exe disappears from Task Manager meaning it "killed" itself or whatever. If we run it under its original name all is well. I didnt think renaming an exe was going to cause trouble but it is. Is there something Im missing here? Should you not rename exe files that Auto IT generates? Any settings I need to know about when building exe files to avoid this? And No, I do NOT reference the name of the file anywhere in the script itself. Thanks in advance...
  6. I'll give that a shot...thanks for the quick reply!
  7. Hi all. New forum member here. Ive been using AUTO IT for a few months now and really am starting to enjoy it! Anyways... At the end of my test run I want to open the txt-based log file and display it so the person running the script can view the results right there. Its just a text file so I tried using the Run command and the RunWait command using the path & filename. Im expecting Notepad to simply open with my log file contents displayed in it but nothing actually happens. No errors or anything, just no log file to view! What am I missing here? I tried a few searches but couldnt get what I needed. Thanks in advance!
×
×
  • Create New...