Jump to content
Sign in to follow this  
MagicKad

Compare string doesn't work

Recommended Posts

MagicKad

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

Share this post


Link to post
Share on other sites
MagicKad

How can i use ConsoleWrite ?

I use Notepad++ for editing the .au3 file and run this file by a double click but nothing happening with ConsoleWrite.

Thank you.

Share this post


Link to post
Share on other sites
jvds

look for SciTe in the download section

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.