so the
aoutoitscript.com is down and im doing a little script witch i have problem with
ps: started with autoit today so im a complete noob
i have a editbox
$txt = GUICtrlCreateEdit("",0,0,800,560)
i want to replace all spaces with . when the editbox is changed, so some sort of onchange function
tryed some scripts but it outbut backwards and displays wrong, so im doing somthing wrong
#include <GUIConstantsEx.au3>
Example()
Func Example()
Local $font, $msg
Global $txt
GUICreate("Relax",950,595) ; will create a dialog box that when displayed is centered
$font = "Tahoma"
GUISetFont(12, 400, 1, $font) ; will display underlined characters
$txt = GUICtrlCreateEdit("",0,0,800,560)
$list = GUICtrlCreateList("",800,0,150,610)
$save = GUICtrlCreateButton(" Save ",0,562)
$exe = GUICtrlCreateButton(" Execute ",50,562)
GUIRegisterMsg(0x0111, "MY_WM_COMMAND")
GUISetState()
; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
EndFunc ;==>Example
Func MY_WM_COMMAND($hWnd, $Msg, $wParam, $lParam)
Local $nID
$nID = BitAND($wParam, 0x0000FFFF)
if $nID = 3 Then
$orgtext = ControlGetText("Relax","",3)
$newtext = StringReplace(ControlGetText("Relax","",3)," ", ".")
$mystring=ControlGetText("Relax","",3)
MsgBox(0,"",$mystring)
$reverse_string = ""
$string_length = StringLen($mystring)
For $i = 1 to $string_length
$last_n_chrs = StringRight($mystring, $i)
$nth_chr = StringTrimRight($last_n_chrs, $i-1)
$reverse_string= $reverse_string & $nth_chr
Next
ControlSetText("Relax","",3,$reverse_string)
EndIf
Return $GUI_RUNDEFMSG
EndFunc ;==>MY_WM_COMMAND
if anyone have an ebook or something that would help also
thanks