SetFocus
From OxeyeWiki
| component:setFocus() | ||
| Moves the user input's focus to this element. Currently only works for edit fields. | ||
| Parameter | Expected Type | Description | 
| No parameters | ||
| Returns | ||
| Returns nothing. | ||
Example
   local edit = gui.createComponent("editbox", frame)
   edit:setText(WChar("Enter your name here"))
   edit:setRelativePosition(10, 200, 100, 20)
   edit:setFocus()
				
								
								
												
			