Jump to content

Recommended Posts

Posted

hello all,

firstly i wish to thank every one that has help me with my autoit programming.

my probelms are how can i use a image for a button?

and i have a slide bar that has a limit from 0 to 100% but when i run the program it all sets the slider at 0 all the time how can i set at 50% so the user can set higer latter if they want or lower?

thanks again for the help.

Posted

hello all,

firstly i wish to thank every one that has help me with my autoit programming.

my probelms are how can i use a image for a button?

and i have a slide bar that has a limit from 0 to 100% but when i run the program it all sets the slider at 0 all the time how can i set at 50% so the user can set higer latter if they want or lower?

thanks again for the help.

You need to show some code if we are suggest corrections.

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 (edited)

ok here is what i got for the slide bar i want it to loads at about 50% and then the user can make chages to the bar as they want

$Form1 = GUICreate("", 667, 546, 183, 124)
$Slider1 = GUICtrlCreateSlider(328, 296, 150, 45)
$slidelim = GUICtrlSetLimit($Slider1,100,2)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
        Switch $nMsg
            Case $GUI_EVENT_CLOSE
                Exit
            Case $Slider1
                $volume = guictrlread($Slider1)
                ;MsgBox(0,"",$volume)
        EndSwitch
WEnd

but i still want to know how to use a image for a button

Edited by madmorgan
Posted

but i still want to know how to use a image for a button

Try looking at GUICtrlSetImage() in the help file. Function Referance -> GUI Managment -> GUI Control Update -> GUICtrlSetImage()

We ought not to misbehave, but we should look as though we could.

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...