Jump to content

help with GUI please....


 Share

Recommended Posts

hi,

for some reason that I can't understand why, when pressing the "input" (guictrlcreateinput) after the value "erez" I get the cruser but when moving the mouse over the "erez" value I don't get the cruser, why? see attachment.

one small thing I forgot to mention, the input is insert using GuiCtrlCreateinput ("erez",,,,)

Edited by erezlevi
Link to comment
Share on other sites

so where's the script you wrote?

[quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]

Link to comment
Share on other sites

so where's the script you wrote?

it is only part of it but the relevent one:

ToolTip("Processing Please Wait....", 400, 300, "Loading")
                        $gui2 = GUICreate("9630/40/50 - PhoneMain", 240, 550, 200, 70)
                        GUISetIcon("c:\ring.ico")
                        Opt("GUICoordMode", 1)
                        GUICtrlCreateLabel("please insert new lables then press change", 10, 10)
                        $button6 = GUICtrlCreateButton("Change", 90, 30)
                        $Appand10 = $firstinput1 & $firstinput
                        $Appand11 = "_96xxdata.txt"
                        $Appand12 = $Appand10 & $Appand11
                        FileOpen($Appand12, 1) ; for getting the current lables if any for each lable.
                        _FileReadToArray($Appand12, $myArray)
                    ;_ArrayDisplay($myArray)
                        $z = 0
                        For $o = 1 To 24
                            $F[$o] = _ArraySearch($myArray, "PHNLABEL" & $U[$o], 0, 0, 1, True)
                            If $F[$o] <> -1 Then
                                $L[$o] = FileReadLine($Appand12, $F[$o])
                                $InfoNumber = StringSplit($L[$o], "=")
                                $V[$o] = $InfoNumber[2]
                            EndIf
                        Next
                        $p = 60
                        For $o = 1 To 24
                            GUICtrlCreateLabel("Entry" & $o, 15, $p, 70, 15)
                            GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
                            $p = $p + 20
                        Next
                        $p = 60
                        For $o = 1 To 24
                            $Q[$o] = GUICtrlCreateInput($V[$o], 75, $p, 70, 15)
                            $p = $p + 20
                        Next
                        
                        GUISetState()
                        ToolTip("")
                        While 1
                            $msg2 = GUIGetMsg()
                            Select
                                Case $msg2 = $button6
                                    ToolTip("Changing please wait...", 400, 400)
                                    For $o = 1 To 24
                                        $R1[$o] = GUICtrlRead($Q[$o])
                                    Next
                                    $z = 0
                                    For $o = 1 To 24
                                        $m = StringCompare($R1[$o], $V[$o], 1)
                                        If $m <> 0 Then
                                            $a = _ArraySearch($myArray, "PHNLABEL" & $U[$o], 0, 0, 1, True)
                                            _ArrayAdd($R2, $o)
                                            $z = $z + 1
                                            Call("yedidia1", $U[$o], $R1[$o], $a)
                                        EndIf
                                    Next
                                    ToolTip("")
                                    MsgBox(0, "Done!", "you can now download the lables to the phone")
                                Case $msg2 = $GUI_EVENT_CLOSE
                                    GUIDelete($gui2)
                                    ExitLoop
                            EndSelect
                        WEnd
                        
                    ;_ArrayDisplay ($V)
                    ;MsgBox (0,"this is $z=",$z)
                    Case $msg1 = $button6
                        ToolTip("Processing Please Wait....", 400, 300, "Loading")
                        $gui2 = GUICreate("9630/40/50 - Expansion", 400, 680, 350, 0)
                        GUISetIcon("c:\ring.ico")
                        Opt("GUICoordMode", 1)
                        GUICtrlCreateLabel("please insert new lables then press change", 10, 10)
                        $button6 = GUICtrlCreateButton("Change", 250, 10)
                        GUICtrlCreatePic("c:\SBM24.JPG", 70, 60, 300, 600)
                        GUICtrlSetState(-1, $GUI_DISABLE)
                        $Appand10 = $firstinput1 & $firstinput
                        $Appand11 = "_96xxdata.txt"
                        $Appand12 = $Appand10 & $Appand11
                        FileOpen($Appand12, 1) ; for getting the current lables if any for each lable.
                        _FileReadToArray($Appand12, $myArray)
                        $z = 0
                        For $o = 1 To 24
                            $F[$o] = _ArraySearch($myArray, "SBMLABEL" & $U[$o], 0, 0, 1, True)
                            If $F[$o] <> -1 Then
                                $L[$o] = FileReadLine($Appand12, $F[$o])
                                $InfoNumber = StringSplit($L[$o], "=")
                                $V[$o] = $InfoNumber[2]
                            EndIf
                        Next
                        $p = 135
                        For $o = 1 To 12
                            GUICtrlCreateLabel("Entry" & $o, 95, $p, 90, 18)
                            GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
                            GUICtrlSetColor(-1, 0x00ffffff)
                            $p = $p + 17
                        Next
                        $p = 400
                        For $o = 13 To 24
                            GUICtrlCreateLabel("Entry" & $o, 95, $p, 90, 18)
                            GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
                            GUICtrlSetColor(-1, 0x00ffffff)
                            $p = $p + 17
                        Next
                        $p = 135
                        For $o = 1 To 12
                            $Q[$o] = GUICtrlCreateInput($V[$o], 150, $p, 100, 18)
                            $p = $p + 17
                        Next
                        $p = 400
                        For $o = 13 To 24
                            $Q[$o] = GUICtrlCreateInput($V[$o], 150, $p, 100, 18)
                            $p = $p + 17
                        Next
                        GUISetState()
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...