Reply To: Umlaut, opening link in new tab, select option key or click

PennController for IBEX Forums Support Umlaut, opening link in new tab, select option key or click Reply To: Umlaut, opening link in new tab, select option key or click

#4677
Jeremy
Keymaster

Hi,

1. Using HTML codes, as you mention, is probably the solution that is best in terms of cross-browser compatibility. You can find a useful table here: https://www.starr.net/is/type/htmlcodes.html
An example of a script:

PennController(
  newButton("grüßen")
    .print()
    .wait()
)

This is of course not ideal in terms of readability from the experimenter’s end. Another solution is to save your script using an UTF8 encoding. In order to do that, you need to edit your script file on your local device (using your own text editor) and make sure to save it with a UTF8 encoding, and then upload your script file back to your project. Note that opening the online editor and clicking “Save” will fall back to the old, non-UTF8 format, so you need to keep editing the file locally and uploading it later.

2. You want to use the target attribute with the value '_blank', like this: <a href='https://expt.pcibex.net/' target='_blank'>Open the PCIbex Farm</a>

3. You are right, you need to use a Selector element, but then you no longer need a Key element:

newButton("continue", "Continue")
    .print()
,
newSelector("next")
    .settings.add( getButton("continue") )
    .settings.keys( " " )
    .wait()

Let me know if you still have questions

Jeremy