Jump to content

Do some hidden stuff w/paint


Achilles
 Share

Recommended Posts

I'm trying to do this all hidden but I'm not sure how to proceed. I've tried a bit of ControlSend but with paint I can't seem to find any of the control numbers... All I can get is the ClassNameNN but that doesn't seem to be working...

Func Resizepics($picture);$picture is just a file path to a picture
    ShellExecute($picture, '', '', 'edit');, @SW_HIDE)
    Sleep(500)
    Send("^w")
    Sleep(500)
    Send($percent);How much to scale the picture by... 
    Send("{tab}")
    Send($percent) 
    Send("{enter}")
    Sleep(500)
    Send("^s")
    Sleep(500)
    Send("!{f4}")
Endfunc

If anyone could let me know if this is possible or show me how to find out the control names or anything it would be greatly appreciated.... Thanks

Edited by Piano_Man
My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
Share on other sites

Dont use Send use Controlsend if your going to send keys to it, and shell execute will run the picture with its default setting and its not paint atleast i think it will

The 'edit' opens it with paint. And I found a solution for sending the control W:

WinMenuSelectItem('Paint', '', '&Image', '&Stretch/Skew...')

That works, but then I don't know how I would make the Stretch/Skew box be hidden...

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...