Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 07, 2016, 10:28:09 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: Minicap Download, Version & -resize  (Read 14456 times)

S0789300

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 23
    • View Profile
    • Donate to Member
Minicap Download, Version & -resize
« on: June 14, 2009, 12:22:02 PM »
Hey Mouser - I messaged you a while back regarding Minicap and you kindly included the resize values such as -resizex and -resizexp...

However, I came back to download the newest version and several problems arise. (1) When I download the file, the version says installing 1.16.X - but the properties version states 1.08.X... this might not be a problem as the label just couldn't have been changed yet, but it relates to #2 where (2) I attempt to use the -resizex and -resizexp parameters it states "Unknown Command Line Argument"... so either its because the wrong version is uploaded, or im simply calling the method wrong.

I am doing the following:


      
      $command &= ' -resizexp ' & $percent
      

   


where my targetimage is an image location to store the screen capture. The _pos values are just for your -captureregion parameter. Now this puppy works just fine without the -resizewhatever line (I have tried exp and x) but I need to resize the image to make it larger for me to work with it better. The problem is, I keep throwing the "Unknown Command Lind Argument" exception....

any help would be greatly appreciated...

Regards,
M

« Last Edit: June 15, 2009, 07:15:23 AM by S0789300 »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,408
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #1 on: June 15, 2009, 03:27:01 AM »
when it says "unknown command line arguement" it shows you what arguement it didnt understand at the end of that line.  what does it tell you it doesnt understand?

S0789300

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 23
    • View Profile
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #2 on: June 15, 2009, 03:41:20 AM »
the -resizexp or -resizex command. I can take a screenshot - see attached.

The $percent variable in the code I posted is just an integer. In this case I set it to 200 just for testing.






And it all works without the new resize arguments. Though, I would really like to get the resize working as it would increase my pixel recognizing accuracy  :)
« Last Edit: June 15, 2009, 07:15:04 AM by S0789300 »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,408
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #3 on: June 15, 2009, 04:06:17 AM »
strange.. let me upload a new version and let's make sure.

download and install:
http://www.donationc...ads/MiniCapSetup.exe

if you still get the error -- try it without the resize arguements and without the -exit and please make sure its really running v1.16.02.

S0789300

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 23
    • View Profile
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #4 on: June 15, 2009, 04:36:29 AM »
Ok.

So, I deleted my entire MiniCap directory just to make sure I was getting the correct version rolling. I downloaded your version you just posted and haven't tried the script yet. The reason is, I wanted to show you this via its properties in windows (see attached). I don't know if this is correct, or if its signalling a problem, but this is what I was quickly mentioning before. This quite clearly isn't labeled the correct version, even if the setup.exe said it was installing the correct version - which it still might have, but the label might not be updated.


mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,408
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #5 on: June 15, 2009, 04:41:25 AM »
the properties version is meaningless in my apps -- i should keep it updated but i rarely do.

S0789300

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 23
    • View Profile
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #6 on: June 15, 2009, 04:45:03 AM »
Yup, I tested it. -resizex (et al.) still is an unrecognized command line argument. The script works fine without it. I have no idea what is happening.

Works:
Quote
   ;$command &= ' -resizex ' & $percent commented out
      

Doesn't work (Unrecognized Command Line Argument):
Quote
   $command &= ' -resizex ' & $percent
      
« Last Edit: June 15, 2009, 07:14:55 AM by S0789300 »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,408
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #7 on: June 15, 2009, 05:11:35 AM »
an idea:
can you print to screen the commandline as it tries to run it, then i can try to reproduce with the exact commandline, and you can see what commandline is actually being passed.

S0789300

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 23
    • View Profile
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #8 on: June 15, 2009, 05:24:30 AM »
Ok - now I did it manually via the command line and the -resize (et al.) commands, still don't work. So obviously im (1) either running the wrong version.. which seems highly unlikely since I installed from your direct link numerous times or (2) something is messed  :(

See Attached (tried with and without resize)
« Last Edit: June 15, 2009, 05:34:29 AM by S0789300 »

S0789300

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 23
    • View Profile
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #9 on: June 15, 2009, 05:27:40 AM »
Is there a quick way via cmd line to make it shout at me what version its running just to make sure? And to give a label thats correct  :D

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,408
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #10 on: June 15, 2009, 05:28:52 AM »
Is there a quick way via cmd line to make it shout at me what version its running just to make sure?

