Jump to content

TheMaestro

Members
  • Posts

    11
  • Joined

  • Last visited

TheMaestro's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Yes of course, I saved it, changed only url, user, pwd and got the error. I've done it today again with the same result. It's weird. Maybe there is a difference in AutoIt version / IE.au3 file; or internet explorer version (like I wrote before). I have AutoIt v3 and IE9 Update: I finally get the script to work with no errors (just added #RequireAdmin in the beginning of the script - no other change). but nothing happened, only the webpage was loaded... Have you tried this script with SAP Netweaver, or is this a generic login script you used on some webpages? I ask because SAP Netweaver is a java page, maybe this is the reason why the script isn't working...
  2. I am not bypassing anything, I have access to the server. I just want to automate login with valid credentials, because I need to check about 30 of these servers every day and take some screenshots for the report. So this would ease up the situation a lot....
  3. Thanks for the reply. When I have more time, I will look more into it. M.
  4. Thank you very much for the reply. But when I run the script a I get this error: >"C:Program FilesAutoIt3SciTE..autoit3.exe" /ErrorStdOut "D:...SAPlogon.au3" C:\Program Files\AutoIt3\Include\IE.au3 (560) : ==> The requested action with this object has failed.: WEnd WEnd^ ERROR >Exit code: 1 Time: 0.519 When I tried to build an exe file and run that I got error on 245th line of IE.au3. In this file, close to this line, there is an comment about some weird behaviour of IE9, which I am using. Could this be related? Thank you. M.
  5. Hello, has anyone tried to automate login to SAP NetWeaver application? (login screen attached) I cannot figure it out (my knowledge of AutoIt is basic). I tried things like sendkey, but I was unable to write into the fileds (probably because of it's a Java Application). I appreciate any help you can provide. Thank you. Cheers, M.
  6. AWESOME! I just added #RequireAdmin and it works Thanks a lot!
  7. Hello Dale, thanks for the reply. It seems, that Sleep(500) somehow destroys Name of iOE variable. Before the first sleep line ConsoleWrite(ObjName($oIE), & " - ", & $url & @CRLF) returns IWebBrowser2 - www.XXX.... but after sleep there is only - www.XXX... Any idea why this is happening? Thanks. M.
  8. Hello, thanks for the reply. I have it on separate line, of course. Copy / paste problem:)
  9. Hello, thank you for the reply. Here is the entire code. I just replace URL string, but the error is still there ( --> IE.au3 V2.4-0 Error from function _IENavigate, $_IEStatus_InvalidObjectType --> IE.au3 V2.4-0 Error from function _IELoadWait, $_IEStatus_InvalidObjectType ) #include <IE.au3> #include <ScreenCapture.au3> #include <array.au3> Local $oIE = _IECreate("about:blank")WinSetState(_IEPropertyGet($oIE, "hwnd"), "", @SW_MAXIMIZE) local $srv[3] = ["CPU","Memory_Physical_used","Memory_Virtual_used"] for $i = 0 to 2 $url = "XXX" & "&srv=" & $srv[$i] _IENavigate($oIE, $url) Sleep(500) _IELoadWait($oIE) _ScreenCapture_Capture(@ScriptDir & "\" & $srv[$i] & ".png") Sleep(500) Next Any ideas? Thank you. M.
  10. Just one remark, when I put there URL directly: _IENavigate($iOE, "google.com" I don't get any error... M.
  11. Hello, I am trying to use AutoIt for opening webpages and taking screenshots from it. I use following code. $url = "XXXX" _IENavigate($oIE, $url) Sleep(1000) _IELoadWait($oIE) _ScreenCapture_Capture(@ScriptDir & "\" & $sitename & "_CPU.png") Sleep(500) However, when I try to use it more then once to visit different site, I get error: --> IE.au3 V2.4-0 Error from function _IENavigate, $_IEStatus_InvalidObjectType --> IE.au3 V2.4-0 Error from function _IELoadWait, $_IEStatus_InvalidObjectType Can anybody help me with this problem? Thanks M.
×
×
  • Create New...