Jump to content
Sign in to follow this  
Glyph

Checkbox Live?

Recommended Posts

$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 by backstabbed

Share this post


Link to post
Share on other sites

#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 by backstabbed

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  

×
×
  • Create New...