topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday March 28, 2024, 5:26 pm
  • Proudly celebrating 15+ 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 22810 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 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 AM by S0789300 »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • 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 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 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 AM by S0789300 »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • 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 AM »
strange.. let me upload a new version and let's make sure.

download and install:
https://www.donation...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 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: 40,896
    • 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 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 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:
   ;$command &= ' -resizex ' & $percent commented out
      

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

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • 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 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 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 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 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: 40,896
    • 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 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 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 AM by S0789300 »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • 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 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 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: 40,896
    • 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 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 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 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: 40,896
    • 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 AM »
open up your command prompt and type:
where minicap.exe

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • 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 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 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 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: 40,896
    • 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 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 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: 40,896
    • 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 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 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 AM by S0789300 »