Jump to content

BassPlayer

Members
  • Posts

    9
  • Joined

  • Last visited

BassPlayer's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks for your response As far as I can tell Quality center browser based app but several things are installed locally. Here is what is looks like https://h10078.www1.hp.com/bto/us/en/img/pic_652_Quality-Center.jpg https://h10078.www1.hp.com/cda/hpms/display/main/hpms_content.jsp?zn=bto&cp=1-11-127-24^40625_4000_100__ If I script something simple like pressing the refresh button it logs me out so I need to be able to click some object inside the app. Is there someplace that has examples on the _IE functions?
  2. I'm forced to use QC where I work and on top of that there are not many licenses so the QC admin in his esteemed wisdom has set a short session timeout. Does anyone know how I can use autoit to periodically wake up and select some object in QC so my session never times out so I can get back to work instead of logging in all the time? Thanks in advance.
  3. DOH! Sorry, I read the FAQ but not the help. Thanks
  4. I put all my AI code and installation in one tree on a share and have the code executed from there by different machines. I've not used includes yet and am now planning to use more libs. Is there a LIB_PATH or are includes searched via the PATH?
  5. The latest version works great! Thanks
  6. Wow that was a quick turnaround thanks! I think the systemroot thing worked for me because I pasted your example code after my test code so the Opt("MustDeclareVars", 1) setting was not in effect when that statement was executed. Later when I pasted the code I must of "improved" my code so it would not work =/ Testing out the new version now.
  7. Apparently I only get the error when I include both of these libs #include <A3LListView.au3> #include <A3LTreeView.au3> If I remove the list view lib and calls all the tree view stuff works.
  8. Hi First off, Thanks for all your hard work! I too have received the dreaded cannot redeclare constant error even though I'm using the latest AI version 3.2.4.9 and your code downloaded yesterday. Here is what I'm trying to do Run("mmc.exe") If WinWaitActive("Console1", "", 60) Then Send("!fo") Send ($systemRoot & "\system32\compmgmt.msc") Send("{ENTER}") EndIf WinWaitActive("Computer Management", "", 60) #include <A3LMenu.au3> #include <A3LListView.au3> #include <A3LToolbar.au3> #include <A3LTreeView.au3> Opt("MustDeclareVars", 1) Global $hTree, $hNode, $hList, $text, $iI, $sItem, $aRect $hTree = ControlGetHandle("Computer Management", "", "SysTreeView321") if @Error then _Lib_ShowError("Unable to find TreeView window") $hNode = _TreeView_FindNode($hTree, "Local Users and Groups") if $hNode = 0 then _Lib_ShowError('Unable to find "Local Users and Groups') _TreeView_Click($hTree, $hNode) _TreeView_Expand($hTree, $hNode) $hNode = _TreeView_FindNode($hTree, "Groups") _TreeView_Click($hTree, $hNode) $hList = ControlGetHandle("Computer Management", "", "SysListView321") if $hList = 0 then _Lib_ShowError("Unable to obtain ListView handle in ClickItem") for $iI = 0 to _ListView_GetItemCount($hList) - 1 MsgBox(0, "text ..................: " & _ListView_GetItemText($hList, $iI)) next I'm not sure I'm using the lib right but I was under the impression that I needed to use the TreeVew lib to get to the right node and the ListView lib to display the contents. Again, Thanks for some great code.
  9. FYI Just so someone else does not get stuck on this issue, heres a way around this. Download the Ataman rsh or telnet server and grab the fg.exe binary. Then exec your script like rsh host -l user "fg.exe \"AutoIt3 script.au3\"" Works great with any rsh/ssh/telnet server!
×
×
  • Create New...