goldenix Posted July 19, 2009 Share Posted July 19, 2009 (edited) Hire is a standard GUI code with 2 Inputboxes. How do you make it possible so that at the startup the cursor is inside of the second input box? so that the Input2 is selected?Is there any other way than a controlclick and send(home/end) to do this?#Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 303, 214, 193, 115) $Input1 = GUICtrlCreateInput("Input1", 64, 56, 113, 21) $Input2 = GUICtrlCreateInput("Input2", 64, 120, 113, 21) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEndEDIT thanx Edited July 20, 2009 by goldenix My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list] Link to comment Share on other sites More sharing options...
Developers Jos Posted July 19, 2009 Developers Share Posted July 19, 2009 (edited) GuiCtrlSetState($h_ctrl,$GUI_FOCUS) Edited July 19, 2009 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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