Jump to content

Recommended Posts

Hi, its me again :)

Anyone know if it would be possible to make a "wheel"

a picture of a volume wheel, that i can click and drag on, to higher and lower my wave volume.

The volume part can not be so hard to fix, but i wonder if its possible to interact with a picture?

Any ideas are more then welcome.

Were ever i lay my script is my home...

Link to post
Share on other sites

I am not sure as I havent played with the GUI version yet, but you may want to check there because I think they have a slider if that interests you at all. I dont know how to make it interact with a picture. (I am sure that would also be a GUI option).

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Link to post
Share on other sites

@Doxie: Maybe you could put two images (overlapped), a image like background and another like

drag-control. The complexity it's simulating a radial movement (maybe with a Sin() function) when you drag the control...

Only it's an idea that is happened to me for now...perhaps, someone have a better idea to do it... :)

Link to post
Share on other sites

My topic

Does that help?

<{POST_SNAPBACK}>

Nice. But, he wants like a circle...

You might be able to position one picture on top of anouther, and rotate it via autoit.  Here are two pics, one can be thought of like a finger hole on a volume.

Posted Image

Posted Image

<{POST_SNAPBACK}>

@scriptkitty: Yeah, I think the same about the appearance. :)
Link to post
Share on other sites

yea, transparent gifs don't seem transparent, this shows it using those two pics.

#include <GUIConstants.au3>

GUICreate("My GUI"); will create a dialog box that when displayed is centered
GUISetState (@SW_SHOW)     ; will display an empty dialog box
$n=GUICtrlCreatePic("circle.jpg",60,60,100,100)
$n2=GUICtrlCreatePic("button.gif",100,120,27,27)
$x=100
$y=110

; Run the GUI until the dialog is closed
$coords=StringSplit("100|120|110|90|80|90|100","|")
$i=1
While 1
    $x=$coords[$i]
  $y=$coords[$i+1]    
    $msg = GUIGetMsg()
    GUICtrlSetPos ( $n2, $x, $y)
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
        sleep(100)
        $i=$i+2
        If $i>6 Then $i=1
Wend

Easy way would be to use a bunch of sequentially named pictures and substitute thier names like Larry said.

edit... um duh if I make the gif, I guess I could have made a grey backround :)

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to post
Share on other sites

Ok, fixed the gif, uploaded it, and here is a quick showing of what I meant, It just moves the gif around but gives you an idea.

#include <GUIConstants.au3>

GUICreate("My GUI") ; will create a dialog box that when displayed is centered
GUISetState (@SW_SHOW)      ; will display an empty dialog box
$n=GUICtrlCreatePic("circle.jpg",60,60,100,100)
$n2=GUICtrlCreatePic("button.gif",100,120,27,27)
$x=100
$y=110

; Run the GUI until the dialog is closed
$coords=StringSplit("100|120|118|110|120|90|100|70|100|100","|")
$i=1
$t=1
While 1
    $x=$coords[$i]
  $y=$coords[$i+1]  
    $msg = GUIGetMsg()
    GUICtrlSetPos ( $n2, $x, $y)
    tooltip($x&","&$y,0,0)
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
     sleep(100)
     If $i<6 and $t=1 Then 
         $i=$i+2
     Else
         $t=2
         $i=$i-2
     EndIf
        If $i=1 Then $t=1
Wend
Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to post
Share on other sites

Ok, here is my example of rotating a dial. Sorry I didn't plot it for 0 to 100 yet.

#include <GUIConstants.au3>

GUICreate("My GUI") ; will create a dialog box that when displayed is centered
GUISetState (@SW_SHOW)      ; will display an empty dialog box
$n=GUICtrlCreatePic("circle.jpg",60,60,100,100)
$n2=GUICtrlCreatePic("button.gif",100,120,27,27)
$x=100
$y=110
$t=1
$m=1
While 1
If $t=2 Then 
    $start=25
    $finish=-25
  $t=1
  $n=-1
Draw()
Else
    $start=-25
    $finish=25
    $t=2
    $n=1
Draw()
EndIf
Wend

Func draw()
For $x=$start To $finish Step $n
  $y=Sqrt(625-($x*$x))  
    $msg = GUIGetMsg()
    GUICtrlSetPos ( $n2, 98+$x,(98+$y*$n))
    tooltip($start&@CR&$t,0,0)
    sleep(10)
Next
EndFunc

This just keeps circling, but you could use a value and update to show.

AutoIt3, the MACGYVER Pocket Knife for computers.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...