Sign in to follow this  
Followers 0
IvanCodin

variables

3 posts in this topic

I create several variables and want to send them to a file. I have played with the ClipPut command and am having trouble figuring out how I would do this. I am new to programming and would appreciate any assistance you could provide.

This is a snippet of the code:

ClipPut($var1 & $var2 & $var3 & $var4)

$bak = ClipGet()

MsgBox(0, "Clipboard contains:", $bak)

I want the output of this to create a file that looks like this:

Welcome $var1 !!!

Your account has been activated.

Your login is $var2 and you password is $var3

You password will expired in $var days.

Share this post


Link to post
Share on other sites



Dim $var1 = "Var1", $var2 = "Var2", $var3 = "Var3", $var4 = "Var4"
FileWrite("textfile.txt", "Welcome " & $var1 & " !!!" & @CRLF & "Your account has been activated." & @CRLF & "Your login is " & $var2 & " and you password is " & $var3 & @CRLF & "You password will expired in " & $var4 & " days.")

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

edit: beaten to it while writing my reply, basically same code so I removed :whistle:

Edited by Leighwyn

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  
Followers 0