Simulate Keystrokes for an executable run by System Exec.vi ?
I have an executable that I call using System Exec.vi. The executable opens when I use system exec, but it needs CTRL + S to run. So I want to simulate that keystroke. Also, once it completes, I want to simulate keystrokes to close. In short, I do not want the user to do anything other than run the VI which has system exec.vi. Everything else is done by simulating keystrokes which in turn depend on some conditions I would generate. Thanks.
Kudos always welcome for helpful posts
The attached vi shows how to simulate keystrokes. Send the Control Key down code, S key down code, S key up code, then control key up code.
- tbob
Inventor of the WORM Global
Attachments:
Keystrokes.vi 39 KB
Similar Messages
-
*Hi
I would like to know how to make the installer for my executable run the DAqcarddriver and runtime engine installer automatically
I would like to include run time engine and the drivers of my daqcard(AI16XE50),( and maybe Ni daq or anything else needed?) in order to make my application portable for other computers on OS win98 and winXP .
How can I do that
thank you in advance
OlivierOlivier,
What version of LabVIEW are you using to build your application? On a remote computer you should only need the drivers you are using and the Run-Time Engine. You can attach installers to LabVIEW 8 installers, but for previous versions you will have to add it by opening the installer configuration page, configuring your installer and then configure the Advanced properties. This will allow you to attach a EXE to the installer which you can run. Also depending on the version of LabVIEW will affect the OS version that you will be able to install the RTE on. LabVIEW 7.0 is the last version that can be installed on Windows 98.
Please let me know if you have any further questions and please include the version of LabVIEW you are using. Thanks!
Andy F.
National Instruments -
Is it normal for OS X running on many .exec files inside system library
Is it normal for OS X running on many .exec files inside system library?
Because my Mac getting slower.Please post a screenshot that shows what you mean.
To take a screenshot, follow the instructions linked below. Be careful not to include any private information.
Shortcuts for taking pictures of the screen
Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply. -
Running C system exec in executable
I built a Labview program that calls a C code using system exec (connectivity->Libraries and executables->system exec.vi).
I uses Labview 8.0.When I run this program I can see the C window (console) when it runs. Now I have created an exe file to this Labview program to run it on computers wich do not have Labview installed on them. But when I run the program on such computer, I don't see the C window and I do not know whether the C program executes or not. How can I see the console?Hi Dror!
I think that C program doesn't run....
I think it's a problem of the installer you created (if you created one, of course...). I use LV 7.1, but I hope it will be good also for 8.0. When you launch "build application", (tools-> build application), you go to "source files" tab, and you add the .exe file you need ("add support file..." button, then you just search for it).
There're further settings about this, that is where do you want to install this file. When you decide where to install it, it'll be a matter of "System exec.vi" to call it from the right path, that you can wire to "System exec.vi".
Maybe, another solutions is to set path environment variable to windows to point at your executable, but I think it's not the best solutions....
Maybe I'm missing something, please let me know if this helps!
graziano -
CMD.exe is still running after System Exec.vi
Hi,
I'm currently trying to use the System Exec.vi to launch files and applications by writing the action to do in a constant bat file and calling this bat file( to avoid synthax problems). I've remarked that a cmd process is active while the file or application launched previously is opened. It uses more CPU and sometimes disables the new cmd command passed.
I've already tried to change the wait until completion constant but, in every case the cmd process only stops when we stop the process it had launch.
I'd like to know if it's possible to avoid this multiple cmd by killing ther cmd window after it has complete its task?
I'm looking forward to your answer.
Thank you in advance.
BimPlease see the link below:
http://forums.ni.com/ni/board/message?board.id=170&message.id=79683&requireLogin=False
It should solve your problem
Regards,
Sanaa T
Sanaa T.
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
>> http://www.nidays.fr/images/081110_ban_nidays09_468X60.gif -
Enter password to a program using system exec
Hi,
I have a program that I am running using SYSTEM EXEC.VI. The VI runs ok but asks me to enter a passowrd. If I do this, the VI continues and completes the test. My question is... how can I add the password automatically using SYSTEM EXEC.VI without the user typing it in. I have tried a carridge return and then the password (in the comand line) or even typing the password into the STANDARD INPUT and have even tried creating a batch file but no luck
regards
Chris
Attachments:
1.jpg 141 KB
2.jpg 57 KBMaybe this will provide a clue:
http://superuser.com/questions/44106/is-there-a-way-to-auto-login-in-putty-with-a-password -
Background job is running for long tome in source system (ECC)
Hi All,
Background job is running for long tome in source system (ECC) while extracting data to PSA.
I checked in ECC system SM66,SM50 the job is still running
in SM37 the job is Active
There are only maximum 7000 records the extractor is 2LIS_02_ITM but it is taking 11 to 13 hours to load to PSA daily
I had checked enhancements every thing is correct.
Please help me on this how can I solve this issue.
Regards
Supraja KHi sudhi,
The difference between Call customer enhancement... and Result of customer enhancement:... is very less we can say this as a second.
The difference is between LUWs confirmed and 1 LUWs -
and Call customer enhancement -
Please find the job log details below, and give me the solution to ressolve this
01:06:43 ***01:06:43 * ztta/roll_extension........... 2000000000 * R8 050
R8 048
01:06:43 1 LUWs confirmed and 1 LUWs to be deleted with function module RSC2_QOUT_CONFIRM_DATA RSQU 036
06:56:31 Call customer enhancement BW_BTE_CALL_BW204010_E (BTE) with 5.208 records R3 407
06:56:31 Result of customer enhancement: 5.208 records R3 408
06:56:31 Call customer enhancement EXIT_SAPLRSAP_001 (CMOD) with 5.208 records R3 407
06:56:31 Result of customer enhancement: 5.208 records R3 408
06:56:31 PSA=1 USING SMQS SCHEDULER / IF [tRFC=ON] STARTING qRFC ELSE STARTING SAPI R3 299
06:56:31 Synchronous send of data package 1 (0 parallel tasks) R3 410
06:56:32 tRFC: Data Package = 0, TID = , Duration = 00:00:00, ARFCSTATE = R3 038
06:56:32 tRFC: Start = 00.00.0000 00:00:00, End = 00.00.0000 00:00:00 R3 039
06:56:32 Synchronized transmission of info IDoc 3 (0 parallel tasks) R3 414
06:56:32 IDOC: Info IDoc 3, IDoc No. 1549822, Duration 00:00:00 R3 088
06:56:32 IDoc: Start = 04.10.2011 06:56:32, End = 04.10.2011 06:56:32 R3 089
06:56:32 Altogether, 0 records were filtered out through selection conditions RSQU 037
06:56:32 Synchronized transmission of info IDoc 4 (0 parallel tasks) R3 414
06:56:32 IDOC: Info IDoc 4, IDoc No. 1549823, Duration 00:00:00 R3 088
06:56:32 IDoc: Start = 04.10.2011 06:56:32, End = 04.10.2011 06:56:32 R3 089
06:56:32 Job finished 00 517
Regards
Supraja -
Run operating system command for sender File adpter (NFS)
Hi All,
iam doing a file to RFC scenario, using 'Run operating system command' in sender file adapter to change the file name while archiving (after processing completed).
I mention OS command like this:
sample_server\scripts\Test\Rename.bat"
Rename.bat file calls a 'perl script' code.
when i run interface, could see below statement in adapter log ->
"Execute OS command "
sample_server\scripts\Test\Rename.bat"
but the script was not run and file name was not changed.
Please advice what could be the problem?
Does this mean script executed successfully?
Do i need install perl software on XI server, even perl script (.bat file) is executing on sample_server?
Thanks in advance..
Regards,
RajeshHi,
Just check the following URL and give it a try again :-
Executing Unix shell script using Operating System Command in XI
Hope this info Helps..
Regards,
Aditya -
How to create user group for EIS (Executive Information System) KCBA
Dear Experts,
How to create user group for EIS (Executive Information System)
TCode KCBA
Regards
SaurabhHi ,
Check the below link ,hope it will give some inputs for creating groups.
http://help.sap.com/saphelp_470/helpdata/en/5c/c1c81c445f11d189f00000e81ddfac/content.htm
Regards
udayakumar.k -
Cannot find official hardware system requirements for a pc running app-v client on W7
looking for
hardware system requirements for a pc running app-v client on W7
Thx.
"When you hit a wrong note it's the next note that makes it good or bad". Miles DavisHello,
Did you attempt to google for "app-v 5 system requirements"?
http://technet.microsoft.com/en-us/library/jj713426.aspx
Nicke Källén | The Knack| Twitter:
@Znackattack -
Hello,
I currently having a series of errors (18 issues) that are occurring under the below Correlation ID ad1a22f5-1ddb-4fa5-8487-143cb6fd0f9d
I have listed (3) that are in the Web Parts category, this error/issue is causing several timed job to no longer work properly I have been trying to find the root cause for about a week now. If anyone has encountered a issue
such as this one I'm open for suggestions.
(1)
Error while executing web part: System.Xml.Xsl.XslLoadException: XSLT compile error. An error occurred at (1,475). ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure. at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest
asyncRequest, Exception exception) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult
lazyResult) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) at System.Net.TlsStream.Write(Byte[]
buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.WriteHeaders(Boolean async) --- End of inner exception
stack trace --- at System.Net.HttpWebRequest.GetResponse() at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) at System.Xml.XmlUrlResolver.GetEntity(Uri
absoluteUri, String role, Type ofObjectToReturn) at Microsoft.SharePoint.WebPartPages.WSSXmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.Xsl.Xslt.XsltLoader.CreateReader(Uri
uri, XmlResolver xmlResolver) at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(Uri uri, Boolean include) at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include)
--- End of inner exception stack trace --- at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include) at System.Xml.Xsl.Xslt.XsltLoader.Load(Compiler compiler, Object stylesheet, XmlResolver
xmlResolver) at System.Xml.Xsl.Xslt.Compiler.Compile(Object stylesheet, XmlResolver xmlResolver, QilExpression& qil) at System.Xml.Xsl.XslCompiledTransform.CompileXsltToQil(Object stylesheet, XsltSettings
settings, XmlResolver stylesheetResolver) at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver) at System.Xml.Xsl.XslCompiledTransform.Load(XmlReader
stylesheet, XsltSettings settings, XmlResolver stylesheetResolver) at Microsoft.SharePoint.WebPartPages.DataFormWebPart.LoadXslCompiledTransform(WSSXmlUrlResolver someXmlResolver) at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXslCompiledTransform()
at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)
(2)
InnerException 1: System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according
to the validation procedure. at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[]
buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[]
buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[]
buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ForceAuthentication(Boolean
receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback,
Object state) at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Write(Byte[]
buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.WriteHeaders(Boolean async) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetResponse()
at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at Microsoft.SharePoint.WebPartPages.WSSXmlUrlResolver.GetEntity(Uri
absoluteUri, String role, Type ofObjectToReturn) at System.Xml.Xsl.Xslt.XsltLoader.CreateReader(Uri uri, XmlResolver xmlResolver) at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(Uri uri, Boolean include)
at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include)
(3)
InnerException 2: System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure. at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest
asyncRequest, Exception exception) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult
lazyResult) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) at System.Net.TlsStream.Write(Byte[]
buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.WriteHeaders(Boolean async)Hello,
It seems that issue is related to certificate. Could you please upload certificate to central admin and make it trust.
Just try this and see the result:
http://social.technet.microsoft.com/Forums/en-US/cbc58585-1673-4c91-b8c1-1b95c339bbb7/could-not-establish-trust-relationship-for-the-ssltls-secure-channel?forum=fastsharepoint
http://social.msdn.microsoft.com/Forums/en-US/7a7e56ba-6e95-4a84-9384-791818cce89d/the-underlying-connection-was-closed-could-not-establish-trust-relationship-for-the-ssltls-secure?forum=sharepointdevelopmentprevious
http://www.infotext.com/help/sharepoint-could-not-estabilish-trust-relationship-for-the-ssltls-secure-channel-when-crawling-ssl-enabled-websites/
If still face the issue then tell us more about your webparts and also confirm if you are facing same problem to other page and site.
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
How to get the SubVI(the virtual path is under .exe) reference in Run Time System
Hi everyone
The problem is about how to get the SubVI reference in Run Time System, when the SubVI is in .exe after building.
More details:
The top vi calls the SubVI by dynamic way, so the SubVI is included always, and the source object is the application.exe.
After the setup above, the SubVI will be in the application.exe. For example, SubVI's path is ...\application.exe\SubVI.vi
So, how to get SubVI's reference in Run Time System?
I can not get it when using "open VI reference" with the path ...\application.exe\SubVI.vi in Run Time System.
Actually, I can create a file to include the SubVI, instead of build the SubVI in application.exe , then I can get the reference convenintly. But it is not my favourate way.
Thanks
chenyin
Solved!
Go to Solution.Here is the problem. Call a dynamic subVI means users could change it but it's also very attractive.
The dynamic call must be used within a user mastered but some parade can avoid problems.
It depends of why you use dynamic calls... => 2 main ways:
- Dynamic call are use to maintain an evolutive part of the code without acting on the executable => one unique VI distribution maintained by the administrator/developer
- Dynamic call are use to provide a collection of 'external' feature which could be enriched by the administrator/developer. For example, you provide to your customer a set of custom signal filters selectable in the executable.
In the 2 cases, you are only able to assess user skills to know if there is a risk of damage if there is modification.
So, to stay alone master a parade could be to provide dynamic VI without diagram but with the problem of maintenance because no modification in situ and more attention to manage distribution.
An other way is to hide the real distribution to user => call dynamic VI but unnamed it as *.vi but other (a repulsive name as OS system name ) or simply with no extension in order to not attract user... but it's questionable...
Another method more difficult but safer is to create a test of consistency ahead of your routine (version, user, modification date, ...) -
Hi,
There is an urgent requirement, i want to know about Run Operating System Commands in file adapter. What are all possible commands for windows operating system? and how it works? Kindly send me your suggestions and links at the earliest.
Your help will be appreciated.
Thanks,
Sadhna.Hi,
Run Operating System Command Before/After Message Processing
● Command Line
An operating system command specified here is executed before or after the message processing of a file that was found in a run. The default value is an empty character string (no command).
When the operating system command is called, the file name currently being processed can be specified with the following placeholders:
● %f (file name)
● %F(absolute file name including path)
● Timeout (secs)
This specifies the maximum runtime of the executing program in seconds. When this time interval is exceeded, the adapter continues processing. The executing program continues to run in the background.
● Terminate Program After Timeout
Set this indicator if the adapter is to terminate the executing program when the timeout is exceeded.
The adapter writes the output (STDOUT and STDERR) for the operating system command in the system trace.
Regards,
Phani -
OTO information not complete for non ABAP instance of system &1 in SMSY
Hello,
We have just applied Stack 23 and stack 24 to our Solution Manager system. When we are executing action System Logon from a ticket we are getting the following error:
OTO information not complete for non ABAP instance of system &1 in SMSY
We checked that this new message was created in note Note 1427761 - ChaRM: incorrect target system for action "System Logon".
We went to the SMY transaction to the Product System definition for our system but we could not find which OTO information is missing there, where to load it, etc.
We appreciate your help.
Regards
Esteban HartzsteinHello,
We have not applied the note separately, but we applied the support packages, so all the changes were applied, and therefore we are getting this error message of "OTO information is not complete ....
We have updated as suggested the info regarding the system in the SMSY. We have read the Remote System Data.
We will run SOLMAN_SETUP again to review the setup, and then test again
We appreciate also if you provide any additional input.
Regards
Esteban Hartzstein -
Teststand 4.1.1 PAWS Run-Time System ActiveX Server
Hello,
I downloaded Teststand 4.1.1 for evaluation. However, when I tried to run the example called "Manual Intervention Example.seq" or "ParameterPassingExample.seq" shows an error.
Both sequences indicates "PAWS Run-Time System ActiveX Server not installed."
Error: Error executing substep 'Execute TPS'.
An error occurred calling 'ExecuteTPS' in 'IExecuteTPS' of 'NI ATLAS StepType 1.0'
The TPS Server could not be created. A possible cause is that the PAWS Run-Time System ActiveX Server is not installed. Check your TYX PAWS installation and try again. [Error Code: -2147221164, User-defined error code.]
Where do I get that installation from?
Why wasn't it installed when I install the evaluation for Teststand 4.1.1?Hi,
Try here:
http://www.tyx.com/index.html
regards
Ray Farmer
Regards
Ray Farmer
Maybe you are looking for
-
Can't believe the decision to group photos only with the 'Recent' or by Collections. Apple logic doesn't match individual's logic on the groupings. PLEASE go back or find another method!! So many single photos on separate lines in Collections -- eve
-
Can someone tell me if there's a problem with my recursive file search?
I've been trying to get a recursive file search working. I wanted to go through each directory and add every file to a database so I can use extremely fast, advanced file searches through my program. I wrote up this code <CODE> package myrecursive; i
-
i am new in FIM......please provide the simplest Answer Any step by step guide.... and do i need Echange Server for that...i just want the communication between FIM & AD.
-
Using 7.1.1 on a system with 7.2 installed
Does anyone know- if I take the risk and install 7.2 on my system and then need to go back to 7.1.1 will 7.1.1 work just the same as before I installed 7.2? In other words- does 7.2 install (un)funny things that could alter 7.1.1? Dual 1Ghz G4 MDD, M
-
I have an event which starts on a Wednesday, 9 am to Saturday 16.30 pm. iCal marks the period perfectly on the weekly screen (green from Wednesday 9 till Saturday 16.30). The monthly screen shows only one event on Wednesday, but nothing on Thursday-S