Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Picture edit objects

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,32316
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Picture edit objects
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Picture edit objects - 3/16/2006 2:14:08 AM   
  yushyush

 

Posts: 10
Score: 0
Joined: 2/12/2006
Status: offline
Hi
Is there any object that can edit pictures that's pre-installed in winxp sp2 (unlike photoshop or any 3rd party i'll need to install).?
How can I use it ?

Basicly, I want to create a script to take a screenshot (i think i can do it via shell.sendKeys()) and save it automatically, problem is that i can't pre-install any 3rd party dll / objects.


Any one got any ideas ? 

 alot
 
 
Post #: 1
 
 RE: Picture edit objects - 3/16/2006 2:51:00 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Good luck with that. I think you are relegated to the special hell that is known as SendKeys. If you can get the printscreen then you could use MSPaint to save it.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to yushyush)
 
 
Post #: 2
 
 RE: Picture edit objects - 3/16/2006 3:00:24 AM   
  yushyush

 

Posts: 10
Score: 0
Joined: 2/12/2006
Status: offline
Thanks, i'll need it :)

Actually, sendkeys is not the problem here, if i only do shell.sendkeys(printscreen) , then i can use ie object to paste the data from clipboard to image (once i find the proper object), that should keep the whole thing relatevly clean....

That's what i need though, an object that i can use to save the data, without actually opening paintbrush or anything...

Some at work said there's IPicture object, i'm not sure i can use it though. Anyone can give me a hint please?

Thanks again :)

(in reply to ebgreen)
 
 
Post #: 3
 
 RE: Picture edit objects - 3/16/2006 3:10:39 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
I don't believe that IPicture exposes a COM interface for VBScript to use.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to yushyush)
 
 
Post #: 4
 
 RE: Picture edit objects - 3/16/2006 3:13:14 AM   
  yushyush

 

Posts: 10
Score: 0
Joined: 2/12/2006
Status: offline
that's a cruel thing to say  :)

any other objects of sorts ?

(in reply to ebgreen)
 
 
Post #: 5
 
 RE: Picture edit objects - 3/16/2006 7:19:59 AM   
  rOOs


Posts: 63
Score: 0
Joined: 2/28/2006
From: Switzerland
Status: offline
it would be great to have a solution for this problem for me tooooo......

:-))

(in reply to yushyush)
 
 
Post #: 6
 
 RE: Picture edit objects - 3/16/2006 7:55:10 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
So, I reread the OP and this phrase caught my attention:
"problem is that i can't pre-install any 3rd party dll / objects."

So does that mean that you could have the script deploy DLLs as part of it running. If so, then there may be 3rd party options available.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to rOOs)
 
 
Post #: 7
 
 RE: Picture edit objects - 3/18/2006 7:46:31 PM   
  yushyush

 

Posts: 10
Score: 0
Joined: 2/12/2006
Status: offline
Well, thinking of it, i could deploy and then un-deploy dll's,
thing is, how can i do that then?
and what do you advise for me to use ? :)

well, another problem, i can't send {prtsc} really, it doesn't do the job
any idea how to overcome this?

thanks alot

< Message edited by yushyush -- 3/18/2006 11:32:40 PM >

(in reply to ebgreen)
 
 
Post #: 8
 
 RE: Picture edit objects - 3/20/2006 3:55:55 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Just do a Google search for "VBScript Screen Capture" and you should get some ideas.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to yushyush)
 
 
Post #: 9
 
 RE: Picture edit objects - 3/20/2006 7:25:44 PM   
  yushyush

 

Posts: 10
Score: 0
Joined: 2/12/2006
Status: offline
well
i used a dll from http://www.jsware.net/jsware/scripts.html, it has capture() function
It pretty much saves your screen automatically to bmp

now, the big question is, how can i convert it to jpeg on the fly, so i don't trash up the pc...? :)

(in reply to ebgreen)
 
 
Post #: 10
 
 RE: Picture edit objects - 3/23/2006 7:38:46 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Did you try google for "VBScript convert bmp to jpg"?

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to yushyush)
 
 
Post #: 11
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Picture edit objects Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts