kcvinu Posted July 31, 2016 Share Posted July 31, 2016 @JohnOne Does any window has text contains vertical tab ? Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only) Link to comment Share on other sites More sharing options...
JohnOne Posted July 31, 2016 Share Posted July 31, 2016 Not sure have not seen them all. OP could loop through the whole text printing out the ascii code, that would reveal it for sure. 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...
trof Posted July 31, 2016 Author Share Posted July 31, 2016 10 minutes ago, JohnOne said: Not if only one @cr is present. Try... StringSplit($sText, Chr(11)) ; vertical tab The output is 8 minutes ago, kcvinu said: trof, Wrong, not inside the loop. Right after the string split and above the for loop. And Ubound($aArray) is enough ok so this should be right Local $sText = WinGetText("[ACTIVE]") Local $aArray = StringSplit($sText, @CRLF) Ubound($aArray) but the script ignores Ubound($aArray). No further popup Link to comment Share on other sites More sharing options...
kcvinu Posted July 31, 2016 Share Posted July 31, 2016 (edited) trof, try this MsgBox(0, "Array Check", Ubound($aArray)) Edited July 31, 2016 by kcvinu Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only) Link to comment Share on other sites More sharing options...
JohnOne Posted July 31, 2016 Share Posted July 31, 2016 $sText = WinGetText("[ACTIVE]") ConsoleWrite($sText) Paste the whole thing here. kcvinu 1 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...
trof Posted July 31, 2016 Author Share Posted July 31, 2016 11 minutes ago, kcvinu said: trof, try this MsgBox(0, "Array Check", Ubound($aArray)) 9 minutes ago, JohnOne said: $sText = WinGetText("[ACTIVE]") ConsoleWrite($sText) Paste the whole thing here. No popup Link to comment Share on other sites More sharing options...
JohnOne Posted July 31, 2016 Share Posted July 31, 2016 OK I know a wind up when I see one. I'm out. Best of luck. kcvinu 1 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...
trof Posted July 31, 2016 Author Share Posted July 31, 2016 Ok, thank you very much for your support Link to comment Share on other sites More sharing options...
kcvinu Posted July 31, 2016 Share Posted July 31, 2016 trof, Try to understand what are you coding. You wrote ConsoleWrite function and you are expecting "pop-ups" ?. ConsoleWrite function will write the text to Scite's console area. Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only) Link to comment Share on other sites More sharing options...
kcvinu Posted July 31, 2016 Share Posted July 31, 2016 Anyhow, i think your problem is solved almost. You have 14 items in that array. Loop through it and display the array elements in a msgbox. Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only) Link to comment Share on other sites More sharing options...
trof Posted July 31, 2016 Author Share Posted July 31, 2016 10 minutes ago, kcvinu said: trof, Try to understand what are you coding. You wrote ConsoleWrite function and you are expecting "pop-ups" ?. ConsoleWrite function will write the text to Scite's console area. I run the script from Scite and I haven't new output 10 minutes ago, kcvinu said: Anyhow, i think your problem is solved almost. You have 14 items in that array. Loop through it and display the array elements in a msgbox. Sorry, I don't know how to do it Link to comment Share on other sites More sharing options...
kcvinu Posted August 1, 2016 Share Posted August 1, 2016 trof, Now you have an array with 14 elements and first element ($aArray[0]) is the array count. Thant means 14. So you can loop through this array like this ; For $i = 1 to $aArray[0] ; That means loop 1 to 14 MsgBox(0, "Arrayy Elements", $aArray[$i]) ; Here we ara displaying array elements one by one Next Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only) Link to comment Share on other sites More sharing options...
kcvinu Posted August 1, 2016 Share Posted August 1, 2016 Look this image. Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only) Link to comment Share on other sites More sharing options...
trof Posted August 1, 2016 Author Share Posted August 1, 2016 (edited) Ok, now every phrase is showed one by one. That's what interests to me If if $aArray[$i] = "Informazioni sul cliente" then works, I'm ok. But, I don't why it doesn't work Edited August 1, 2016 by trof Link to comment Share on other sites More sharing options...
kcvinu Posted August 1, 2016 Share Posted August 1, 2016 (edited) When comaring two strings, check for proper spelling and white space in your code Edited August 1, 2016 by kcvinu Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only) Link to comment Share on other sites More sharing options...
trof Posted August 1, 2016 Author Share Posted August 1, 2016 Spelling and white spaces seem ok Link to comment Share on other sites More sharing options...
kcvinu Posted August 1, 2016 Share Posted August 1, 2016 May be there is some trailing space or something like that. We have an option for it. Check the String length of both strings using StringLen function. Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only) Link to comment Share on other sites More sharing options...
trof Posted August 1, 2016 Author Share Posted August 1, 2016 Local $iLength = StringLen($aArray[$i]) MsgBox($MB_SYSTEMMODAL, "", "The length of this string is " & $iLength & " characters.") if $aArray[$i] = "Informazioni sul cliente" then it is 24 Link to comment Share on other sites More sharing options...
kcvinu Posted August 1, 2016 Share Posted August 1, 2016 Oh. i see... Check and run your exact code once again. Doubt each and every line. Write error check code in all possible places. Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only) Link to comment Share on other sites More sharing options...
trof Posted August 1, 2016 Author Share Posted August 1, 2016 Maybe an AutoIt bug 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