Jump to content

Recommended Posts

Posted (edited)

In the following pic, is there a way to remove "Select Spellbook" from the drop down list? I want the first "Select Spellbook" to stay though.

Posted Image

Edited by momar33
Posted

In the following pic, is there a way to remove "Select Spellbook" from the drop down list? I the first "Select Spellbook" to stay though.

Posted Image

Assuming you have an ID for the menu item then just use GuiCtrlDelete

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Posted

Use _GUICtrlComboDeleteString(). Don't forget you need to include GUICombo.au3

Example

#include <GUIConstants.au3>
#Include <GuiCombo.au3>

$Form1 = GUICreate("Spell inve....", 255, 289, -1, -1)
$Button1 = GUICtrlCreateButton("Close", 88, 232, 75, 25, 0)


$Combo1 = GUICtrlCreateCombo("Select Spellbook", 2, 2, 145, 25)
_GUICtrlComboDeleteString (-1, 0)


GUICtrlSetData(-1, "Malachai|test|Zoltan")
$MenuItem1 = GUICtrlCreateMenu("Files")
$MenuItem2 = GUICtrlCreateMenu("Tools")
$MenuItem3 = GUICtrlCreateMenu("Windows")
$MenuItem4 = GUICtrlCreateMenu("About")
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE, $Button1
            Exit

    EndSwitch
WEnd
AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line

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
×
×
  • Create New...