Page 1 of 1

Keyboard shortcut assignments to run scripts

Posted: 17 Jun 2009 08:25
by gregP
Hi, I'm about to purchase 15 licenses, but need to resolve this problem first..

Problem: the keyboard shortcut I assign to a Run a Script (shift + F9) only work for the very first try for each (2) scripts, then do nothing.

The script runs fine with "User > run Script" by the way.

What settings have I missed !?!?

Environment - Terminal Server - windows 2008.

(While I'm here, is there a way to switch from XY to an MS Access window using script? ...I'm validating the users new file name choice when renaming an exisitn file, against a list of of valid entries in an Access table)

Thanks,
Greg

Re: Keyboard shortcut assignments to run scripts

Posted: 17 Jun 2009 08:32
by j_c_hallgren
Hi and welcome to the XY forums!

About the window switching...I'm not a script'r but I don't believe XY script can do it; however, I'm pretty sure that another product that I read about here extensively can do so: AHK (AutoHotKey at http://www.autohotkey.com) and we have a few users here who are quite experienced on that app.

BTW, just curious: Did the recent dual pane addition have any impact on your decision to buy the product, given that you plan on mutiple licenses, or were you already a potential user?

Re: Keyboard shortcut assignments to run scripts

Posted: 17 Jun 2009 09:14
by admin
Hi,
gregP wrote:Problem: the keyboard shortcut I assign to a Run a Script (shift + F9) only work for the very first try for each (2) scripts, then do nothing.
Hmm, looks like a bug. I cannot reproduce it here though. So I guess it's specific to the script you are running. Does the script move the focus to somewhere where a keyboard shortcut cannot reach? (If your shortcut is shift + F9 then it should work always, but I ask anyway...)

Don

Re: Keyboard shortcut assignments to run scripts

Posted: 17 Jun 2009 22:46
by gregP
G'day Don..and thanks for the fast reply.

The 2 scripts are as simple as you can get..

The first just copies the file name to the clip board
copytext report("{Name}", 1);

And the second renames a file using the contens of the clipboard.
rename , <clipboard>;

(You're right that when I re-assigned shift + F9 to the script, it always worked)

My point in having a keyboard shortcut with a minimum of key presses needed to activate the script (as distinct to using the built in ones), is that each month we rename thousands of scanned files, and I'm trying to make it as easy as I can for the operator.

To explain a little further...
- in XY, the user left clicks on the subject file to be renamed, then triggers the simple script in copy the file name to the clipboard (using the keyboard shortcut...that I'm having the trouble with).....(WISH LIST ITEM...to run scripts using right click.)
- then the user clicks an an already opend MS Access window. XY passes the file name to MS Access via the clipboard.
- the user then amends the file name in MS Access. MS Access checks the new proposed file name for validity against our in-house criteria, then passes the file name back to the clipbaord.
-Then, the user triggers the second XY script to rename the file.

Okay..it's clunky I know, but the best way I've come up with at this earlier stage of XY'ing.

Thanks again Don (I'll be out of range of an interent connection for the next couple of days, so don't let my silence indicate a lack of interest!)....cheers, Greg

Re: Keyboard shortcut assignments to run scripts

Posted: 18 Jun 2009 07:08
by admin
2 things:

1. Instead of script/UDC copytext report("{Name}", 1); you could simply assign your desired keyboard shortcut to the native function Copy Item Name(s) (in menu File / To Clipboard).

2. You can place commands into the POM to have them quickly under the mouse.
See http://www.xyplorer.com/tour/index.php?page=pom

Re: Keyboard shortcut assignments to run scripts

Posted: 22 Jun 2009 05:46
by gregP
Hi Don. You suggested..
1. Instead of script/UDC copytext report("{Name}", 1); you could simply assign your desired keyboard shortcut to the native function Copy Item Name(s) (in menu File / To Clipboard).

I tried this, still with the same bug...that is, it worked once.

2. You can place commands into the POM to have them quickly under the mouse.
See http://www.xyplorer.com/tour/index.php?page=pom
Works well, but still not as functional as a keyboard shortcut.

I've also noticed that any shortcut I assign that begins with the ALT key selects the menu.

Is there a bug?...maybe just in the trial version. So, I'm going to purchase a single license to see how it goes.

If that doesn't work, I would ask you to log in using to our server to see for yourself Don.

I'll let you know.

Greg

Re: Keyboard shortcut assignments to run scripts

Posted: 22 Jun 2009 05:50
by j_c_hallgren
gregP wrote:I've also noticed that any shortcut I assign that begins with the ALT key selects the menu.
The ALT key has some special limitations due to its use for menu accelerators, in case you weren't aware of that...don't have details right now, but that's the basic issue.

Update: See this thread http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=2777
as one source...there are others also.

Re: Keyboard shortcut assignments to run scripts

Posted: 22 Jun 2009 08:51
by gregP
Hi Don,

no change since buying a license. Also tried it logged onto the SBS server as well as a terminal server session, and a completely different machine.

I've run out of things to try, and would like you to log in to a terminal server session to confirm that I've not missed some configuration setting.

Can I send the rdp link directly to you? I'd be more relaxed if I could send the link privately to you. If so, you may need my email: gregp@pagepearce.com.au to forward your send address.

Thanks, greg

Re: Keyboard shortcut assignments to run scripts

Posted: 22 Jun 2009 09:40
by admin
gregP wrote:Hi Don,

no change since buying a license. Also tried it logged onto the SBS server as well as a terminal server session, and a completely different machine.

I've run out of things to try, and would like you to log in to a terminal server session to confirm that I've not missed some configuration setting.

Can I send the rdp link directly to you? I'd be more relaxed if I could send the link privately to you. If so, you may need my email: gregp@pagepearce.com.au to forward your send address.

Thanks, greg
Hi greg,

you find my email on the Contact page of the XYplorer website (and also here in the forum at the bottom of each post -- or do only I as admin see this?).

Just to make sure: You are still talking about the issue that a keyboard shortcut only works once?

don

Re: Keyboard shortcut assignments to run scripts

Posted: 22 Jun 2009 10:16
by j_c_hallgren
admin wrote:(and also here in the forum at the bottom of each post -- or do only I as admin see this?).
I don't see it...all I see at sig is the link to the game....I don't recall seeing email addr in forum on regular basis anywhere.

Re: Keyboard shortcut assignments to run scripts

Posted: 22 Jun 2009 10:20
by admin
j_c_hallgren wrote:
admin wrote:(and also here in the forum at the bottom of each post -- or do only I as admin see this?).
I don't see it...all I see at sig is the link to the game....I don't recall seeing email addr in forum on regular basis anywhere.
Ah, good, so it's only me. :mrgreen: