Jump to content

sobert

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by sobert

  1. Internet explorer. Thank you
  2. Hello, I am an autoit newbie and hoping someone can help me out of provide some guidance... I will be using Internet Explorer, Google.com will be the main/home page. I want Autoit to do a check, if it's currently NOT on google.com and the page is idle for x minutes, then go back to the homepage. Sounds simple but I cannot find anything online for some reason. Thanks in advanced.
  3. Hello, I have a script that is constantly getting stuck because a Windows service keeps starting and interrupting the script. I tried using RunWait(@ComSpec & " /c " & 'net stop CcmExec', "", @SW_HIDE) but then realized that the service has not started yet when I run that command. Is there a way to stop a service from running before it even starts? Note: Disabling the service all together is not an option because in the event this script gets hung or fails, that service will remain disabled. Thanks in advanced.
  4. Thank you for this! Are you able to tell me what part of the code needs to be changed if I want to click Open instead of Save? Thanks, Robert
  5. I tried opt("WinTitleMatchMode",2) and opt("WinTitleMatchMode",4), still no luck.
  6. I appreciate everyone who has helped me on this website. You have been so helpful but I have another issue. I am trying to activate a window based on a word a user entered and a string from the title of an internet explorer window. I've tried the following but cant seem to get it to work. Not sure if this is possible of it I just don't have the correct syntax. Local $var = $test & "text from internet explorer" winactivate ($var) and Winactivate ($test & "text from internet explorer") Thank you for your help in advance
  7. Thanks for that! I apologize for being such a noob. What would be the proper syntax to get the 3rd and 4th element? I tried ConsoleWrite($aSplit[3] [4] & @CRLF)
  8. Can someone tell me if it is possible to get the i.e. the 4th word of a window's title? I need to create something where the script will only run if the 4th word in the title is i.e. "Test" Thanks in advance.
  9. >"C:Program Files (x86)AutoIt3SciTE..autoit3.exe" /ErrorStdOut "C:UsersrsoDesktopTest.au3" --> IE.au3 T3.0-1 Error from function _IELoadWait, $_IESTATUS_ClientDisconnected (-2147417848, Browser has been deleted prior to operation.) --> IE.au3 T3.0-1 Error from function _IEGetObById, $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-1 Error from function _IEAction(click), $_IESTATUS_InvalidDataType >Exit code: 0 Time: 10.22
  10. Sorry, I do not know how to format the code nicely like you guys. Below is my code. The links wont work because this is our company ticketing system. http://servicedesk/CAisd/pdmweb.exe?OP=SEARCH+FACTORY=cr+SKIPLIST=1+QBE.EQ.id=626430 is the link that takes you to the ticket. Once the page loads, the URL changes to http://servicedesk/CAisd/pdmweb.exe. The Title bar is CA Service Desk Manager - ###### Request Detail. main () func main() _IECreate("http://servicedesk/CAisd/pdmweb.exe?OP=SEARCH+FACTORY=cr+SKIPLIST=1+QBE.EQ.id=626430") Local $oIE = _IEAttach ("CA Service Desk", "http://servicedesk/CAisd/pdmweb.exe") local $oElement Sleep (9000) $oElement = _IEGetObjById ($oIE, "imgBtn0") _IEAction($oElement, "click") EndFunc
  11. I tried adding the two lines but nothing happens. It jumps right to the tab. WinWaitActive ("CA Service Desk Manager - ", "") local $oElement = _IEGetObjById ($oIE, "imgBtn0") _IEAction($oElement, "click") opt("SendKeyDelay",75) Send("{TAB 24}{Enter}") Sleep (4000)
  12. I am trying to create a script that can click a button in IE. The only issue is that I think this form is built in Java. When I use the AutoIT Info tool, nothing is displayed. Within IE, I click F12 to get the DOM Explorer and I've tried simulating the click using ControlSend and ControlClick with the id and class but I cannot get it to work. <A ondragstart="return false" onclick="return ImgBtnExecute(0)" tabIndex=100 onmouseover="return ImgBtnMouseOver(0);" onmouseout="window.status = window.defaultStatus;return true;" id=imgBtn0 class="button enabledattr buttonEnabled" href="#" name=imgBtn0><SPAN>Ed<U>i</U>t</SPAN></A> Thanks in advance.
  13. Water, That worked, thank you so much!!!
  14. Thanks for the response. Unfortunately the first one did not work. Not sure if it is because I am on Windows 8 or not.
  15. Hello, I'm a beginner when it comes to AutoIT scripting. I've only created simple scripts but I need some help displaying the current user's Last name, First name. I tried searching this forum but everything I found was for @username or searching through AD. Can someone help me or guide me to the right place? Thanks, Robert
×
×
  • Create New...