Jump to content

GUICtrlCreate Variable on MousegetPos


Go to solution Solved by jaberwacky,

Recommended Posts

I get this error but I don't understand.

OnTop+PeekThrough.au3" (40) : ==> Subscript used on non-accessible variable.:
$Form1 = GUICreate("Settings", 290, 142, $mPOS[0], $mPOS[1])
$Form1 = GUICreate("Settings", 290, 142, $mPOS^ ERROR
Func Options()
    $mPOS = MouseGetPos
    $Form1 = GUICreate("Settings", 290, 142, $mPOS[0], $mPOS[1])
    GUICtrlCreateRadio("", 119, 32, 17, 17)
    GUICtrlSetState(-1, $GUI_CHECKED)
    $Radio2 = GUICtrlCreateRadio("", 168, 32, 17, 17)
    $Label1 = GUICtrlCreateLabel("ON", 96, 32, 20, 17)
    $Label2 = GUICtrlCreateLabel("OFF", 142, 30, 24, 17)
    $Slider1 = GUICtrlCreateSlider(13, 72, 255, 25)
    GUICtrlSetLimit(-1, 255, 0)
    $Label3 = GUICtrlCreateLabel("-", 8, 72, 15, 17)
    $Label4 = GUICtrlCreateLabel("+", 269, 70, 10, 17)
    $Label5 = GUICtrlCreateLabel("Always On Top", 102, 3, 89, 17)
    GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
    $Label6 = GUICtrlCreateLabel("Transparency", 106, 56, 81, 17)
    GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
    $OK = GUICtrlCreateButton("OK", 128, 104, 33, 33)
    GUISetState(@SW_SHOW)

    While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
            Case $GUI_EVENT_CLOSE, $OK

                GUISetState(@SW_HIDE)
                ExitLoop
        EndSwitch
    WEnd
EndFunc   ;==>Options

 

Link to comment
Share on other sites

I feel pretty derp, it needs that to be able to give a return. Well at least during all this time I got most of the script finished. Just ran into another problem where I forgot to put a closer on my MsgBox... that only took me 30 minutes to notice.  :sorcerer: <--- Happy Dunce  :oops:

Thank You.

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...