Messages - mouser [ switch to compact view ]

Pages: prev1 ... 7541 7542 7543 7544 7545 [7546] 7547 7548 7549 7550 7551 ... 7565next
37726
Find And Run Robot / Re: New Version
« on: March 25, 2005, 06:34 AM »
did you notice i added the alpha-blen (transparency) control?

37727
Find And Run Robot / Re: New Version
« on: March 25, 2005, 04:10 AM »
just again wanted to say how much i appreciate the beta testing!!
as a programmer it's so nice to know people who are willing to try these intermediate releases and report back, it's so much harder to fix these problems without such help.

37728
Find And Run Robot / Re: New Version
« on: March 25, 2005, 04:08 AM »
here's what i can tell you about the fix to shortcuts,
there is a windows API command called ShellExecute (google will find you lots of pages).
it can be used to start programs from within other programs, and can be used to tell windows to open an arbitrary file,
in which case windows is supposed to go looking for the program that handles that type of file and open it.
so basically ShellExecute does it all.

by default, F&R was invoking ShellExecute on the files selected for launching, whether they were exe files, other documents, or shortcuts to exes or documents (ie .link files).

apparently there were 2 problems with this.

the first was this policy i didnt know about which says the ShellExecute essentially hangs while waiting for the parent application of a document to start up and be ready to take input.  this was causing F&R robot to just sit on screen waiting and helpless.

the second problem was the fact that it seems on some computers, when ShellExecute is called with a ".lnk" file (shortcut file), it refuses to launch it.  i'm still not sure why certain machines do that and others don't.  it sounds like it could be a security issue but i've never heard it discussed before.

the solution to these problems were, first, to manually decode the shortcut file inside the program to recover the file being pointed to, whether it be an exe or a document.  then the second was to write a tiny like 1 line helper windows utility that basically just takes the name of a document on the command line, and calls ShellExecute on it to have windows open the appropriate program.  By using a separate helper to call ShellExecute, and by invoking that helper with a *different* kind of spawning api call (CreateProcess) i was able to hand off the "waiting for ShellExecute" responsibilities to a separate process and thereby let F&R get back to its job of minimizing or exiting after a launch.

probably more info than you wanted to know, but there it is :)


hehehe, well as i was telling someone before,
find&run is not really a competition for the desktop search engines which can actually look INSIDE files, find and run just works on file names, and because it actually searches for files on demand, its probably not ideal for searching entire hard drives over and over; in such cases its better to have a large database-driven constantly updating indexing system like one of those desktop search things.


37729
Find And Run Robot / Re: Thanks, with questions...
« on: March 24, 2005, 06:40 PM »
:beerchug:
woot! yippe.

im still not entirely sure why the shortcuts weren't launching on your machine.. maybe some security setting..
i just changed the method from depending on the system to launch the shortcut link to interrorgating the system to find the linked to object and launching it directly.

there is an added benefit from finding this bug though, which is that this method lets me use the new helper exe i just added which means that F&R can just hand it off to the other helper and resume its work more quickly.  so overall its a win.

strange about that gray bar - i thought i fixed it... well i'll just call it a feature and move on  ;D

i think i'll make this an official release..

and then decide whether the next round of work will be on new features in F&R or on Process Tamer improvements.

thanks for the help testing.

37730
Find And Run Robot / Re: Thanks, with questions...
« on: March 24, 2005, 05:57 PM »
yes, if this latest version doesnt fix it im going to make a version that produces log output to help us find the problem.

but try this first:

https://www.donationcoder.com/Beta/FindAndRunRobot.zip
or
https://www.donationcoder.com/Software/Mouser/findrun/downloads/FindAndRunRobotSetup.exe

Pages: prev1 ... 7541 7542 7543 7544 7545 [7546] 7547 7548 7549 7550 7551 ... 7565next
Go to full version