MagicKad Posted August 2, 2015 Share Posted August 2, 2015 #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 More sharing options...
JohnOne Posted August 2, 2015 Share Posted August 2, 2015 (edited) Try again with some debugging, such as ConsoleWrite for all values through your script. Edited August 2, 2015 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
MagicKad Posted August 2, 2015 Author Share Posted August 2, 2015 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. Link to comment Share on other sites More sharing options...
jvds Posted August 2, 2015 Share Posted August 2, 2015 look for SciTe in the download section Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now