Author |
Topic |
|
q469649305
China
25 Posts |
Posted - 11/29/2012 : 06:44:01
|
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
|
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. |
|
|
q469649305
China
25 Posts |
Posted - 11/29/2012 : 20:02:34
|
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? |
|
|
Rob
USA
2615 Posts |
Posted - 11/29/2012 : 22:27:46
|
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. |
|
|
q469649305
China
25 Posts |
Posted - 11/30/2012 : 00:00:35
|
Thank you!It now has solved my problem |
|
|
|
Topic |
|
|
|