Hi,
I'm looking to use AutoIt to create an .exe which will open Windows XP Picture viewer with a graphics file.
Eg, pictureview.exe graphic.tif
pictureview.exe graphic.bmp
The problem I'm having is the command within Windows XP to launch Picture Viewer with an argument is
rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen %1
I can get AutoIt to launch a blank Picture Viewer using
Run ( 'rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen' )
I can't figure out how to pass the argument %1 through to AutoIt so that the graphic file specified after the .exe opens.
When I use
Run ( 'rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen %1' )
nothing happens. No Picture Viewer at all.
Anyone got any ideas ? I'm hoping that it can actually be done with AutoIt but I'm not sure if the way Windows use the Picture Viewer allows it.
Help.....