Jump to content

Compare string doesn't work


Recommended Posts

#include <StringConstants.au3>

Run('C:\ProgramsFiles\ESI\alg.exe')

WinWaitActive('[CLASS:PATCHER]')

sleep(3000)
MouseClick('left',957,174)

WinWaitActive('[CLASS:ApolloRuntimeContentWindow]')

$titleWin = WinGetTitle('[CLASS:ApolloRuntimeContentWindow]')
$titleTR = 'eee.eee eeeeeeeee'

;MsgBox('','','1'& $titleWin &'1')
;MsgBox('','','1'& $titleTR &'1')
sleep(3000)

if $titleWin = $titleTR Then
    MsgBox('','','ici3')
Endif 

Send('aaaa')
Send('{TAB}')
Send('bbbb')
Send('{ENTER}')

exit

 

 

Hi, 

I want to compare 2 strings but i never enter in the scope of the if when i use WinGetTitle but when i used the same content of the string (titleTR) to titleWin, it works .

(Sorry for my english)

Thank you for the answers.

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...