Thread: Leet-2-1337
View Single Post
Old Jul 21st, 2005, 12:29 PM   #1
B3TA_SCR1PT3R
Hobbyist Programmer
 
B3TA_SCR1PT3R's Avatar
 
Join Date: Jul 2005
Location: Dallas, Texas
Posts: 101
Rep Power: 0 B3TA_SCR1PT3R is an unknown quantity at this point
Send a message via AIM to B3TA_SCR1PT3R
Leet-2-1337

This is just my test script the actual script has more stuff

anyway i want 2 convert every letter in $inputvar like a=4 b=13 c=( u know 1337 and the freakin i dunno how to do it with stringrreplace is there anyother way cuz stringreplace i can only put $1 not $1+$2 and stuff alsdkfjasd;fjk





#include <GuiConstants.au3>

;GUI
GuiCreate("LEET-2-1337", 400,400)

;BUTTON
$exitbutt = GuiCtrlCreateButton("Exit",0,375,50,25)
$musonbutt = GuiCtrlCreateButton("On", 50,50,50,25)
$musoffbutt = GuiCtrlCreateButton("Off", 100,100,50,25)
$infobutt = GuiCtrlCreateButton("Info", 200,200,50,25)
$conbutt = GuiCtrlCreateButton("Convert!", 100,200,75,25)

;INPUT
$inputvar = GuiCtrlCreateInput("",5,10,390,125)


; GUI MESSAGE LOOP
GuiSetState()

While 1 
		$msg = GuiGetMsg()
				Select
				Case $msg = $GUI_EVENT_CLOSE Or $msg = $exitbutt
						ExitLoop
		Case $msg = $conbutt
			$1 = StringReplace(GuiCtrlRead($inputvar), "a", "1")
			$2 = StringReplace(GuiCtrlRead($inputvar), "b", "2")
			MsgBox(4096,"hello",GuiCtrlRead($1 + $2))
		EndSelect

WEnd
B3TA_SCR1PT3R is offline   Reply With Quote