martindoersch Posted January 12, 2017 Share Posted January 12, 2017 Hi! I need something to "automatically" insert a number in a form and go to the next. I have to assign grades to my students online. One line by one and there from 0 to 100 points. I have 140 students and want to be a little bit faster. So now I insert e.g. 100 than TAB and again 100 ... My dream would be to insert in Alfred grade NUMBER and Alfred will insert the number and jumps to the next line (this works via tabulator key). Has someone an idea for this? Thanks a lot Martin Link to comment
deanishe Posted January 12, 2017 Share Posted January 12, 2017 You can simulate a tab keypress with AppleScript: tell application "System Events" to key code 48 Not sure how that's faster than hitting TAB yourself. Link to comment
nikivi Posted January 12, 2017 Share Posted January 12, 2017 You can also take a look at MadRuby for this. It stimulates keypresses for you and repeats them a set number of times. Link to comment
martindoersch Posted January 12, 2017 Author Share Posted January 12, 2017 @deanishe I want a workflow where I can maybe loop the whole thing. E.g. grade 100, 30. So I can specify the value "100" and repeat it in the for-loop "30" times. The problem is... I can't write the code. So if you know how... PLEASE! Link to comment
deanishe Posted January 12, 2017 Share Posted January 12, 2017 So you want to be able to enter "100,30" and the workflow then sends "100<TAB>" 30 times to the active application? That's straightforward enough to do. Link to comment
martindoersch Posted January 12, 2017 Author Share Posted January 12, 2017 Here'S a screenshot Link to comment
deanishe Posted January 12, 2017 Share Posted January 12, 2017 Right, you're German. In that case "100 30" might make more sense (space instead of comma), so you can enter decimals (e.g. "2,1 5"). Link to comment
deanishe Posted January 12, 2017 Share Posted January 12, 2017 (edited) How's this? Download from here. Edited January 12, 2017 by deanishe martindoersch 1 Link to comment
martindoersch Posted January 13, 2017 Author Share Posted January 13, 2017 @deanishe do you have a paypal me link for me? This is so amazing! Thaaaanks a lot! Vero 1 Link to comment
deanishe Posted January 16, 2017 Share Posted January 16, 2017 Glad you like it. The "Buy me a beer" link in my signature leads to Paypal. martindoersch 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now