AutoHotkey Community

It is currently May 27th, 2012, 11:39 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 81 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6
Author Message
 Post subject:
PostPosted: September 26th, 2011, 11:09 pm 
so yeah, I didn't realize that there were 5 pages of responses until I posted my reply... apparently this issue has been discussed and resolved. thanks!


Report this post
Top
  
Reply with quote  
 Post subject: update?
PostPosted: November 15th, 2011, 4:58 am 
Well, iTunes has been updated again and now the hotkeys will no longer work. Any hints to editing the code so it will correctly control the new iTunes, like what polyphenol suggested for the previous version?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2011, 9:31 am 
Offline

Joined: November 20th, 2011, 9:28 am
Posts: 1
Location: Los Angeles, CA., U.S.A.
It doesn't work due to an update recently (10.5.1 I think). There is an easy fix to it.

All you have to do is open up the script and change

Code:
ITWindow

in all
Code:
IfWinExist, ahk_class ITWindow


to

Code:
[code]iTunes[/code]


That's it. Now it should work. It did for me.

Earlier an update changed the window name before, as anon says:

Anonymous wrote:
From iTunes 10.4.x the window class name has changed to "ITWindow" so you need replace all instances of "ahk_class iTunes" with "ahk_class ITWindow" for this script to continue working.


I guess they changed it back.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 26th, 2011, 9:54 am 
beefcake4000 wrote:
It doesn't work due to an update recently (10.5.1 I think). There is an easy fix to it.

All you have to do is open up the script and change

Code:
ITWindow

in all
Code:
IfWinExist, ahk_class ITWindow


to

Code:
[code]iTunes[/code]


That's it. Now it should work. It did for me.

Earlier an update changed the window name before, as anon says:

Anonymous wrote:
From iTunes 10.4.x the window class name has changed to "ITWindow" so you need replace all instances of "ahk_class iTunes" with "ahk_class ITWindow" for this script to continue working.


I guess they changed it back.


Thank you so much! This fixed my problem.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 19th, 2011, 12:51 am 
Offline

Joined: January 14th, 2007, 7:32 pm
Posts: 36
Any way to add functionality to delete the currently playing song? I have a very similar script that works for winamp (v 5.61), and all it's missing for iTunes is an ability to get the location of the song back from the API
Code:
^+d::
      WinGet, uniqueID, ID, A
      ClipStore := ClipboardAll    ; Save the entire clipboard to a variable of your choice.
      Clipboard =
      Send, ^!+/    ; This is the part I'm talking about. I set the Ctrl+Alt+Shift+"/" hotkey in Winamp's Global HotKeys to the function "Copy file path (unicode)" which sets the path of the currently playing file to the clipboard. How can this be replicated in iTunes?
      ClipWait
      PostMessage, 0x111,40048,,,ahk_class Winamp v1.x    ; Plays next song
      FileRecycle, %Clipboard%

      IfWinExist, ahk_class BaseWindow_RootWnd    ; This will clear the deleted songs from the playlist in the background
      {
         WinActivate, ahk_class BaseWindow_RootWnd
         ControlClick,,, Playlist Editor
         Send, {Alt Down}{DEL}{Alt Up}
      }
      WinActivate, ahk_id %uniqueID%
      Clipboard := ClipStore               ; Restore the original clipboard. Note the use of Clipboard (not ClipboardAll).
      ClipStore =                  ; Free the memory in case the clipboard was very large.
return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 28th, 2011, 4:23 am 
gah I cant get it to work with 10.5.2.11


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 81 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], nomissenrojb and 63 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