← Back to team overview

sikuli-driver team mailing list archive

[Question #248786]: Bug type paste in windows shell

 

New question #248786 on Sikuli:
https://answers.launchpad.net/sikuli/+question/248786

Hello,
Whenever i try to type a command in the windows shell, it types something different. Here is what i get :

+++ running this Java
+++ trying to start Sikuli IDE 
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar "SomePath"\sikuli-ide.jar -d 3 -c
[debug] Running on Java 6 (1.6.0_35-b10)
[debug] --- Sikuli parameters ---
[debug] 1: -d
[debug] 2: 3
[debug] 3: -c
[debug] init user preferences
[debug] locale: fr
[debug] ResourceLoaderBasic: SikuliX Package Build: 1.0.1 12SEP2013160242
[debug] ResourceLoaderBasic: check: we are running on arch: amd64
[debug] ResourceLoaderBasic: check: using Java at: E:/Dev/COTS/jdk1.6.0_35/jre/
[debug] ResourceLoaderBasic: check: Exists Environment.SIKULIX_HOME? YES: "SomePath"
[debug] ResourceLoaderBasic: checkLibsDir: "SomePath"
[error] ResourceLoaderBasic: copyResource Not possible: "SomePath"\jawt.dll (Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus)
[debug] ResourceLoaderBasic: loadLib: WinUtil
[debug] ResourceLoaderBasic: loadLib: Found: WinUtil
[debug] ResourceLoaderBasic: loadLib: Now loaded: WinUtil
[debug] ResourceLoaderBasic: checkLibsDir: Using libs at: "SomePath"
[debug] ResourceLoaderBasic: check: Using this as OCR directory (tessdata) too
[debug] Screen: initScreens: basic initialization (2 Screen(s) found)
[debug] *** monitor configuration (primary: 0) ***
[debug] Screen 0: S(0)[0,0 1680x1050]
[debug] Screen 1: S(1)[1680,0 1680x1050]
[debug] *** end monitor configuration ***
[debug] [I18N] menuShowThumbs
[debug] restore session: "SomePath"
[debug] SikuliX Jython Support Build: 1.0.1 12SEP2013160248
[debug] SikuliEditorKit.read
[debug] ImageLocator: found 1398260572137-1.png in "SomePath"
[debug] ImageLocator: found 1398261194586.png in "SomePath"
[debug] restore session: "SomePath"
[debug] SikuliEditorKit.read
[debug] restore session: "SomePath"
[debug] SikuliEditorKit.read
[debug] restore session: "SomePath"
[debug] SikuliEditorKit.read
[debug] restore session: "SomePath"
[debug] SikuliEditorKit.read
[debug] restore session: "SomePath"
[debug] SikuliEditorKit.read
[debug] ImageLocator: found 1399285411570.png in "SomePath"
[debug] ImageLocator: found 1399291833472.png in "SomePath"
[debug] ImageLocator: found 1399291872960.png in "SomePath"
[debug] ImageLocator: found 1399292462982.png in "SomePath"
[debug] ImageLocator: found 1399292827816.png in "SomePath"
[debug] restore session: "SomePath"
[debug] SikuliEditorKit.read
[debug] ImageLocator: found 1399381944471.png in "SomePath"
[debug] ImageLocator: found 1399382183008.png in "SomePath"
[debug] ImageLocator: found 1399382270361.png in "SomePath"
[debug] restore session: "SomePath"
[debug] SikuliEditorKit.read
[debug] ImageLocator: found 1399997224497.png in "SomePath"
[debug] ImageLocator: found 1400147097439.png in "SomePath"
[debug] restore session: "SomePath"
[debug] SikuliEditorKit.read
[debug] ImageLocator: found 1400253836131.png in "SomePath"
[debug] Sikuli-IDE startup: 796
[debug] FileManager: tempfile create: C:\Users\t0152911\AppData\Local\Temp\sikuli-4390779058428562362.py
[debug] JythonScriptRunner: : executeScriptHeader: adding SikuliX Lib path to sys.path
"SomePath"
[debug] Jython: sikuli: __init__: entering
[debug] Jython: sikuli: Sikuli: entering
[debug] Jython: sikuli: Sikuli: constants
[debug] Jython: sikuli: Sikuli: import Region
[debug] Jython: sikuli: Sikuli: import Screen
[debug] Jython: sikuli: Sikuli: Env.addHotkey
[debug] Jython: sikuli: Sikuli: import Match
[debug] Jython: sikuli: Sikuli: import Pattern
[debug] Jython: sikuli: Sikuli: import Location
[debug] Jython: sikuli: Sikuli: import ScreenUnion
[debug] Jython: sikuli: Sikuli: import Finder
[debug] ResourceLoaderBasic: loadLib: VisionProxy
[debug] ResourceLoaderBasic: loadLib: Found: VisionProxy
[debug] ResourceLoaderBasic: loadLib: Now loaded: VisionProxy
[debug] Jython: sikuli: Sikuli: import App
[debug] ResourceLoaderBasic: loadLib: Is already loaded: WinUtil
[debug] Jython: sikuli: Sikuli: import Key
[debug] Jython: sikuli: Sikuli: import from Basics
[debug] Jython: sikuli: Sikuli: import from compare
[debug] Jython: sikuli: Sikuli: init SikuliImporter
[debug] Jython: sikuli: Sikuli: import SikuliScript
[debug] Jython: init SCREEN as ()
[debug] Sikuli-IDE environment setup: 4182
[debug] waiting for 1400253836131.png to appear
[debug] Screen.capture: java.awt.Rectangle[x=0,y=0,width=1680,height=1050]
[debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=0,y=0,width=1680,height=1050]
[debug] ImageLocator: found 1400253836131.png in "SomePath"
[debug] 1400253836131.png has appeared.
[log] CLICK on L(255,201)@S(0)[0,0 1680x1050]
[log] TYPE "123 , 123 , !:;,"
[debug] Robot: doType: 1 ( 49 )
[debug] Robot: doType: 2 ( 50 )
[debug] Robot: doType: 3 ( 51 )
[debug] Robot: doType: Espace ( 32 )
[debug] Robot: doType: Comma ( 44 )
[debug] Robot: doType: Espace ( 32 )
[debug] Robot: doType: 1 ( 49 )
[debug] Robot: doType: 2 ( 50 )
[debug] Robot: doType: 3 ( 51 )
[debug] Robot: doType: Espace ( 32 )
[debug] Robot: doType: Comma ( 44 )
[debug] Robot: doType: Espace ( 32 )
[debug] Robot: doType: Maj ( 16 )
[debug] Robot: doType: Maj ( 16 )
[debug] Robot: doType: Semicolon ( 59 )
[debug] Robot: doType: Comma ( 44 )
[debug] SikuliXFinal: cleanUp: 0
Terminer le programme de commandes (O/N)ÿ? 

====================================

The .py looks like this : 
type("123 , 123 , !:;,")
paste("it won't even work")

and the results in the shell : 
&é" , &é" , 1.;,^V

====================================

i suppose it has something to do with the encoding, but i don't know how to fix it.
Thanks for your help.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.