Site Tools


windows:windowsserver:scom:operationsconsole

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
windows:windowsserver:scom:operationsconsole [2017/03/01 12:50] – external edit 127.0.0.1windows:windowsserver:scom:operationsconsole [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 19: Line 19:
 You can also add to the code to close the script as soon as someone moves the mouse or click anything. This way you cant paste it into a notepad or anything... You can also add to the code to close the script as soon as someone moves the mouse or click anything. This way you cant paste it into a notepad or anything...
  
-<code scomlogin.au3>+<code autoit scomlogin.au3> 
 +#cs ---------------------------------------------------------------------------- 
 + 
 + AutoIt Version: 3.3.14.0 
 + Author:         Lunetikk 
 + 
 + Script Function: 
 + Enter credentials to log into SCOM 
 + 
 +#ce ---------------------------------------------------------------------------- 
 + 
 +AutoItSetOption ( "WinTitleMatchMode", 2 ) 
 + 
 +$Checktitle_de = "Anmeldeinformationen eingeben" 
 +$Checktitle_en = "Enter Credentials" 
 while 1 while 1
-Sleep(5000)+ 
 +Sleep(4000) 
 + 
 +If WinExists ( $Checktitle_de ) Then 
 + 
 +   WinActivate ( $Checktitle_de ) 
 + 
 +ElseIf WinExists ( $Checktitle_en ) Then 
 + 
 +   WinActivate ( $Checktitle_en ) 
 + 
 +Else 
 +EndIf 
 + 
 +Sleep(1000) 
 $Title = "x" $Title = "x"
 $Title = WinGetTitle("") $Title = WinGetTitle("")
-$Checktitle_de = "Anmeldeinformationen eingeben" +
-$Checktitle_en = "Enter Credentials"+
  
 If $Title = $Checktitle_de OR $Title = $Checktitle_en Then If $Title = $Checktitle_de OR $Title = $Checktitle_en Then
-Sleep(500) 
-Send("INSERT YOUR SERVICEACCOUNT") 
-Sleep(200) 
-Send("{TAB}") 
-Sleep(200) 
-Send("INSERT YOUR PW") 
-Sleep(200) 
-Send("{TAB}") 
-Sleep(200) 
-Send("INSERT YOUR DOMAIN") 
-Sleep(200) 
-Send("{ENTER}") 
-Exit 0 
-Else 
  
 +   Sleep(500)
 +   Send("INSERT YOUR SERVICEACCOUNT")
 +   Sleep(200)
 +   Send("{TAB}")
 +   Sleep(200)
 +   Send("INSERT YOUR PW")
 +   Sleep(200)
 +   Send("{TAB}")
 +   Sleep(200)
 +   Send("INSERT YOUR DOMAIN")
 +   Sleep(200)
 +   Send("{ENTER}")
 +   Exit 0
 +
 +Else
 EndIf EndIf
  
 WEnd WEnd
 </code> </code>
windows/windowsserver/scom/operationsconsole.1488369020.txt.gz · Last modified: 2017/03/01 12:50 by 127.0.0.1