AutoHotkey Community

It is currently May 27th, 2012, 10:49 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: September 27th, 2006, 7:36 am 
Offline

Joined: September 26th, 2006, 12:52 am
Posts: 160
Location: In a House, On my a55
ok after looking at the controls of falcos media lpayer thing i have came up with a solution..... i have spent exactly 17 minuits lol coming up with this new amazing control that can be used anytime,

this is the code below, to use it go to the desktop screen and type one of the following words followed by tapping the space bar (type these words exactly without the 1)etc and without the =etc just the word between )

1)open media player = opens media player
2)next = Skips a track to the next
3)previous = goes back to the last track
4)exit player = closes windows media player
5)play disc = plays a music disc in the cd drive
6)eject = opens the cd drive

have fun let me know what you think and ill be making a new version that opens a wide range of programs like notepad, windows media player, internet explorer...etc :o

Code:
::open music player::
{
   run, c:\program files\Windows Media Player\WMPlayer.exe
   Sleep, 500
   WinMinimize, Windows Media Player
}
return

::next::
{
   WinActivate, Windows Media Player
   Sleep, 500
   Send, {ALTDOWN}PN{ALTUP}
   Sleep, 500
   WinMinimize, Windows Media Player
}
return

::previous::
{
   WinActivate, Windows Media Player
   Sleep, 500
   Send, {ALTDOWN}PV{ALTUP}
   Sleep, 500
   WinMinimize, Windows Media Player
}
return

::exit player::
{
   WinActivate, Windows Media Player
   Sleep, 500
   Send, {ALTDOWN}FX{ALTUP}
   Sleep, 500
   WinMinimize, Windows Media Player
}
return

::play disc::
{
   WinActivate, Windows Media Player
   Sleep, 500
   Send, {ALTDOWN}PD{ALTUP}
   Sleep, 500
   WinMinimize, Windows Media Player
}
Return

::eject::
{
   WinActivate, Windows Media Player
   Sleep, 500
   Send, {ALTDOWN}PE{ALTUP}
   Sleep, 500
   WinMinimize, Windows Media Player
}
return

_________________
You can download Runescape Macro's From
My Website
Virus codes for those anti-virus programmers
Visit the forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 27th, 2006, 11:45 am 
Code:
Send, {LAUNCH_MEDIA}
Send, {MEDIA_NEXT}
Send, {MEDIA_PLAY_PAUSE}
Send, {MEDIA_PREV}
Send, {MEDIA_STOP}


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 27th, 2006, 7:46 pm 
Offline

Joined: September 26th, 2006, 12:52 am
Posts: 160
Location: In a House, On my a55
yes thanx alot man that really helps out... :D

Code:
::open music player::
{
    Run, E:\program files\Windows Media Player\WMPlayer.exe
   WinMinimize, Windows Media Player
}
return

::next::
{
   Send, {MEDIA_NEXT}
}
return

::previous::
{
   Send, {MEDIA_PREV} 
}
return

::exit player::
{
   Exit, Windows Media Player
}
return

::play::
{
   Send, {MEDIA_PLAY}
}
Return

::eject::
{
   WinActivate, Windows Media Player
   sleep, 250
   Send, {ALTDOWN}PJ{ALTUP}
   WinMinimize, Windows Media Player
}
return


although there isnt a code for ejecting the disc i dont think :cry:

_________________
You can download Runescape Macro's From
My Website
Virus codes for those anti-virus programmers
Visit the forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 27th, 2006, 7:55 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
Seclinix wrote:
although there isnt a code for ejecting the disc i dont think :cry:
There is Drive, Eject.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 27th, 2006, 11:02 pm 
Offline

Joined: September 3rd, 2006, 5:34 am
Posts: 601
Location: Iowa, U.S.
Use the search funtion or the catalogue of all scripts, there are many good ones out there. Many people have their own likes. :D:D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 28th, 2006, 7:48 am 
Offline

Joined: September 26th, 2006, 12:52 am
Posts: 160
Location: In a House, On my a55
yes thats tru but i am only learning so i have only come up with simple scripts yet athough they are mainly made because of my needs only, but id rahter share them incase anyone else shares the same interest... :o

_________________
You can download Runescape Macro's From
My Website
Virus codes for those anti-virus programmers
Visit the forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 30th, 2006, 5:26 am 
Offline

Joined: September 26th, 2006, 12:52 am
Posts: 160
Location: In a House, On my a55
Update: oopppppsss im really sorry guys i made a mistake :oops:
here is the proper code all tested oo on windows xp


