DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Screenshot Captor from Visual Basic?  (Read 8,406 times)

gulfaerospace

  • Participant
  • Joined in 2019
  • *
  • Posts: 3
Screenshot Captor from Visual Basic?
« on: August 23, 2019, 03:53 PM »
Is there a way to automate Screenshot Captor from visual basic?

Thanks.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Screenshot Captor from Visual Basic?
« Reply #1 on: August 23, 2019, 04:28 PM »
In the Screenshot Captor help file you'll find a section on Commandline use and options.

But you might also check out the littler brother of Screenshot Captor called MiniCap, which is a smaller commandline tool designed to be invoked from other programs:
https://www.donationcoder.com/software/mouser/popular-apps/minicap

gulfaerospace

  • Participant
  • Joined in 2019
  • *
  • Posts: 3
Re: Screenshot Captor from Visual Basic?
« Reply #2 on: August 28, 2019, 07:32 PM »
I'm sorry, but this does not seem to answer my question.

Visual Basic. My question is about triggering a screen capture from Microsoft Access. Microsoft Access supports Visual Basic.

Not sure how a command line option can help. I'm not trying to start SC in some unique mode. SC is already running and I would like to create a button in Access that executes Visual Basic command(s) to trigger a screen capture.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Screenshot Captor from Visual Basic?
« Reply #3 on: August 28, 2019, 08:04 PM »
Invoking Screenshot Captor from the commandline will not create a new instance of Screenshot Captor -- it will instead direct the currently running copy to perform a capture.
So you can invoke it from Visual Basic by launching it with commandline options.

So try from visual basic executing something (with Shell command?) like
Code
C:\Program Files (x86)\ScreenshotCaptor\ScreenshotCaptor.exe -capture workspace

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 11,205
    • Participated in NANY Challenge Fourteen Times
    • Coding Snacks
    • Writer
    • Hardware Hacker
Re: Screenshot Captor from Visual Basic?
« Reply #4 on: August 28, 2019, 08:10 PM »
Code: ( vb)
Dim RetVal
RetVal = Shell("C:\Program Files (x86)\ScreenshotCaptor\ScreenshotCaptor.exe -capture workspace", 1) 

gulfaerospace

  • Participant
  • Joined in 2019
  • *
  • Posts: 3
Re: Screenshot Captor from Visual Basic?
« Reply #5 on: September 03, 2019, 05:35 PM »
Well, that works. It's strangely slow however.

But I appreciate you both taking the time to show me that.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Screenshot Captor from Visual Basic?
« Reply #6 on: September 03, 2019, 06:00 PM »
In terms of speed.. I wonder if it's worth adding a way to send a message more directly to the running Screenshot Captor process..

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: Screenshot Captor from Visual Basic?
« Reply #7 on: September 03, 2019, 06:08 PM »
But you might also check out the littler brother of Screenshot Captor called MiniCap, which is a smaller commandline tool designed to be invoked from other programs:
https://www.donation...popular-apps/minicap
You suggested MiniCap before, wouldn't that be a quicker start&capture than the full ScreenshotCaptor executable?
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

Original address: https://www.donationcoder.com/forum/index.php?topic=48594.0