View Single Post
  #8  
Old 11-27-2013, 05:38
mr.exodia mr.exodia is offline
Retired Moderator
 
Join Date: Nov 2011
Posts: 783
Rept. Given: 490
Rept. Rcvd 1,123 Times in 305 Posts
Thanks Given: 89
Thanks Rcvd at 716 Times in 333 Posts
mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299
The export you're looking for is called "_ZN15QAbstractSlider17setSliderPositionEi" (Inside QtGui4.dll / Qt5Widgets.dll)

I made a small example program for you (Qt5, but the idea is the same), the button sets the slider to position 30.

Notice that you also need the class pointer to the slider control, this could be hard to obtain in a target you're not familiar with, but there is some help: the slider type (horizontal/vertical I think) is set inside the code using "_ZN15QAbstractSlider14setOrientationEN2Qt11OrientationE" it will use the same 'this' pointer.

Download: http://rghost.net/50472432

Hope this solves your problem...

Greetings,

Mr. eXoDia
Reply With Quote