Issue with KeyEvent for Command Prompt
Using below code, when Event keys like “F7” are executed on the application to test while running from openscript it works fine.
Whereas if the same script is executed using command line as below, then “F7” is executed for command prompt itself instead of application to test.
“C:\OracleATS\openScript\runScript.bat \\10.184.82.45\SharedRepository\Mysharedscript\Mysharedscript.jwg -delayPercentage 1”
Code =>
ft.typeKeyCode(KeyEvent.VK_F7);
Try using
ft.keyDown(KeyEvent.VK_F7)
ft.keyUp(KeyEvent.VK_F7)
Similar Messages
-
Photoshop batch production - issues with 'save for web'
Hi,
I'm having an issue with 'save for web' on a batch. I've just spent the last 2 hours searching the web and this forum and although the issue gets touched upon, the threads either suddenly head off in another direction, end, or i just struggle to make sense of the answers given.
I have 350 images that i want to resize to thumbnails and then save for web. 2 hours ago this seemed like a 5 minute job.
I creat an action called 'batch_thumbnail' and press 'Record'.
I then select 'File' > 'Open' and select an image to open using the dialog box.
I then select 'Image' > 'Image Size' and resize the image to the thumbnail size (200 x 125) and press 'OK'.
I then select 'File' > 'Save for Web and Devices', set my optimisation settings and press 'save'.
Using the dialog box that pops up, i navigate to a pre-created directory called 'thumbs' and press 'save'.
I then select 'File' > 'Close' and on the dialog box that pops up i select 'Don't Save'.
I then stop the action from recording.
So far so good.
I then select 'File' > 'Automate' > 'Batch...' and the dialog box appears.
I select my action in the 'Action' drop down menu.
In 'Source' i set the drop down menu to 'Folder', select 'Choose' and select the target directory with my 350 images in.
In 'Destination' i set the drop down menu to 'Folder', select 'Choose' and select the target directory (thumbs), where i wish to save the thumbs.
In 'File Naming' i leave the first box as 'document name', set the second to '_thumb' and have the third as 'extension'.
I then click 'OK'.
And this is where the problem begins. Everything works fine till it trys to save the second image. I can see what's happening, as the directory path and image name that are used whilst setting up the SFW part of the action, are getting hardcoded into the action. So every resulting image is being saved as the same file, instead of being overriden by the settings in 'File Naming'.
I've tried selecting 'Override action 'Save' command', but it doesn't make any difference. Is it actually possible to batch produce files using 'Save for Web and Devices'?
Cheers,
JamesI have written a couple of Save For Web batch processors, they may be of use to you?
They can both resize and run an action if required.
CS2-CS3 http://www.ps-scripts.com/bb/viewtopic.php?t=2374
CS4 http://www.ps-scripts.com/bb/viewtopic.php?t=2276 (This handles metadata) -
Just activated BlueAnt S4 with my iPhone4 and having an issue with the Phone Commands
Just activated BlueAnt S4 with my iPhone4 and having an issue with the Phone Commands - as I have multiple numbers for people (ie: iPhone, Work, Home), is it the BlueAnt that is having the issues or the iPhone? Tried to eliminate info on my partner's contact in with only 2 contact numbers (iPhone, Home) and one or the other is totally screwing up. Seems, from BlueAnt website, that it would be the iPhone contacts...and the guessing begins?!! Anyone else have similar issues when BlueAnt S4 was paired and giving 'Phone Commands'?? Any suggestions would be beneficial as I've spent way too much time on the web looking for a good fix/answer. Thanks.
On your new phone: Settings>General>Reset>Erase All Content & Settings. Start over, this time using your new ID.
-
Issues with nested for loops - saving images from a camera
Hi all,
I've written a vi. to capture a specific number of images ('Image No') and save these images, outputted to a folder of my choice. Each image is identified sequentially. However, I wish to do a number of iterations ('Run') of this capture sequence, such that the filename of each image would be 'Filename (Run)_(Image No).png', e.g. run 5, image 10 would be 'Filename 5_10.png'. I have tried a nested for loop for this but I receive an error 'Asynchronous I/O operation in progress' (I've attached a printscreen).
Can anyone assist me in solving this problem? I preiously posted this in machine Vision but got no response (http://forums.ni.com/t5/Machine-Vision/Capturing-image-sequences-issues-with-nested-for-loops/m-p/19...). Please find attached my vi.
Kindest regards and thanks,
Miika
Solved!
Go to Solution.
Attachments:
Labview problem.jpg 3841 KB
Image sequence save to file.vi 48 KBMiika,
the problem is not the filenam, but the name of the folder (AHHHHH!). You try to create the same folder in the outer for loop over and over again.... (it is the error message above the '======', not below )
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it. -
Issue with authorizations for BPS
Hi Experts,
There was an issue with authorizations for BPS. We have a large number of agents that need to enter plan data via a layout. In order to control the necessary authorizations, we would like to filter via something similar to a user exit using a function module in order to avoid having to define authorization objects for each of the agents who have access to the systems. Right now, we are not sure if there is user exit concept available as it is for BW variables. Any body experienced similar issue may share their experience.
Regards,
AnkitHi,
In BPS, you can use user specific variables or you can set up a Variable of type exit. You can also have a variable of type authorization which uses the security / authorization of the BW system.
Hope it helps...
Cheers,
Tanish -
Issue with Executing OS commands from Stored Procedure
I am trying to execute the scripts provided at :
http://github.com/xtender/XT_SHELL
provided by xtender user.
As required, I have asked my DBAs to grant privileges by executing the following scripts:
Begin
--change to needed permissions and execute
dbms_java.grant_permission( 'ODS', 'SYS:java.io.FilePermission', '/var/factiva/ODS/bin/CVIM_Rpt_ExportCSVFile’, 'read,write,execute' );
end;
/where CVIM_Rpt_ExportCSVFile is my script residing in the Unix server where my Oracle is installed.
The error I am facing when I try to execute the following command is:
select * from table(xt_shell.shell_exec('/var/scripts/CVIM_Rpt_ExportCSVFile',100))
Exception:the Permission (java.io.FilePermission /var/scripts/CVIM_Rpt_ExportCSVFile execute) has not been granted to ODS. The PL/SQL to grant this is dbms_java.grant_permission( 'ODS', 'SYS:java.io.FilePermission', '/var/scripts/CVIM_Rpt_ExportCSVFile', 'execute' )I have asked my DBA to also execute the following scripts: - But I still see the same error as above. I am not able to figure out whats going on. Can anyone pls help me out??
EXEC Dbms_Java.Grant_Permission('ODS', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
EXEC Dbms_Java.Grant_Permission(ODS', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
dbms_java.grant_permission( 'ODS', 'SYS:java.io.FilePermission', '/var/scripts/CVIM_Rpt_ExportCSVFile', 'execute' )DUPLICATE
===============================================================
Issue with Executing OS commands from Stored Procedure
============================================================== -
Issues executing report from command prompt
I'm using Oracle 10g Reports and attempting to execute a report from my workstation to output in a spreadsheet format. We don't have a Reports Server implemented at this time, so I'm simply connecting to the database with Reports Builder and running reports. I can execute a report just fine from Reports Builder and output as PDF; however I'm not familiar with how to output as spreadsheet. From what I understand, spreadsheet output cannot be accomplished through the tool, only from the command prompt. I've tried executing the a command inthe following format from Windows XP command prompt, but no luck:
rwrun report=test_report.rdf userid=[usernam/pwd@db] desformat=spreadsheet destype=file desname=c:\temp\test_report.xls
Nothing occurs...no output, nothing when this command is entered. What is the issue? Can rwrun.exe even be used for executing on the client-side? According to Oracle documentation, rwrun is the executable that runs a report using the OracleAS Reports Services.Hello,
Even if the parameter is deprecated, you can use errfile=c:\temp\reports.err and check if there are some errors ..
or check for a file reports.log
Regards -
Technician computer is Windows 7 HP x64.
Running latest version of WAIK.
Goal: To make a Winpe disc for each processor architecture (AMD64, x86, IA64) with an included Gimage.exe using this code for the default startnet.cmd file found in system32 directory of winpe boot.wim
wpeinit
if /i %PROCESSOR_ARCHITECTURE%==amd64 (
cd x64
start gimagex.exe
if /i %PROCESSOR_ARCHITECTURE%==ia64 (
cd x64
start gimagex.exe
if /i %PROCESSOR_ARCHITECTURE%==x86 (
cd x86
start gimagex.exe
These are the commands I have processed for the x86 variant:
copype x86 c:\pe\x86\
Dism /mount-wim /wimfile:C:\pe\x86\winpe.wim /index:1 /mountdir:C:\mount
**It is at this point I copy over my x86 folder, x64 folder, and overwrite the startnet.cmd file.
dism /unmount-wim /mountdir:C:\mount /commit
oscdimg -n bc:\pe\x86\etfsboot.com c:\pe\x86\iso c:\pe\x86.iso
^^It is at this command I receive this error:
ERROR: Could not delete existing file "c:\pe\x86\iso"
Error 5: Access is denied.
Please note that all commands before were hand-typed, no copy or pasting from any directory or .chm
One thread referred to some Application Management service, but I can report that there is no such service installed in my machine.
Thank You!
UPDATE:
I copied the winpe.wim file from the x86 root directory into the iso directory and renamed it to boot.wim Now, if I copy the contents to a flash drive and put it into a client
computer, it boots to the PE perfectly, script and all.
However, when trying to use the oscdimg command, I do get an .iso successfully, but when I burn it, I don't know what to do in the way of boot options, and if I keep defaults (imgburn)
it results in an un-bootable dvd.
Suggestions are greatly appreciated.Don't copy and paste instead type manually it will work.
[email protected]
OMG! Yes, you are correct ... but I have no idea why! I retyped the command line:
oscdimg -n -be:\winpe_amd64\etfsboot.com e:\winpe_amd64\ISO e:\winpe_amd64\winpe_amd64.iso
into Notepad, and then pasted it into the Command Prompt, and it worked!
Perhaps there must be some hidden characters included when pasting directly, even though I first pasted the command line into Notepad, and then into Command Prompt
(C:\Program Files\Windows AIK\Tools\PETools>).
I had to retype the command line in Notepad before copying and pasting, before it would work.
Wow, thanks!
Cheers, Navy Flyer -
Error with "rmiregistry" in command prompt
Hello everybody.
I am experiencing something really strange. I am doing the exercices on http://java.sun.com/developer/onlineTraining/rmi/RMI.html#RMIArchitectureGoals and now am trying the second one.
When I type in "rmiregistry" in command prompt at location "C:\" it's works fine. However, when I type it in "C:\JProg\RMI" (and for another program a subdirectory) where my classes reside, command goes all funny. It keeps printing the command-line without any results.
I tried to use it anyway but then I get a "Connection refused to host: localhost" error, so it really doesn't work.
I also tried the all the above ten times at least.... it is consistent.
Does anybody have any idea what the hell command is on about ?
Thanks,
Q"rmiregistry" in command prompt is just registering
into the registry. No output or response will be
resulted. The next line cursor will be appeared. That
all. If any error has, you should check the class
again I mean related coding.I do not understand what the classes have to do with the rmiregistry command. When I create an empty directory it works, that is: it gives a blinking _ and I can succesfully start a server class. How can this problem (which occurs before calling any classes) have anything to do with the classfiles ? It is only in my RMI (and sub-) directory that the rmiregistry goes all wacky. -
Wait for command prompt - Enter-PSSession
Enter-PSSession -ComputerName ServerName
Restart-Service DNS -PassThru
Exit-PSSession
I am trying to restart the DNS Server service on several remote machines using a foreach loop. The problem is the the script does not wait until the command prompt shows up after executing the "Enter-PSSession -ComputerName ServerName".
I have not been able to fine a way to tell the script to wait for the prompt before continuing the script. Thank you for any assistance that can be provided.You can use
Invoke-Command rather than entering a PS-Session.
Something like this may do what you need:
$servers = @("Server1.fqdn.example.com","Server2.fqdn.example.com","Server3.fqdn.example.com")
$scriptblock = "Restart-Service DNS"
foreach ($server in $servers) {
Invoke-Command -ScriptBlock $scriptblock -ComputerName $server
Replace the server names in $servers with your actual server names. This assumes of course you have PSRemoting enabled which you would need for the PSSessions.
Jason Warren
@jaspnwarren
jasonwarren.ca
habaneroconsulting.com/Insights -
Issue with Pasting to Command Line/PowerShell
Hi,
We are unable to paste text from an application other than Command Prompt (CP) or Windows PowerShell (PS) to CP or PS.
The issue is only occurring on one of several Windows Server 2008 VMs.
The server has been fully patched and restarted since the issue first started to occur.
Copying and pasting text inside CP/PS and between other CP/PS windows works.
Copying and pasting text from CP/PS to other applications works.
UAC has never been turned on.
We attempted to troubleshoot via different Administrative and non-Administrative users.
We tried a clean boot - antivirus is not causing the issue.
Obviously performing a system recovery is an option. We can copy and paste text to PS ISE from applications, which is an acceptable solution for PS users. However, it is still unacceptable for CP users.
Thanks,
NuxCasecguan,
Entering cmd /k < clip results in the following output: "The system cannot find the file specified."
I recognize that clip.exe is in the C:/Windows/System32 folder. I opened this directory, tried the command, and received the same result. Entering this as cmd /k < clip.exe provides an interesting response. I reproduced the output on
other servers for each instance described above while only copying "Hello world" in Notepad. The following is the interesting response from cmd /k < clip.exe:
C:\Windows\System32>cmd /k < clip.exe
C:\Windows\System32>More? More? More? More?
'MZÉ$' is not recognized as an internal or external command,
operable program or batch file.
C:\Windows\System32>
C:\Windows\System32><!-- Copyright (c) Microsoft Corporation -->
C:\Windows\System32><assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestV
ersion="1.0">
C:\Windows\System32><assemblyIdentity
C:\Windows\System32> version="5.1.0.0"
'version' is not recognized as an internal or external command,
operable program or batch file.
C:\Windows\System32> processorArchitecture="amd64"
'processorArchitecture' is not recognized as an internal or external command,
operable program or batch file.
C:\Windows\System32> name="Microsoft.Windows.Filesystem.Clip"
'name' is not recognized as an internal or external command,
operable program or batch file.
C:\Windows\System32> type="win32"
The system cannot find the file specified.
C:\Windows\System32>/>
C:\Windows\System32><description>Clip - copies the data into clipboard</descript
ion>
C:\Windows\System32>
C:\Windows\System32><trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
C:\Windows\System32> <security>
C:\Windows\System32> <requestedPrivileges>
C:\Windows\System32> <requestedExecutionLevel
C:\Windows\System32> level="asInvoker"
'level' is not recognized as an internal or external command,
operable program or batch file.
C:\Windows\System32> uiAccess="false"
'uiAccess' is not recognized as an internal or external command,
operable program or batch file.
C:\Windows\System32> />
C:\Windows\System32> </requestedPrivileges>
C:\Windows\System32> </security>
C:\Windows\System32></trustInfo>
C:\Windows\System32></assembly>
C:\Windows\System32>
C:\Windows\System32>More? -
Issues with Executing Javascript command in Captivate
Hi,
I am having issues with executing javascript for a button in adobe captivate 5. Let me explain what I am trying to do. I am working on a WBT that has three skill checks throught the course. These skill checks are not graded or tracked for completion. I currently have an image button that has the command "Open another project" The first image button is pointed to SkillCheck1 and I have the html file and swf file in the published root folder. This currently works fine.
However I want to use javascript to open a new window 800X600 with not toolbars at the top. I got this part working with the code below:
window.open('http://www.adobe.com','mywin',
'left=40,top=40,width=800,height=600,toolbar=1,resizable=0');
My only problem is, once the popup opens, my WBT goes to a page that says [object] and thats it. I am uploading two images to show what I have. Can someone help resolve my issue of the WBT going toOk so I took this link and viewed over it. I am new to Javascript and know very little about it. Therefore this script kind of makes no sense to me.
<script language="JavaScript"><!--
var windowHandle = '';
function myOpen(url,name,attributes) {
windowHandle = window.open(url,name,attributes);
//--></script>
<a href="javascript:myOpen('page.htm','windowName','height=100,width=100')">text link</a>
I chose the option to exectute javascript. Does captivate need all of this including <script language=JavaScript"> Here is how I edited the script. Should I make any changes to what is in bold?
var windowHandle = '';
function myOpen(url,name,attributes) {
windowHandle = window.open(url,name,attributes);
<a href="javascript:myOpen('http://www.adobe.com','Adobe Website','height=600,width=800')">text link</a> -
Replacement for command prompt
Hai all,
I would like to create a replacement for dos command prompt so that all outputs(System.out ) is redirected to this window and all input (System.in) is recieved form this window. I would like to have your suggestions and helps for this.
Thanks,
joeReplacing System.in, System.err (don't forget that one) and System.out is relatively easy (see java.lang.System) - methods are provided for implementing these. Simply implement your own java.io.InputStream and java.io.PrintStream - these take and get bytes/chars/Strings from your UI component. The UI component will probably have to be a custom widget where you can have full control of it (either that or use a text area for the PrintStream(s) and a text box to feed the InputStream. Note that Java will have problems shelling batch files and legacy text mode applications (e.g. MS-DOS Edit); if you plan to do this, concentrate here first (even with the current console).
-
Send Issues with Outlook for Mac (2011 / V15) and Exchange 2013 SP1
Hi all,
we have a strange issue with only with Outlook for Mac Users (version 2011 and the newest Outlook Version (V15) from Office 365) connected to our Exchange Server 2013 SP1. Some emails which we send out to the exactly same recipient are not sent through our
Exchange Server.
We have sent 8 emails with subject "test1, test2, test3...". Only test 3-6 was arriving to the recipient. The other emails are in the "sent" folder but it was not sent out through the Exchange.
What we can see with "Get-MessageTrackingLog" is, that the Recipients and MessageSubject are empty for these emails:
Timestamp Sender Recipients MessageSubject
25.02.2015 16:48:52 [email protected].. {}
25.02.2015 17:04:43 [email protected].. {}
25.02.2015 17:08:25 [email protected].. {[email protected]} test 3
25.02.2015 17:08:56 [email protected].. {[email protected]} test 4
25.02.2015 17:09:38 [email protected].. {[email protected]} test 5
25.02.2015 17:09:38 [email protected].. {[email protected]} test 6
25.02.2015 17:13:45 [email protected].. {}
25.02.2015 17:13:55 [email protected].. {}
We can still reproduce the issue on different Mac computers.
Thanks for any help in advance!
Thanks and best regards
RetoHere is the mailheader form the successfully sent email:
Date: Wed, 25 Feb 2015 17:08:25 +0100
Subject: test 3
From: sender <[email protected]>
To: "'[email protected]'" <[email protected]>
This mailheader is from an email which was not sent out:
User-Agent: Microsoft-MacOutlook/15.6.0.150113
Date: Wed, 25 Feb 2015 16:48:52 +0100
Subject: test 1
From: sender <[email protected]>
To: [email protected] <[email protected]>
Interesting: Only the not received messages contains User-Agent string and have some quotation marks missing in the To field. -
Hi
The customer site where I am working in currently has implemented isetup to load data from Hyperion DRM to Oracle GL. They are currently on 11i.AZ.F patch level.
The customer has constantly had problems in two areas with iSetup -
1. iSetup has a limitation that all existing children records plus new ones being added have to sent in the XML file provided as input to iSetup. For eg. one parent ENTXXX might have 15000 children records i.e records in FND_FLEX_VALUE_NORM_HIERARCHY. Now when 2 children are removed from this parent in Hyperion DRM and these two records sent to Oracle iSetup for getting deleted from the parent, the current implementation stipulates that iSetup requires in the XML input file the remaining 14998 records. Thats how it knows to remove the two nodes. This is a huge performance issue.
They are looking at loading into iSetup only the two deleted nodes with an action code of DELETE and let iSetup handle this rather than having to provide the entire list of children less the removed nodes for iSetup.
2. Can we load using the final xml file directly by calling any Java class/process directly rather than going through iSetup Loader Concurrent Request?
3. Is there any documentation on how to use the isetup Java classes?
Will upgrading to 11i.AZ.H patch level solve any of the above concerns/issues?
Regards,
Richard#1. I guess, you are referring to the problems that you are encountering while loading GL COA. You may log SR against GL to know more details on how API loads data to instance. DELETE is a specific requirement in your case and I would suggest you to work with GL team and they may provide some solution or workaround to overcome this performance issue.
#2. No, concurrent program does good amount of pre-processing that you would not get if you directly call the java classes.
#3. Not sure, what you are exactly looking at. Are you looking for user guide to write your own iSetup API classes?
11i.AZ.H has got good amount of performances fixes overall and it is recommended release on top of 11.5.10.2CU. I would suggest you to upgrade to 11i.AZ.H.
Specific to GL COA issue, I don't think 11i.AZ.H would really help you much. It is very much functional issue with respect to API and you have to work with GL team to get workaround/solution. This may involve customizing the API according to your requirement.
Thanks
Mugunthan.
Maybe you are looking for
-
I have a Compaq CQ50 142US laptop and have never had any problems burning audio CD's until about a week ago. Now when I drag several tracks from my Windows Media Player library to the "Burn List" column and click the "Start Burning" button it shows
-
Tds on invoice and as well as clearing that invoice.
HI everyone I able to calculate tds on invoice on particular vendor but while clearing that amount using t-code f-53 system again calculating tds on same vendor which we have already deducted at invoice level. my requirement is dont
-
Resource file (.xlf/properties) is not working in E-commerce
Hi Experts, I am very new to SAP CRM E-commerce development.I changed one Resource file (.xlf) for lable changein SAP NWDS.After that i deployed my components in my server.But the total text are missing in entire application (e-shop).it is not displa
-
Customizing the work protect mode
Hi, I have a problem in customizing the sap providing work protect mode. When I activate the work protect mode, a pop up is coming up and the default radio button selected is to open the unsaved data in a new window. Can you please let me know can we
-
Syncing ical creates duplicates
How do I stop creating duplicates when I sync iCal or Contacts to my iPad? I'm using Mountain Lion and iOS on iPad is up-to-date.