Jump to content
Sign in to follow this  
borgtamer

Trouble with WinMove

Recommended Posts

borgtamer

I am trying to use WinMove to move and resize an image. The script is:

ShellExecute("F:\Misc\pics\fftest2.jpg", "", "", "open", @SW_MAXIMIZE)

Sleep(100)

WinMove ( "fftest2.jpg", "", 1062, 0 , 224, 642 )

However, the image window only moves to the specified location. It does not resize. What am I doing wrong? Thanks in advance.

Joe

Share this post


Link to post
Share on other sites
6105

Try this, for me works great:

ShellExecute("rundll32.exe",@SystemDir&"shimgvw.dll,ImageView_Fullscreen F:Miscpicsfftest2.jpg", "", "open", @SW_MAXIMIZE)
Sleep(500)
WinMove('fftest2.jpg', "", 0, 0 , 224, 642)

Tedy.


[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Share this post


Link to post
Share on other sites
borgtamer

Tedy,

Unfortunately it does not work for me.

Joe

Share this post


Link to post
Share on other sites
6105

Tedy,

Unfortunately it does not work for me.

Joe

Joe,

change sleep(100) to WinWait('fftest2.jpg') that will solve the trouble

Tedy.


[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×