Hey guys here is an update if you want it lol its quiet cool and nifty, i learnd gui in 20 mins and this is how i have progressed based on the examples

Code:
Gui, +Resize
Gui, Add, Button, Default, &Open Media Player
Gui, Add, Button, Default, &Next
Gui, Add, Button, Default, &Previous
Gui, Add, Button, Default, &Eject
Gui, Show
Return

ButtonOpenMediaPlayer:
{
   Run, C:/program files/Windows Media Player/WMPlayer.exe
}
Return

ButtonNext:
{
   Send, {MEDIA_NEXT}
}
Return

ButtonPrevious:
{
   Send, {MEDIA_PREV}
}
Return

ButtonEject:
{
   Drive, Eject
}
Return

GuiClose:
ExitApp
Return

_________________
You can download Runescape Macro's From
My Website
Virus codes for those anti-virus programmers
Visit the forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 30th, 2006, 5:51 am 
Offline

Joined: September 3rd, 2006, 5:34 am
Posts: 601
Location: Iowa, U.S.
You can make the drive, eject button a toggle so when you click it once it ejects, then click it again and it closes


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 30th, 2006, 7:52 am 
Offline

Joined: September 26th, 2006, 12:52 am
Posts: 160
Location: In a House, On my a55
oh ok so um hmm whats the code for closing the disc drive? i tried retract but doesnt work

_________________
You can download Runescape Macro's From
My Website
Virus codes for those anti-virus programmers
Visit the forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 30th, 2006, 8:11 am 
Offline

Joined: September 26th, 2006, 12:52 am
Posts: 160
Location: In a House, On my a55
ok try this it is my code all finished not retract tray but it worx and looks good lol :o

http://www.autohotkey.net/~seclinix/Smart%20Control%20v2.exe

_________________
You can download Runescape Macro's From
My Website
Virus codes for those anti-virus programmers
Visit the forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 30th, 2006, 8:23 am 
Offline

Joined: September 7th, 2006, 10:42 am
Posts: 65
rewrite ButtoEject: with

Code:
ButtonEject:
if Ejected
  Ejected = 0
else
  Ejected = 1
Drive, Eject,, %Ejected%
Return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 30th, 2006, 4:59 pm 
Offline

Joined: September 3rd, 2006, 5:34 am
Posts: 601
Location: Iowa, U.S.
Yes Change the button text to : Eject/Retract, and make it toggle.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 1st, 2006, 2:54 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
If your updated script is better in all respects than the one in the topmost post, it's usually best to edit your top post so that visitors can easily locate the correct version of the script.

Thanks for sharing your work.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 8th, 2006, 7:16 am 
yer i guess but i am still working on it tho im making more advancements


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 8th, 2006, 8:01 am 
Offline

Joined: September 26th, 2006, 12:52 am
Posts: 160
Location: In a House, On my a55
here is a small gui update it was made in 5 mins so xcuse any problems

Code:
Gui, Color, f2f2f2
Gui, +Resize
Gui, Add, Button, Default, &Open Media Player
Gui, Add, Button, Default, &Next
Gui, Add, Button, Default, &Previous
Gui, Add, Button, Default, &Play CD
Gui, Add, Button, Default, &Shutdown Computer
Gui,Font, S9 Cred w500, Times New Roman
Gui,add,text,x110 y80 w200, Seclinix Programs


Gui, Show
Return

ButtonOpenMediaPlayer:
{
   Run, C:/program files/Windows Media Player/WMPlayer.exe
}
Return

ButtonNext:
{
   Send, {MEDIA_NEXT}
}
return

ButtonPrevious:
{
   Send, {MEDIA_PREV}
}
Return

ButtonPlayCD:
{
   WinACtivate, Windows Media Player
   Sleep, 250
   Send, {ALTDOWN}PD{ALTUP}
   Sleep, 250
   WinMinimize, Windows Media Player
}
Return

;this is the scroller button on the mouse
MButton::
{
   if Ejected
     Ejected = 0
else
     Ejected = 1
   Drive, Eject,, %Ejected%
}
Return

ButtonShutDownComputer:
{
   MsgBox, 4,,Would you like to shutdown?
   IfMsgBox, no
      Return
   Shutdown 12
}
Return


GuiClose:
ExitApp
Return

_________________
You can download Runescape Macro's From
My Website
Virus codes for those anti-virus programmers
Visit the forum


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 37 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group