XiaolinDraconis Posted June 22, 2014 Share Posted June 22, 2014 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 More sharing options...
XiaolinDraconis Posted June 22, 2014 Author Share Posted June 22, 2014 What I really want to do is make it so that it gets the mouse position then sets the coords -300, -150 (just big enough so the box fits above the tray icon. Link to comment Share on other sites More sharing options...
Solution jaberwacky Posted June 22, 2014 Solution Share Posted June 22, 2014 Put an open and a close parenthesis after MouseGetPos. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
XiaolinDraconis Posted June 22, 2014 Author Share Posted June 22, 2014 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. <--- Happy Dunce Thank You. Link to comment Share on other sites More sharing options...
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