Jump to content
Sign in to follow this  
Guest Resonance

Sample Code

Recommended Posts

Guest Resonance

I'm not really sure if this is the right place for this post... But anyways, I was just wondering if someone could post some idea for a not so complicated, but not to easy script for me to work on (the idea, not the script it self)? I'm kind of at my limit of knowledge as far as ideas.

best script I've done to date:

MsgBox(0, "", "Just follow the directions.")
Run("C:\Program Files\iTunes\iTunes.exe")
WinWaitActive("iTunes")
WinSetState("iTunes", "", @SW_MAXIMIZE)
$bloop = PixelChecksum(188, 143, 261, 196)
While $bloop = PixelChecksum(188, 143, 261, 196)
    Sleep(100)
WEnd
Sleep(300)
MouseClick("left", 236, 357)
Sleep(300)
Do
    $a = InputBox("Enter Song", "Enter the name of the song you want in the box.")
    MouseClick("left", 230, 178)
    Send($a)
    $b = InputBox("Enter Artist", "If you know the artist, enter it in the box.")
    MouseClick("left", 349, 175)
    Send($b)
    Send("{ENTER}")
    Sleep(3000)
    $c = MsgBox(1, "Choose Song", "Now pick the song you want, and double click it." & @CRLF & "A part of the song will play, make sure its the one you want." & @CRLF & "If it is, click OK, then buy the song." & @CRLF & "Click cancel to see you songs.")
    If $c = 1 Then
        Sleep(15000)
    EndIf
Until $c = 2
Sleep(1000)
MouseClick("left", 65, 210)
$d = MsgBox(4, "Songs", "these are all the songs you just downloaded, do you want to make a CD?")
If $d = 7 Then
    WinKill("iTunes")
    Exit
EndIf
If $d = 6 Then
    Send("{CTRLDOWN}a{CTRLUP}")
    Send("{CTRLDOWN}c{CTRLUP}")
    MouseClick("left", 63, 302)
    MouseClick("left", 415, 323)
    Send("{CTRLDOWN}v{CTRLUP}")
    MouseClick("left", 980, 69)
    Sleep(5000)
    MouseClick("left", 980, 69)
EndIf

A simple program for my mom to download songs off of iTunes for her.

Edited by Resonance

Share this post


Link to post
Share on other sites

How about making a bot for your favorite game and use a GUI for the setting up your bot. After the setting from the gui are made then hide the gui and let the bot do it's stuff. Also use a hotkey to pause the bot and to unhide the GUI.

Or if you want to try something harder then try making a game in Autoit. Look at the hangman game, simon says game and the snake game in Autoit.


.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...