Sign in to follow this  
Followers 0
madmorgan

cople of probelms

6 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#3 ·  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

Share this post


Link to post
Share on other sites

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


RAWR! I'm hungry :( Feed the panda squirrle

Share this post


Link to post
Share on other sites

ok cool thanks for telling me how to set a image as a button but now for the side bar probelm

Share this post


Link to post
Share on other sites

Function Referance -> GUI Managment -> GUI Control Update -> GUICtrlSetData()

Be sure to read the help file if you don't know how to do something.


RAWR! I'm hungry :( Feed the panda squirrle

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0