This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General Discussion
 General Discussion
 How to use the File Pattern Path
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

q469649305

China
25 Posts

Posted - 11/29/2012 :  06:44:01  Show Profile
I want to use the same gesture in one folder.
How can I do it?

Rob

USA
2615 Posts

Posted - 11/29/2012 :  07:58:25  Show Profile  Visit Rob's Homepage
Can you provide some more details about what you're trying to achieve?

Do you mean mean when drawing a gesture over an Explorer window that is in a specific folder?

By the way, the file pattern path only applies to the path of the EXE which is running where you begin drawing a gesture.
Go to Top of Page

q469649305

China
25 Posts

Posted - 11/29/2012 :  20:02:34  Show Profile
For example,If I have a folder d:\test which has many exe files.
I want to use the same gesture on d:\test\*.exe
So I create a new app and type d:\test or d:\\test in File Pattern Path,but the gestures I set for them don't work
How can I do?
Go to Top of Page

Rob

USA
2615 Posts

Posted - 11/29/2012 :  22:27:46  Show Profile  Visit Rob's Homepage
It's not a wildcard pattern, it uses regular expressions. Additionally, Windows deals with file paths by volume identifiers (which I just found out), so your D: drive isn't internally recognized as such when S+ calls the GetProcessImageFileName API call.

For example, on my system F: drive, I created a folder named test, but in the file path pattern, I must use:

\\Device\\HarddiskVolume1\\test\\.*

Then, any EXE running from that folder is matched.

You can download WinObj to find out the device path:
http://technet.microsoft.com/en-us/sysinternals/bb896657.aspx

Click on GLOBAL?? and find D: in the right pane, you'll see the device path (SymLink). Now, you'll need to escape any backslashes, so:

\Device\HarddiskVolume1\test\.* (would match anything in the test folder of that drive)

Needs to be entered in the File Path Pattern as:

\\Device\\HarddiskVolume1\\test\\.* (each \ must be escaped with an extra backslash \\)

I could technically add code to resolve the drive letters from device paths, but it adds processing time to every gesture, mouse click, and window activation, so I'm afraid I must leave S+ the way it is for performance reasons.
Go to Top of Page

q469649305

China
25 Posts

Posted - 11/30/2012 :  00:00:35  Show Profile
Thank you!It now has solved my problem
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000