maxrealqnx Posted August 3, 2012 Share Posted August 3, 2012 Hi everyone I need your help on a problem. Thank you in advance for your help. Best regards AutoIt v3.3.8.1 $DS = "test1 test2 test3 test4 test5 test6 test7 test9 test10" Dim $DM1, $DM2, $DS, $i For $i = 1 To 500 Step 1 $DM1 = StringLeft ($DS, $i) If StringRegExp($DM1, "(?x)\" & Chr(32)) Then $DM2 = StringReplace ($DM1, Chr(32), "") If Not ($DM2 = ("")) Then Ver() $DS = StringReplace ($DS, $DM2, "") EndIf Next Func Ver() MsgBox (0, "", $DM2) EndFunc MsgBox(0, "", "Bye!") Visit My Website Link to comment Share on other sites More sharing options...
water Posted August 3, 2012 Share Posted August 3, 2012 And the question is? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
maxrealqnx Posted August 3, 2012 Author Share Posted August 3, 2012 OR $DS = "test1 test2 test3 test4 test5 test6 test7 test9 test10" MsgBox (0, "", $DS) Dim $DM1, $DM2, $DS, $i For $i = 1 To 500 Step 1 $DM1 = StringLeft ($DS, $i) If StringRegExp($DM1, "(?x)" & Chr(32)) Then $DM2 = StringReplace ($DM1, Chr(32), "") If Not ($DM2 = ("")) Then Ver() $DS = StringReplace ($DS, $DM2, "") MsgBox (0, "", $DS) EndIf Next Func Ver() MsgBox (0, "", $DM2) EndFunc MsgBox(0, "", "Bye!") Visit My Website Link to comment Share on other sites More sharing options...
water Posted August 3, 2012 Share Posted August 3, 2012 I don't know what you try to achieve with your script and what kind of problem you have. We need more information to help you. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
maxrealqnx Posted August 3, 2012 Author Share Posted August 3, 2012 (edited) And the question is?Hi!The test10 result is wrong Edited August 3, 2012 by maxrealqnx Visit My Website Link to comment Share on other sites More sharing options...
water Posted August 3, 2012 Share Posted August 3, 2012 Which result do you get and what do you expect? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
maxrealqnx Posted August 3, 2012 Author Share Posted August 3, 2012 Which result do you get and what do you expect?I want to show each of them individually. Visit My Website Link to comment Share on other sites More sharing options...
maxrealqnx Posted August 3, 2012 Author Share Posted August 3, 2012 But i can't see test10 Visit My Website Link to comment Share on other sites More sharing options...
water Posted August 3, 2012 Share Posted August 3, 2012 Doesn't this script do the same?$DS = "test1 test2 test3 test4 test5 test6 test7 test9 test10" Global $asResult = StringSplit($DS, " ") For $i = 1 To $asResult[0] MsgBox(0, "", $asResult[$i]) Next MsgBox(0, "", "Bye!") maxrealqnx 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
maxrealqnx Posted August 3, 2012 Author Share Posted August 3, 2012 Thank you water. God bless you! Kind regards Visit My Website Link to comment Share on other sites More sharing options...
water Posted August 3, 2012 Share Posted August 3, 2012 maxrealqnx 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
maxrealqnx Posted August 3, 2012 Author Share Posted August 3, 2012 Hi again everyone Please help me again. Can I make run any function with the value ? Best regards Dim $FN1 $FN1 = "Test1" $FN1() ;Test() Func Test() MsgBox(0, "", "Success!") EndFunc ;==>Test Visit My Website Link to comment Share on other sites More sharing options...
maxrealqnx Posted August 3, 2012 Author Share Posted August 3, 2012 ByRef ($FN1 & ()) Visit My Website Link to comment Share on other sites More sharing options...
water Posted August 3, 2012 Share Posted August 3, 2012 Use Call($FN1) maxrealqnx 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
maxrealqnx Posted August 3, 2012 Author Share Posted August 3, 2012 I love you water God bless you. Best regards Visit My Website Link to comment Share on other sites More sharing options...
water Posted August 3, 2012 Share Posted August 3, 2012 No big deal My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
maxrealqnx Posted August 3, 2012 Author Share Posted August 3, 2012 (edited) Thank you water. I could complete it with your help. Best regards.http://www.maxrealqnx.winbuilder.net/downloads/TimeSyncClock-x86.7zTimeSyncClock-x86.exe /WTD+ORTimeSyncClock-x86.exe /WTD+ /CCD DE TR GR Edited August 3, 2012 by maxrealqnx Visit My Website Link to comment Share on other sites More sharing options...
water Posted August 3, 2012 Share Posted August 3, 2012 Good news of the day So it's time to leave the office and have a nice weekend! maxrealqnx 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki 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