Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, August 29, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Passing to external application
Andrew Grandin
Posts: 272
 
Passing to external applicationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Oct 09 8:49 AM
Hi All,

Im using Application.BasicFunctions.DoInvoke "Open", "(location)" to open notepad (as a test). Is there any way i can pass some text to display in the body of the new notepad document that gets opened?
[Reply][Quote]
LeVar Berry
Posts: 47
 
Re: Passing to external applicationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Oct 09 8:24 PM
Umm.... Kinda

I don't believe the notepad.exe will accept anything other than a filename..


However, You can write to a file like c:\something.txt

Then open notepad.exe c:\something.txt

Then delete the .txt

Might cause problems if you multiple people hitting this at the same time.

Other Applications like Word, EXCEL, Inet Explorer are OLE Objects so you can easily man handle them thru VB-Script.

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Passing to external applicationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Oct 09 5:17 PM
"However, You can write to a file like c:\something.txt

Then open notepad.exe c:\something.txt

Then delete the .txt

Might cause problems if you multiple people hitting this at the same time."

Write the filename as SLX_USERID.txt and you won't have people hitting the same file name at the same time....
[Reply][Quote]
Thomas Aussem
Posts: 57
 
Re: Passing to external applicationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Oct 09 8:30 AM
It will be possible if you use the WScript.Shell object for starting notepad:

Option Explicit
Dim strMessage
strMessage = "Hello World" & vbCrLF & "A new line after a carriage return"
Dim wshShell
Set wshShell = CreateObject("WScript.Shell")
wshShell.Run "notepad.exe"
WScript.Sleep 200
wshShell.SendKeys (strMessage)
Set wshShell = Nothing

The command "WScript.Sleep 200" is necessary to give "notepad.exe" some time to start and initialize itself before accepting any input. For details have a look at the script56.chm Rescorce of VBScript.

Cheers,
Thomas
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 8/29/2025 4:35:04 PM