Jump to content

Recommended Posts

Posted

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?

Posted (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 by Valuater

NEWHeader1.png

Posted (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 by antmcmullen
Posted (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 by Gabburd

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...