I need to use XType to build strings with several not alphanumeric characters.
I have seen people asking for other keys like space “KEY_SPACE”.
I think it would be really useful to be able to insert the ascii code instead of generating a special variable for each character, or if you want maintain the KEY_xxx variables but enable other variable for ascii codes in case the KEY_xxx variable does not exist.
I need to type this inside a virtual image using VCenter Remote Desktop client.
Can you add more details please about your solution please ?
I search a solution to use space bar with ui vision (i need it to check some checkbox in frame hard to detect with regular ui vision command and hard to click with Xclick) but i do not find a good solution.
If you can add more detail about your soluton to emulate all keys specially space bar.
Sure… KeePass is an excellent open source password manager but it has a feature called AutoType in which it would type in a password or whatever you want for you. What you would do is make an entry and set the target window in KeePass to the window where you need it to type. You then set the AutoType hotkey in KeePass to what you want (or leave it default).
Now when you are ready to type your space or special character have UIVision XType the KeePass hotkey and KeePass will then type whatever you put in the sequence.
Not valid in my case, I’m working with virtual manchines, and inside the virtual machines keepass will not be present so the key shortcut is not valid.
Note that if you just want to insert a certain text somewhere, you can already do this by adding it to the clipboard (store | your text | !clipboard ) and then simulating CTRL+V for “paste”.
@Reivaj_Xadro What other keys would you need? Or asked the other way: What ASCII code do you need to send?
Adding a KEY_ASCII_XXX generic command is probably possible. But before we work on this, I would need a few examples of what ASCII values XXX could be?
I need to type HTTP URLs like http:// so “:” and “/” is needed, also need “-” and “_”, also “.” and space is needed also.
My case is to configure kernel parameters of a CoreOS during the startup of the Operating System, this is running inside a Virtual Machine executed in a VSphere cluster. UI Vision is the only tool that has been able to write something in the VSphere console using XType and KEY_X, I can not copy&paste, I can not directly type the string.
I really do not need ascii codes because the characters I need are “strange”, I thought about the ascii code to allow to the UI Vison user to insert any character without depending on the “KEY_X” exists.
I need to type HTTP URLs like http:// so “:” and “/” is needed, also need “-” and “_”, also “.” and space is needed also.
This works already now! => The XTYPE command is like typing on the keyboard. So for example, to get / I would type SHIFT+7 on my German keyboard (XTYPE | ${KEY_SHIFT+KEY_7}. This method works for “:” and “/” and “-” and “_” as well.
This solution is very uncomfortable both because it requires powershell installed in the pc that slows down the pc and reduces performance but then loading a .ps file creates the problem of focus on the screen and makes it difficult and inefficient to automate, in my opinion this is not a good solution much better if xmodules could simulate the space key or others keys.