Sign in to follow this  
Followers 0
madmorgan

slidebar question

2 posts in this topic

#1 ·  Posted (edited)

hello all,

question about slide bars. I have one that has a limit from 0 to 100 and when i load my script it is all ways set at 0% and then i can move it to 100% fine. but my question is how can i set it at 50% when i run my script?

my code so far

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

Share this post


Link to post
Share on other sites



set the data to start it at 50

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

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

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