antmcmullen Posted June 11, 2007 Posted June 11, 2007 I want to make my gui ALT + "something" compatible so i can fill in a form and jump from input box to input box using ALT Commands such as ALT F loads file menu , ALT V laucnhes view how to do in autoit?
Valuater Posted June 11, 2007 Posted June 11, 2007 (edited) Welcome to Autoit.... Here we help people that try... in other words "show some effort".. A great place to start to learn is "Welcome to Autoit 1-2-3" ... in my signature below 8) Edited June 11, 2007 by Valuater
antmcmullen Posted June 11, 2007 Author Posted June 11, 2007 (edited) I can do complex things wit autoit, its just that simple concept if you dont wish to assist, Thanks very much Sorry to have bothered you's yes i know i can use hotkeyset. However i cannot create a function to make the guiinputbox active Edited June 11, 2007 by antmcmullen
Gabburd Posted June 11, 2007 Posted June 11, 2007 (edited) Try GUICtrlCreateMenu()There's a great example for it in the help file. Edit: Slightly misunderstood your post the first time, try something like this:#include <GUIConstants.au3> GUICreate("AForm1", 180, 115, 197, 115) $filemenu = GUICtrlCreateMenu ("&File") $exititem = GUICtrlCreateMenuitem ("Exit",$filemenu) $Input1 = GUICtrlCreateInput("", 56, 32, 89, 21) $Input2 = GUICtrlCreateInput("", 56, 64, 89, 21) $Name = GUICtrlCreateLabel("&Name:", 16, 32, 39, 17) $Label = GUICtrlCreateLabel("&Label:", 16, 64, 39, 17) HotKeySet( "!n", "SetInputOne" ) HotKeySet( "!l", "SetInputTwo" ) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func SetInputOne() GUICtrlSetState( $Input1, $GUI_FOCUS ) EndFunc Func SetInputTwo() GUICtrlSetState( $Input2, $GUI_FOCUS ) EndFunc Edited June 11, 2007 by Gabburd
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