Jump to content
Sign in to follow this  

lookin for a command

Recommended Posts


I've been searching the text file and racking my brain for about 2 hours now, I couldn't find a command for this anywhere. Here is an example of what I am trying to do.

$Valik = "Hello World"
_ArrayAdd($NameArray, $valik)

But I wan't $valik to be added to the array like this.

$NameArray[1] H
$NameArray[2] e
$NameArray[3] l
$NameArray[4] l
$NameArray[5] o
$NameArray[7] W
$NameArray[8] o
$NameArray[9] r
$NameArray[10] l
$NameArray[11] d

Its also using this which makes things difficult.

If Not IsDeclared("sInputBoxAnswer") Then Local $sInputBoxAnswer
$sInputBoxAnswer = InputBox("HelloStewie!2","                   Whats the Message?","Hello Stewie"," M15","-1","132","-1","-1")
    Case @Error = 0;OK - The string returned is valid
    Case @Error = 1;The Cancel button was pushed
    Case @Error = 3;The InputBox failed to open
Edited by IKilledBambi

Share this post

Link to post
Share on other sites

Have a look at StringSplit


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post

Link to post
Share on other sites

Thanks oh man i didn't wanna give up on this, its been longer than I thought! It's 6.16 A.M. o.O you and Mono are my heroes!

Share this post

Link to post
Share on other sites

Example with StringSplit:

#include <array.au3>
Local $aTest
$sTest = "Hello World"
$aTest = StringSplit($sTest, "");if you don't need the amount of strings returned in $aTest[0] then set the third parameter to 2, see helpfile

Edit: Notice that it is a lot shorter than what KaFu posted + it executes alot faster

Edited by AdmiralAlkex

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