Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Open current wallpaper under mouse in windows 8


  • Please log in to reply
1 reply to this topic
raveren
  • Members
  • 1 posts
  • Last active: Nov 11 2015 10:42 AM
  • Joined: 25 Jun 2014

This currently works for up to two monitors only, here you go:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; WIN+W opens wallpaper under mouse in WIN8

#w::
	SysGet, Mon1, Monitor, 1
	SysGet, Mon2, Monitor, 2

	CoordMode, Mouse, Screen
	MouseGetPos, x


	if(x <= Mon1Right){
		openWallpaperUnderMouse(0)
	} else {
		openWallpaperUnderMouse(1)
	}
return


openWallpaperUnderMouse(monitorNo)
{
	RegRead, fHexString, HKEY_CURRENT_USER, Control Panel\Desktop, TranscodedImageCache_00%monitorNo%

	Loop Parse, fHexString
		NewHexString .= A_LoopField (Mod(A_Index,2) ? "" : ",")

	consequtiveZeroes := 0
	Loop, Parse, NewHexString, `,
	{
		if (A_Index < 25) 
			continue

		if (consequtiveZeroes > 1)
		{
			Break
		}

		if (A_LoopField > 0)
		{
			ConvString .= Chr("0x" A_LoopField)
			consequtiveZeroes := 0
		} else {
			consequtiveZeroes := consequtiveZeroes + 1
		}
	}

	Run, %ConvString%
}


Elgo
  • Members
  • 1 posts
  • Last active: Jul 19 2014 01:19 PM
  • Joined: 17 Jul 2014

I have some files with the name format of "website.com - 100334 word word word word.png" where anything after the first space is interpreted as a parameter instead of part of the file name. Is there any way to get around this?

 

Seem to have made it work with 

Run RunDLL32.exe "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll"`, ImageView_Fullscreen %ConvString%