Jump to content

u01jmg3

Members
  • Posts

    7
  • Joined

  • Last visited

u01jmg3's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Modified slightly so now works - thanks! While 1 If Not ProcessExists("wmplayer.exe") And RegRead("HKCU\Software\Microsoft\MediaPlayer\Preferences", "HoverTransportsEnabled") = 1 Then ; Disable autohide controls RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "HoverTransportsEnabled", "REG_DWORD", "0") EndIf Sleep(100) WEnd
  2. @ Surya: thanks, this semi works. The script doesn't run unless Windows Media Player is running. Once you get the script running, it closes when Windows Media Player is closed. Any way to fix these 2 things and have the script running/polling all the time so each time I open/close Windows Media Player, the script does its thing?
  3. Thanks - how would I amend my code to use ProcessWaitClose? Do I need to create a new function? This is the section of code I've tried changing but when closing Windows Media Player, the registry key isn't being changed from 1 to 0. If Not ProcessExists("wmplayer.exe") And RegRead("HKCU\Software\Microsoft\MediaPlayer\Preferences", "HoverTransportsEnabled") = 1 Then ; Disable autohide controls RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "HoverTransportsEnabled", "REG_DWORD", "0") EndIf
  4. HotKeySet("^``", "toggle_media_controls") ; Ctrl + ` While 1 Sleep(100) WEnd If Not ProcessExists("wmplayer.exe") And RegRead("HKCU\Software\Microsoft\MediaPlayer\Preferences", "HoverTransportsEnabled") = 1 Then ; Disable autohide controls RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "HoverTransportsEnabled", "REG_DWORD", "0") EndIf Func toggle_media_controls() Local $sVar = RegRead("HKCU\Software\Microsoft\MediaPlayer\Preferences", "HoverTransportsEnabled") If ProcessExists("wmplayer.exe") Then If $sVar = 0 Then ; Enable autohide controls RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "HoverTransportsEnabled", "REG_DWORD", "1") Else ; Disable autohide controls RegWrite("HKCU\Software\Microsoft\MediaPlayer\Preferences", "HoverTransportsEnabled", "REG_DWORD", "0") EndIf EndIf EndFuncHow do I amend this code so that without pressing a hotkey, after Windows Media Player is not running, the regkey above is set to 0? My function and hotkey all work without issue
  5. Hi, I'm new to AutoIt but I wondered if it offered the ability to automatically cycle through to the 'time remaining' view on Windows Media Player 12 as per the attached image? Nowhere is there a registry key to change the default setting of always displaying 'time elapsed' so I thought AutoIt could help. Thanks
  6. A bit late to the party but thanks Xichael and IanN1990 This script is invaluable to me and a lifesaver when using Windows 7 on a daily basis I wondered however if the script could be improved to cover 2 slight issues I've come across whilst using it? Occasionally when clicking on my start button and my start menu opens and the script fires and correctly shows 'All Programs' I find that focus isn't always given to the search box until I mouse off my start button and over my start menu. Could the focus code be extended to remove this side effect? When deleting folders from my start menu upon completion of the delete my start menu jumps to showing me the recent/pinned apps list. I then have to click 'All Programs' again manually to be shown what I want to see. Could the script refire on this occasion to automatically show 'All Programs' again or is there a way to prevent a delete from reverting back to the recent/pinned apps list? I am a noob at AutoIt but a willing programmer. Thanks
×
×
  • Create New...