cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Pause for keyboard input in mapkeys

tleati
12-Amethyst

Pause for keyboard input in mapkeys

Hello,

I didn't understand, and didn't find some good explanation about it (not in the Creo Help, nor on the internet), what "pause for keyboard input" means exactly in the Mapkey definition window.

In particular, for giving inputs during execution, what's the difference between it and simply keeping the default "record keyboard input" + pausing with dialog box?

Could someone possibly make a screen video recording with an example?

thanks

Bye

Tommaso

ACCEPTED SOLUTION

Accepted Solutions
tleati
12-Amethyst
(To:jthakor)

Hi Jitu,

Thanks for your reply. Sorry for the delay but I have seen your message just now that I discovered the function of pause by chance by myself and I want to post the answer.

In my case, I recorded a mapkey for changing the format of a drw, and I saw that there is a difference when the mapkey, once selected the format, encounters the input bar that appears on the top (in my case for surface_treatment parameter to put in the .drw title block):

2.PNG

Pause for keyboard input --> the mapkey pauses in order to allow the user to write in the bar everytime the mapkey is executed. After having clicked on the green mark, the mapkey goes on with its recorded script.

Accept system defaults --> the mapkey at each execution accepts whatever is already written in the bar (in my case it is empty, if there is something already written it is highlighted in black), and clicks the green mark by itself. Then goes on with its recorded script.

Record keyboard input --> the mapkey records and will use forever what the user writes in the bar at the moment of mapkey recording: so I write "quenching" during mapkey recording, the mapkey will always write "quenching" when it encounters that field.

Hope to have been quite clear for others who might read,

and would be interested to know if anyone has found this difference in other contexts other than Jitu's too.

bye

View solution in original post

11 REPLIES 11
taldrich
2-Explorer
(To:tleati)

The pause functionality gives a person options on what to do.  Instructions should be listed in this dialog box.  For example I have created a mapkey to utilize a template drawing (size a-e).   The pause function for this examples states to pick the drawing template size to utilize.

tleati
12-Amethyst
(To:taldrich)

Hi Todd,

thanks for your reply. Indeed you made exactly the right example, relating to what I wrote in the topic: I also have your same mapkey for format selection, and for it I used the "record keyboard input" option plus the pausing with the dialog box...simply the dialog box appears, I choose the format, click "resume" and it goes on with the follwing steps...

(that's why I am not catching the real difference yet...)

thanks

bye

CTool
10-Marble
(To:taldrich)

While creo waits for the user's input, shows a ribbon with a message (written while recording the macro) and then is required to press "resume" once the selection is made. is there a way i can jump over this click? it's slowing down the whole process with no reason.

Thanks

Chris3
21-Topaz I
(To:CTool)

No because there is no way for the program to know how many clicks / text inputs are expected. In your particular case it sounds like there is just one selection needed but in the general case the user may be expected to click on several things.

StephenW
23-Emerald III
(To:CTool)

Some thoughts on this...

Maybe you could do a pre-selection instead of pausing for selection

Maybe you would incorporate 2 or more mapkeys to make the process smoother/quicker/less click intensive.

 

Since I don't know the details, it's difficult to come up with alternatives.

dnordin
16-Pearl
(To:CTool)

There may be a way if you know exactly how many mouse clicks are input.  AutoIT has a function called _IsPressed that can check if a mouse button has been clicked.  It can also check many other keys as well (CTRL, SHIFT, ALT, etc.).

 

Some words of caution with trying to automate the continuation of a mapkey based on mouse clicks:

 

If the user selects the wrong item(s), the mapkey will continue immediately after the click using the wrong input.

 

You need to make sure the mouse click was in the Creo Parametric window, and not the user clicking on some other program like Outlook.

 

The speed of the user "double clicking" may cause issues with capturing how many times the button was clicked.

 

Regards,

Dan N.

mbonka
16-Pearl
(To:tleati)

Hello Tommaso Leati

in generall PAUSE function give you possibility to make some "variables" input in your mapkey. l will describe it on example.

Requirement:

    - need a mapkey to create printscreen macro - JPEG A4; 300dpi

    - need possibility to change JPEG file name and export location

Video Link : 6841

Test description:

As en example l created 3 files in DESKTOP/mapkey_variable_location

     - test_01 - origin folder from macro creation

     - test_02 - macro first run (folder created during macro pause)

     - test_users_file_location - whichever folder from your HDD

Config with macro is attached.

Hope it helps...

Regards Milan

tleati
12-Amethyst
(To:mbonka)

Hi Milan,

thanks for your reply and detailed description. Could you please re-upload (or send in zip file) the enclosed video? Because in the video square I see the error message "this video is not available".

thanks

bye

tleati
12-Amethyst
(To:mbonka)

Hi Milan,

I have just seen your video, thanks. I have already used and quite understood that pause function, however I am meaning the "pause for keyboard input" option to tick in the mapkey definition window, as pictured in the screenshot below:

1.PNG

In particular, I haven't caught what does it exactly mean, and what's the difference between it and the other pause method (that you used too in your video) with "record keyboard input" ticked+pause button...

thanks

bye

jthakor
8-Gravel
(To:tleati)

Pause is basically user input for map key Run.

For an example, you are using electrical drawing installation and want to designate connector details. If you simply make map key for one connector in drawing & want to repeat operation for other connector, it is not going to work as you have to select other connector edge/surface. So to select other surface/edge, you require user input.

So pause allows to select geometry and resume again will work your map key.

I hope it answer your question. I do not have video in my system else create it for better understanding.

Thanks,

Jitu Thakor

tleati
12-Amethyst
(To:jthakor)

Hi Jitu,

Thanks for your reply. Sorry for the delay but I have seen your message just now that I discovered the function of pause by chance by myself and I want to post the answer.

In my case, I recorded a mapkey for changing the format of a drw, and I saw that there is a difference when the mapkey, once selected the format, encounters the input bar that appears on the top (in my case for surface_treatment parameter to put in the .drw title block):

2.PNG

Pause for keyboard input --> the mapkey pauses in order to allow the user to write in the bar everytime the mapkey is executed. After having clicked on the green mark, the mapkey goes on with its recorded script.

Accept system defaults --> the mapkey at each execution accepts whatever is already written in the bar (in my case it is empty, if there is something already written it is highlighted in black), and clicks the green mark by itself. Then goes on with its recorded script.

Record keyboard input --> the mapkey records and will use forever what the user writes in the bar at the moment of mapkey recording: so I write "quenching" during mapkey recording, the mapkey will always write "quenching" when it encounters that field.

Hope to have been quite clear for others who might read,

and would be interested to know if anyone has found this difference in other contexts other than Jitu's too.

bye

Announcements


Top Tags