LordSphynx Posted June 12, 2007 Share Posted June 12, 2007 I need to do the following: $message should give me "Some text" (with the brackets). Now how can I do this, seen that when I do this like this ($message = "Some text"), $message gives me Some text (without the brackets) Thanks Link to comment Share on other sites More sharing options...
BrettF Posted June 12, 2007 Share Posted June 12, 2007 I need to do the following:$message should give me "Some text" (with the brackets).Now how can I do this, seen that when I do this like this ($message = "Some text"), $message gives me Some text (without the brackets)ThanksI'm having trouble understanding. I see $message = "Some Text", But where do the brackets come from?? Do you want them in the string?? Cause im just lost Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
LordSphynx Posted June 12, 2007 Author Share Posted June 12, 2007 (edited) I'm having trouble understanding. I see $message = "Some Text", But where do the brackets come from?? Do you want them in the string?? Cause im just lost What I want to do is that $message has to be send to the KLOG service (is a service which enumerates a syslog error to the syslog server) and the error is set in $message.So actually, I need it to send this:Run("KLOG.EXE -L Critical -m " & $message)So my message must be between brackets because it consist of more then 1 word.The message send could be like this --> Diskspace on drive C is lowSo when I send that in command line, this would be: KLOG.EXE -L Critical -m "Diskspace on drive C is low" Edited June 12, 2007 by LordSphynx Link to comment Share on other sites More sharing options...
Developers Jos Posted June 12, 2007 Developers Share Posted June 12, 2007 Run('KLOG.EXE -L Critical -m "' & $message & '"') SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
BrettF Posted June 12, 2007 Share Posted June 12, 2007 (edited) What I want to do is that $message has to be send to the KLOG service (is a service which enumerates a syslog error to the syslog server) and the error is set in $message. So actually, I need it to send this: Run("KLOG.EXE -L Critical -m " & $message) So my message must be between brackets because it consist of more then 1 word. The message send could be like this --> Diskspace on drive C is low So when I send that in command line, this would be: KLOG.EXE -L Critical -m "Diskspace on drive C is low"Ahhh! Ok, All you need to do is use ' instead of " in your function call. The result would be: run (' KLOG.EXE -L Critical -m "Diskspace on drive C is low"') EDIT: Oooooooo........ Just bet me Jdeb! Edited June 12, 2007 by Bert Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now