if you just type minicap.exe on that commandline, it will pop up and show version in titlebar.

S0789300

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 23
    • View Profile
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #11 on: June 15, 2009, 05:33:23 AM »
Sorry for my ignorance on that easy thing - been trying to run it on the fly in an autoitscript and have not even tried to run the program standalone as its worked from the start  :) (except for the resize bit)

When I run minicap.exe I don't get a pop up with a title, I just get red outlines on my screen for where information can be grabbed. Should I be directing my eye somewhere else for the version label?
« Last Edit: June 15, 2009, 05:35:53 AM by S0789300 »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,408
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #12 on: June 15, 2009, 05:46:41 AM »
sorry my bad -- just hit escape (or capture an image) after the red box stuff, and you will *then* go to the main window.

S0789300

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 23
    • View Profile
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #13 on: June 15, 2009, 06:29:51 AM »
Ok (see attached).

Don't know why its this version, as I installed from your link! (And deleted the old one and tried again!)

Were the commands implemented in this version? Where to go from here?

Thanks for all the help thus far


mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,408
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #14 on: June 15, 2009, 06:35:54 AM »
well the cause of your problem is clear, as suspected: you have a rogue older copy of minicap.exe installed somewhere on your path.
now you need to find out where it is and delete or replace it with the new copy.

S0789300

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 23
    • View Profile
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #15 on: June 15, 2009, 06:40:09 AM »
Well... that makes me feel stupid. I have no idea why its doing that as I have deleted it and attempted a full re-install. I will see what I can do and get back to you.

Cheers

S0789300

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 23
    • View Profile
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #16 on: June 15, 2009, 06:45:18 AM »
Ok - I found it - now the version says 1.16.~ ... however, I am still getting Unrecognized Command Line Argument for -resizex and -resizexp - should I post screenshots?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,408
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #17 on: June 15, 2009, 06:45:56 AM »
open up your command prompt and type:
where minicap.exe

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,408
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #18 on: June 15, 2009, 06:46:28 AM »
make sure you delete the old copy, something tells me it's still being launched.

S0789300

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 23
    • View Profile
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #19 on: June 15, 2009, 06:47:08 AM »
Yup something is screwy - give me a second. (two .exe's being launched as you suspected).

S0789300

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 23
    • View Profile
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #20 on: June 15, 2009, 06:52:03 AM »
where is not a recognized command - using windows cmd. Gotta figure out where the 1.14 bugger is laying around since the Uninstall didn't take care of it.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,408
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #21 on: June 15, 2009, 06:59:54 AM »
hmm wonder where i got my where from..
just do a file search on your entire hard drive.

S0789300

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 23
    • View Profile
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #22 on: June 15, 2009, 07:06:03 AM »
Found the bugger hiding in the system32 dir...  :Thmbsup:

And guess what... SHE WORKS!!!!!!!!!!!!!!!!!!!! :D :D :D :D :D

Oh man, im excited to get home from work and test this puppy in the script now. You  may have just increased my image recognition accuracy by an order of magnitude  :-*

Thanks so much mouser! Ill let you know how it goes. Chalk another success up for the MiniCap.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,408
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #23 on: June 15, 2009, 07:07:30 AM »
:)

since minicap wouldn't put itself there during installation, i'm guessing you probably just copied minicap.exe into the system32 directory so it would be found on the system path when launched from another program, and then forgot about it.

S0789300

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 23
    • View Profile
    • Donate to Member
Re: Minicap Download, Version & -resize
« Reply #24 on: June 15, 2009, 07:10:43 AM »
Yeah, I noticed my old script had "@SYSTEMDIR" in its path call and was like hmmm.... then I found the bugger.

Im using your minicap in a dynamic OCR algorithm that detects characters,strings, numerals and images under 150x150 pixels (ie: icons). Its quite fluid and very stable, but if the font goes small it sometimes confuses 'cl' with 'd' for example. Thus, by using your resize parameter I can solve this problem quite smoothly increasing its accuracy on the 'harder' bits. If you are interested in seeing your MiniCap in action in this regard, I can send you along some screenies. Again, thanks for all the help.  :Thmbsup:
« Last Edit: June 15, 2009, 07:13:35 AM by S0789300 »