Glyph Posted January 23, 2007 Posted January 23, 2007 (edited) expandcollapse popup$date = InputBox("Input Date","Enter date of log here."&@crlf&" 'Month-Day-Year format."&@crlf&" eg. 02-2-2007, which is Feb 2, 2007'") #Region ### START Koda GUI section ### Form= $sbdir = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\StealthBot v2.6 Revision 3", "Install_Dir") $weee=GuiCreate("weee", 400, 400) ;;i would like to change this-------------------------- $n1=GUICtrlCreateCheckbox ("Check whispers log",10,10) $n2=GUICtrlCreateCheckbox ("Check chat log",10,40) ;------------------------------------------------------------- $okbtn = GUICtrlCreateButton("&OK", 280, 210, 80, 25, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $msg = GUIGetMsg() Select Case $msg = $okbtn If GUICtrlRead($n1) = $GUI_CHECKED Then ;; TO THIS chat $file= FileOpen(""&$sbdir&"\Logs\"&$date&'.txt',0) $chars = FileRead($file) GUICtrlCreateCheckbox (""&$chars,10,10) FileClose($file) EndIf If GUICtrlRead($n2) = $GUI_CHECKED Then ;; TO THIS whisper $file= FileOpen(""&$sbdir&"\Logs\"&$date&'-WHISPERS.txt',0) $chars = FileRead($file) GUICtrlCreateCheckbox (""&$chars,10,10) FileClose($file) EndIf ExitLoop EndSelect WEnd ;;----------------------------------------GUI!---------------------------------------- GuiSetState() While GuiGetMsg() <> $GUI_EVENT_CLOSE WEnd I want it to read a text file then display it in the edit text box !, how would this be done!??! Edited January 23, 2007 by backstabbed tolle indicium
blacksniper Posted January 23, 2007 Posted January 23, 2007 bump >_>post what the log is.... so we can see what you want to put into a txt box, And what txt box do you want it put in.
Glyph Posted January 24, 2007 Author Posted January 24, 2007 (edited) #Region ### START Koda GUI section ### Form= $weee=GuiCreate("weee", 400, 400) $e1=GUICtrlCreateEdit("Test",100,100,60,60) $n1=GUICtrlCreateCheckbox ("Check whispers log",10,10) $n2=GUICtrlCreateCheckbox ("Check chat log",10,40) $okbtn = GUICtrlCreateButton("&OK", 280, 210, 80, 25, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $msg = GUIGetMsg() Select Case $msg = $okbtn If GUICtrlRead($n1) = $GUI_CHECKED Then MsgBox(0,'Whisper is checked','test') EndIf If GUICtrlRead($n2) = $GUI_CHECKED Then MsgBox(0,'Chat is checked','test') EndIf ExitLoop EndSelect WEnd ;;----------------------------------------GUI!---------------------------------------- GuiSetState() While GuiGetMsg() <> $GUI_EVENT_CLOSE WEnd shouldnt this work? Edited January 24, 2007 by backstabbed tolle indicium
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