borgtamer Posted March 6, 2012 Share Posted March 6, 2012 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 Link to comment Share on other sites More sharing options...
6105 Posted March 6, 2012 Share Posted March 6, 2012 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] Link to comment Share on other sites More sharing options...
borgtamer Posted March 6, 2012 Author Share Posted March 6, 2012 Tedy, Unfortunately it does not work for me. Joe Link to comment Share on other sites More sharing options...
6105 Posted March 6, 2012 Share Posted March 6, 2012 Tedy,Unfortunately it does not work for me.JoeJoe,change sleep(100) to WinWait('fftest2.jpg') that will solve the troubleTedy. [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] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now