It is currently Thu Apr 25, 2024 7:07 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Need (simple?) script, but can't figure how
PostPosted: Wed Oct 17, 2012 3:07 pm  (#1) 
Offline
New Member

Joined: Oct 17, 2012
Posts: 2
Disclaimer: I'm a simple Gimp user, don't do anything complicated.

I've looked at Script-fu (it appears to be what I want), but have been unable to make sense of it. Is there anything like a recorder available?

I think I would like a script to save consolidate repetitive keystrokes. (If there is another way, please teach me.)

I'd like to be able to hit one key-combination to:
1. Rotate the entire image 90° clockwise
2. Fit Image in Window (to get a good look)
3. Open the Export Image dialog box
(if possible) 4. wait for the export to be done and close the image
(if possible) 5. open the Scanner/Camera dialog box
(if possible) 6. open/select the first item in the Scanner/Camera dialog box

Presently, I have a key-combination for each of items #1, #2, #3, and #5. (Item #6 is just a press of <enter>.) Some days, I go through this sequence hundreds of times — and sometimes the Export Image dialog box loses focus and my keystrokes start changing the view instead of naming a file. I thought a script might save keystrokes and avoid a loss of focus and more keystrokes.

I really would appreciate any help that could make this easier.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Need (simple?) script, but can't figure how
PostPosted: Wed Oct 17, 2012 8:31 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Oct 07, 2011
Posts: 180
Would be very helpful to many many more people if there is a script that will carry out several different keyboard shortcuts in sequential order.
So you assign the keyboard shortcuts for each task that you want in gimp.
Then you go into the script-fu code and type in the keyboard shortcuts in sequential order to carry out your own customized task.

● Each person could have several copies of the script where each script performs different tasks with a different set of keyboard shortcuts.

I would like this kind of script please and thankyou! Not sure if it's possible though.


Top
 Post subject: Re: Need (simple?) script, but can't figure how
PostPosted: Wed Oct 17, 2012 10:28 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Apr 09, 2011
Posts: 1764
I know...a MAGICIAN key!! LOL..
Welcome to our world TRex...I wouldnt say I am a complicated user either but I get by with what I have.


Top
 Post subject: Re: Need (simple?) script, but can't figure how
PostPosted: Thu Oct 18, 2012 4:07 am  (#4) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
I'll try and answer some of your questions
TRex wrote:
I've looked at Script-fu (it appears to be what I want), but have been unable to make sense of it. Is there anything like a recorder available?

No there isn't a built-in GIMP recorder. It's on the long term roadmap, but it's not a priority.

TRex wrote:
I'd like to be able to hit one key-combination to:
1. Rotate the entire image 90° clockwise
2. Fit Image in Window (to get a good look)
3. Open the Export Image dialog box
(if possible) 4. wait for the export to be done and close the image
(if possible) 5. open the Scanner/Camera dialog box
(if possible) 6. open/select the first item in the Scanner/Camera dialog box

1:- This is scriptable
2:- This is not scriptable. It's a deliberate policy on behalf of the developers that scripts can't alter the user interface. Also, how would the script know when to proceed to step 3?
3 & 4:- Possible to script
5 & 6:- Maybe. There is a script interface to the TWAIN datasource (twain-aquire), but it doesn't seem to have any way to control which datasource other than being run interactively, so it probably would do step 5 automatically, but leave you to do step 6 manually.

I'm assuming you're scanning lots of photos/documents???

Kevin


Top
 Post subject: Re: Need (simple?) script, but can't figure how
PostPosted: Thu Oct 18, 2012 9:55 am  (#5) 
Offline
New Member

Joined: Oct 17, 2012
Posts: 2
Thanks, Kevin.

Yes, I'm scanning lots of documents. It is very interesting to learn — and surprising! — the 'Fit Image in Window' is not scriptable. That rather puts a spanner in the works. What I had hoped could be done would have gone to step 3 immediately after step 2 — I don't (normally) make any adjustments to the results of the scan, but it is helpful to see the results for knowing what to name the file, though I could manage a workaround.

Barbie, I like your idea of creating a script by entering functional key-combinations which already work. That would be a very nice enhancement.


Top
 Post subject: Re: Need (simple?) script, but can't figure how
PostPosted: Thu Oct 18, 2012 11:49 am  (#6) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

On Windows you can use AutoHotKey : http://www.autohotkey.com/

French example : http://www.gimp-attitude.org/forum2/vie ... hp?p=42429


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Trying to add plug-ins but can't figure it out

11

No new posts Where is the simple pointer

9

No new posts Attachment(s) Simple pastimes...

5

No new posts Attachment(s) Photo to simple Pencil drawn

34

No new posts Attachment(s) How to create and simple Easter egg using GIMP and G'MIC

17



* Login  



Powered by phpBB3 © phpBB Group