Jump to content

ganeshk225

Members
  • Posts

    12
  • Joined

  • Last visited

ganeshk225's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi, The application i'm trying to automate sometimes crashes. An error window appears when the application crashes. Hence in my autoit script, I'm using the adlib function to detect when the error window appears before the application crashes. My adlib func looks something like this - Func MyAdlib() If WinExists ("titlename.exe") Then $flag = 1 EndIf EndFunc When I used the title of the error window as shown above, autoit detects the error window, however doesnt seem to work as expected. AutoIt doesnt seems to be able to differentiate the parent window title from the error pop-up window title though the title names are different. when the application is restarted, autoit detects the parent window of the application as the error window. Question 1) "titlename.exe" happens to be the name of the process of the application. Is this the reason for the above behaviour?? Hence I decided to workaround the issue by using CLASS instead of title in the adlib function, as shown below - Func MyAdlib() If WinExists ("[CLASS:DirectUIHWND]") Then $flag = 1 EndIf EndFunc This doesn't seem to work though I have the CLASS name is correct. I tried using INSTANCE as well along with CLASS. Autoit is unable to detect it altogether. Can anyone please suggest any workaround to get this working? Thanks!
  2. Thanks a ton!! Was really helpful
  3. Hello.. I need to click a button, however the control ID of that button changes at run-time. Hence the control ID for that button doesn't remain constant. Hence can't use controlclick. I don't want to use mouse click as the co-ordinates might change if the autoit script is run on a another PC with different resolution. Can anyone please help me out? Thanks!!
  4. Hi, I have to automate a few tasks to be carried out on an excel sheel (MS office 2010). There are quite a few merged cells in the excel file I have to use. For one of the tasks, I need to know the number of rows which are merged to a single cell. Can someone kindly help me out here Thanks, Ganesh
  5. Thanks a lot for the quick response both methods work just fine!!
  6. Hi, I've been using AutoIt for around a month and have found it very useful Have been able to automate most of the tasks I wanted to. I have encountered a hiccup and not sure how to get this working. Suppose there is a folder by name - ConfigurationFolder - in the same directory where my autoscript is present. Inside this folder, there is a file, logfile.txt. There is an excel sheet which has the data regarding the folder name (ConfigurationFolder) and the file name (logfile.txt). I have an autoit script which reads the excel, captures this information in two variables... say $folder has the folder name and $file has the file name. Something like... $folder = ConfigurationFolder $file = logfile.txt I would be using these two variables to check if the directory exists and check is the file exists. Then make use of the file. For that, first I need to be able to use the variables as part of the directory path. Suppose my autoit script is in the location - C:\Users\script.au3 When I try the below autoit script to assign the full path in the variable - $Directory, it doesn't work. $Directory = @ScriptDir & "\$folder\$file" "\$folder\$file" remains as it is, i.e., it gets translated to C:\Users\$folder\$file and not C:\Users\ConfigurationFolder\logfile.txt Can someone please help me out here? Cheers, Ganesh
  7. Can anyone kindly help with this? Please let me know if more details are required.
  8. Sorry I couldn't reply sooner. The application I'm trying to automate is a tool used for analysis of log files from the modem. After getting some insight of the tool, I have figured out that the tool uses DotNetBar controls. I did some searching in this forum and I remember reading in a post that autoit only works on standard menu and not on any other custom controls, let alone dotnetbar controls. I guess that is the reason I'm unable to select the menu items, as I could get autoit to work just fine with notepad menu bar :-) I tried the following 1) _GUICtrlMenu_FindItem 2) WinMenuSelectItem and looks like both don't function with DotNetBar controls. Can you please let me know if there is any other workaround to get this working.
  9. I donot want to use mouse click option as the co-ordinates are bound to change when running the script on a PC with different resolution. Any other way to get this working?
  10. Hi, I'm a newbie to AutoIt. I'm unable to select a menu item of a window. The menu item I'm attempting to select/click neither has a hotkey or keyboard shortcut. Hence I'm can't use 'WinMenuSelectItem' and 'Send'. Are any other ways to select the menu item via AutoIt? Any help is greatly appreciated. Thanks!!
×
×
  • Create New...