Jump to content

Read text from previous window.


FMS
 Share

Recommended Posts

Dear reader,

In a script i got a problem that i can´t solve,

and hope that someone can help me whit this or push me in the right direction.

The problem is to read text from window 1 iff window 2 apears and not iff window 3 apears....

Iff window 2 apears then make $Text --> $aInput[2][0] instead it was before....???

Iff this text sounds a little noobisch,.... thats correct.... Im :(

But there is more explaining in this script...

I dont think this will work by U unless u have Lotes Notes >_<

Greetings FMS

If ProcessExists("nlnotes.exe") Then
        ;BlockInput (1)
        Run("C:\Program Files\lotus\notes\Notes.exe")
        While not WinActive("[CLASS:NOTES]", "")
            Sleep(10)
        WEnd
        Send("{ALTDOWN}");buttons to press to go to the password security window to change your password.
        Send("f")
        Send("y")
        Send("s")
        Send("{ALTUP}")
        While not WinActive("Lotus Notes")
            Sleep(10)
        WEnd
        send(GUICtrlRead($aInput[2][0]),1);-------->previous filled in old pass from GUI.
                Send("{enter}")
                ;BlockInput (0)  
        If WinActive("Lotus Notes") then EnterPassword()     ;Iff this window apears the pass filled in in the GUI was wrong so
                                                                     ;the user must put in his right pass en the script must go futher when
                                                                     ;the right pass is entered.But also change the ¨$Text¨ to $aInput[2][0].
                                                                     ;because iff the old pass is wrong here also in the next window....
        While not WinActive("User Security")   
            Sleep(10)    
        WEnd
        ;BlockInput (1)
        Send("!p")
        WinWaitActive("Lotus Notes")
        send(GUICtrlRead($aInput[2][0]),1)  ;<-------------------------------------like here :)
        Send("{enter}")
        BlockInput (0)
        WinWaitActive("Change Password")
        ;BlockInput (1)
        send(GUICtrlRead($aInput[0][0]),1)
        Send("{TAB}")
        send(GUICtrlRead($aInput[0][0]),1)
        Send("{enter}")
        While not WinActive("IBM Lotus Notes") 
            Sleep(10)   
        WEnd
        Send("{enter}")
        While not WinActive("User Security")
            Sleep(10)
        WEnd
        ;BlockInput (0)
    Else
        ;BlockInput (1)
        WinWaitClose("[CLASS:NOTES]", "")
        Run("C:\Program Files\lotus\notes\Notes.exe")
        WinWaitActive("Lotus Notes")
        send(GUICtrlRead($aInput[2][0]),1)
        Send("{enter}")
        ;************************************************same here........
        WinWaitActive("NVI Startpagina - IBM Lotus Notes")
        Send("{ALTDOWN}")
        Send("f")
        Send("y")
        Send("s")
        Send("{ALTUP}")
        send(GUICtrlRead($aInput[2][0]),1)
        Send("{enter}")
        ;************************************************and here
        ;BlockInput (0)
        WinWaitActive("User Security")
        ;BlockInput (1)
        Send("!p")
        WinWaitActive("Lotus Notes")
        send(GUICtrlRead($aInput[2][0]),1)
        Send("{enter}")
        ;************************************************also here :P
        ;BlockInput (0)
        WinWaitActive("Change Password")
        ;BlockInput (1)
        send(GUICtrlRead($aInput[0][0]),1)
        Send("{TAB}")
        send(GUICtrlRead($aInput[0][0]),1)
        ;BlockInput (0)
    EndIf
Func EnterPassword()
   $Text=WinGetText("Lotus Notes","")   ;Get text from the password window from lotus notes
EndFunc

as finishing touch god created the dutch

Link to comment
Share on other sites

First, you need to use proper English, not that slang shorthand. In reading your post, you are making NO sense what so ever.

Second, get the ID for each window and then you can get what you need.(If I'm reading this garble post right) You can use WinList to ID the windows.

Link to comment
Share on other sites

First, you need to use proper English, not that slang shorthand. In reading your post, you are making NO sense what so ever.

Second, get the ID for each window and then you can get what you need.(If I'm reading this garble post right) You can use WinList to ID the windows.

First, iff u read the text u c that there is more explaining in the script....

second, iff u c the script u c that the windows ID´s are there >_<

did u read it at all ??

And where is the slang???

Edited by FMS

as finishing touch god created the dutch

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...