Slaiochi Posted June 10, 2007 Posted June 10, 2007 When I click into an input box, the cursor doesn't move there, and no text I type is put there after the click. The only way I can get to the input box at this stage is with the tab key. Is there any way to shit focus to a certain input box by clicking rather than tabs? Source code to see what I may be doing wrong. expandcollapse popup$XSkinGui = XSkinGUICreate( "Spell Imper", 515, 340, $Skin_Folder, 1, 0) $XIcon = XSkinIcon($XSkinGui, 2) GUISetFont(7, 400, 0, "Small Fonts") GUICtrlCreateLabel("Spell Imper v1.3", 15, 10) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlCreateGroup ("Fas Spiorad Info", 15, 35, 235, 80) GUICtrlCreateLabel ("Fas Spiorad Slot:", 30, 60, 150, 45) $fsinput = GUICtrlCreateInput ("", 30, 80, 20, 20, $ES_NUMBER) GUICtrlCreateGroup ("Spell Info", 15, 125, 235, 200) GUICtrlCreateLabel ("Spell Slot:", 30, 155, 150, 45) $spellinput = GUICtrlCreateInput ("", 30, 175, 20, 20, $ES_NUMBER) GUICtrlCreateLabel ("Spell Lines:", 30, 210, 150, 45) $lines = GUICtrlCreateInput ("2", 30, 230, 20, 20, $ES_NUMBER) GUICtrlCreateLabel ("MP Cost:", 30, 265, 150, 45) $cost = GUICtrlCreateInput ("", 30, 285, 60, 20, $ES_NUMBER) $switchbox = GUICtrlCreateCheckbox ("Switch Staff?", 150, 60, 90, 20) $paneradio1 = GUICtrlCreateRadio ("Temauir Spell", 150, 135, 90, 20) GUICtrlSetState ($paneradio1, 1) $paneradio2 = GUICtrlCreateRadio ("Medenia Spell", 150, 160, 90, 20) GUICtrlCreateGroup ("Character Info", 265, 35, 235, 140) $hlabel = GUICtrlCreateLabel ("HP: " & $hp & "/" & $mhp & " [" & $hpp & "%]",280,60,200) $hpprogress = XSkinProgress (280, 80, 200, 15) $mlabel = GUICtrlCreateLabel ("MP: " & $mp & "/" & $mmp & " [" & $mpp & "%]", 280, 105, 200) $mpprogress = XSkinProgress (280, 125, 200, 15) $maplabel = GUICtrlCreateLabel ("Map: " & $map & " " & $x & "," & $y, 280, 150, 150) _ReadVitals() _MapName() GUISetState() TogglePause() GUISetState() While 1 MouseOver() _Cast() $msg = GUIGetMsg() If $msg = $XIcon[1] Then Exit If $msg = $XIcon[2] Then GUISetState(@SW_MINIMIZE) WEnd
star2 Posted June 10, 2007 Posted June 10, 2007 are u sure these are all the lines in your script? u didn't put the #include <XSkin.au3> and u didn't declare some functions? if there's some lines u didn't post please post other wise we'll help u make your functions [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]
Slaiochi Posted June 10, 2007 Author Posted June 10, 2007 I think I figured it out.. ;Pause/Unpause Func TogglePause() $Paused = Not $Paused While $Paused $msg = GUIGetMsg() If $msg = $XIcon[1] Then Exit If $msg = $XIcon[2] Then GUISetState(@SW_MINIMIZE) ToolTip("Paused",0,0) WEnd ToolTip("Casting",0,0) EndFunc That keeps the macro paused, it might be keeping the input boxes from reacting too..
Valuater Posted June 10, 2007 Posted June 10, 2007 Overlaping controls....GUICtrlCreateLabel ("Fas Spiorad Slot:", 30, 60, 150, 45)$fsinput = GUICtrlCreateInput ("", 30, 80, 20, 20, $ES_NUMBER)GUICtrlCreateGroup ("Spell Info", 15, 125, 235, 200)GUICtrlCreateLabel ("Spell Slot:", 30, 155, 150, 45)$spellinput = GUICtrlCreateInput ("", 30, 175, 20, 20, $ES_NUMBER)8)
Slaiochi Posted June 10, 2007 Author Posted June 10, 2007 Val, that's the height parameter not the y position, they aren't overlapping..
Valuater Posted June 10, 2007 Posted June 10, 2007 Val, that's the height parameter not the y position, they aren't overlapping..Think again!!!.... yes they are!8)
Slaiochi Posted June 11, 2007 Author Posted June 11, 2007 Wow, sorry about that, you were right. Being up for 20 hours ftw
Valuater Posted June 11, 2007 Posted June 11, 2007 Wow, sorry about that, you were right. Being up for 20 hours ftw np8)
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