Unable to open ".ahk" file in a Sikuli program - jython

Suppose I have x.ahk, which is an AutoHotKey file. I want to open it through my Sikuli program.
I tried the following methods:
openApp("F:\\folder\\x.ahk")
I got the following error
[info] VDictProxy loaded.
[log] App.open F:\folder\x.ahk(0)
[error] App.open failed: F:\folder\x.ahk not found
I tried using open() instead
open("F:\\folder\\x.ahk","r")
It did not throw any error from this, but it still did not open the file.
How can I launch my AutoHotKey script?

You could try running autohotkey.exe with the script name as a parameter.
Example:
If my Autohotkey.exe is in
"C:\Program Files (x86)\AutoHotkey"
and the script to start is
"c:\temp\1.ahk"
I would run
"C:\Program Files (x86)\AutoHotkey\autohotkey.exe c:\temp\1.ahk"

Related

RSelenium makeFirefoxProfile with Windows Task Scheduler

I am navigating a web page with firefox using RSelenium package. When i start building my script i used makeFirefoxProfile function to create temporary profile for setting download directory and related file type to download needed file into specific directory.
When i was trying to do that i got an error about zip files. After some research I installed rtools and succesfully managed this error. My script worked as I expected.
Now i want to that operation periodically on Windows Machine. To do that When I try to use taskscheduleR packgage to create task for Windows Task Scheduler i got the some zip error due to windows doesnt have built in comman-line zip tool
You can check the error code below, after i tried to operate the task
Error in file(tmpfile, "rb") : cannot open the connection
Calls: makeFirefoxProfile -> file
In addition: Warning messages:
1: In system2(zip, args, input = input, invisible = TRUE) :
'"zip"' not found
2: In file(tmpfile, "rb") :
cannot open file 'C:\Users\user\AppData\Local\Temp\RtmpKCFo30\file1ee834ae3394.zip': No such file or directory
Execution halted
Within R-Studio when i run my script there is no problem. Thank you for your help

Compile error while running ant in cmd

On executing the command <<ant run>> in cmd, I am getting error
Compile failed.
Link to my build.xml file
Link to my testng-results.xsl file
Please give me a hint what to do.
I want to generate an xslt report in selenium through "ant".

Pentaho : Error while running pan.bat file in cmd line

I am trying to run my .ktr file in cmd line. I have my data-integration setup in this path:
C:\Users\dhamodharan.a\Desktop\pdi-ce-4.4.0-stable\data-integration
and my .ktr file in this path:
C:\Users\dhamodharan.a\Desktop\test.krt
while am trying to run that in cmd line I am getting the following error
DEBUG: Using PENTAHO_JAVA_HOME
DEBUG: _PENTAHO_JAVA_HOME=C:\Program Files (x86)\Java\jre7
DEBUG: _PENTAHO_JAVA=C:\Program Files (x86)\Java\jre7\bin\java.exe
WARN 11-08 11:47:09,728 - Unable to load Hadoop Configuration from "file:///C:/
Users/dhamodharan.a/Desktop/pdi-ce-4.4.0-stable/data-integration/plugins/pentaho
-big-data-plugin/hadoop-configurations/mapr". For more information enable debug
logging.
INFO 11-08 11:47:09,759 - Pan - Start of run.
ERROR: No repository provided, can't load transformation.
C:\Users\dhamodharan.a\Desktop\pdi-ce-4.4.0-stable\data-integration>e:C:\Users\d
hamodharan.a\Desktop.test.ktr /level:Basic
I am trying to run an input excel file and make the output as excel. Do I also need to create repository for that?
If I try to create repository option I saw only for dbms not for excel.
Make sure the environment variable PENTAHO_JAVA_HOME is set correctly and then it'll work.
For some reason the java install is not on your path. But if spoon works you must have it somewhere.
i did the environment variable for JAVA_HOME now pan.bat and kitchen.bat works fine.
here the command:
pan.bat /file:C:\Users\dhamodharan.a\Desktop\dhamu\test.ktr /level:Basic > C:\Users\dhamodharan.a\Desktop\dhamu\test.log
thanks

SmartCard reader: Building libccid

I am trying to build libccid, pcsclite and libusb together on a fedora 20. I have been able to compile and build libusb and pcsclite. However, while building libccid, I get the following error in the build log:
copy the src/92_pcscd_ccid.rules file in udev directory (/etc/udev/rules.d/)
I did copy the file to the specified location and then ran the makefile. However, I have not had any success.
Did anyone come across this error message?
Thanks
When you check the libccid source code you will find out that it is not an error message. It is just an informational message that you should manually copy file 92_pcscd_ccid.rules from src directory to /etc/udev/rules.d/ directory.

C : Unable to open file in modeFatal

I compiled a C code using make then afterwards I issued this command on linux terminal
./regex --parse /ruleset/snort34.re --debug
where snort34.re is a file which I want to open for parsing but it gives me this error
Unable to open file in /ruleset/snort.re in modeFatal
Can anyone please help me why I am getting this error and what is modeFatal?
You have passed /ruleset/snort34.re to the program, which will look in a folder in your root directory called ruleset. You probably want to use a relative path instead, ruleset/snort34.re.