To check status of outlook whether its connected or disconnected without using Outlook UDF - autoit

I need to automate to check the status(Disconnected/connected/Trying to connect/Need Password) of outlook without using Outlook UDF.
Below is the code i am trying
Global $iPID = "C:\Program Files (x86)\Microsoft Office\Office14\outlook.exe"
Sleep(600)
Run($iPID, "", #SW_SHOWMAXIMIZED)
Sleep(6000)
;check the Status
$status =
Could some one please help me out check the status ??

About the ONLY option I can think of is to use hardcoded coordinates to find if the red X in the lower right when offline is true.
You can use the AutoIt Window Info tool to get the coordinates and the color.

Related

How to open a database in Sql Browser which is encrypted by sqlCipher?

I apologize for the duplicate question if it is. I almost searched everywhere but couldn't find any solution.
see this and this picture. To mention that I used the latest version of the SQLite browser on Windows.
Any help would be appreciated.
Ok first you need to create the database as non encrypted
then open Android Studio and run the emulator with the code I will give you below
Now minimize every thing Emulator and Android Studio BUT BEFORE YOU DO THAT LOOK IN your logcat you will see the path to your DB Highlight and COPY that
Now find adb.exe folder it will be on C drive under where ever you installed AS. OR just do a search on C drive OK when you get to where that folder is HOLD DOWN the SHIFT KEY and RIGHT CLICK any where in the white SELECT "Open command Window here"
now in the command window type this
adb pull (do a right click and paste that path you coppied C:\name of folder on your C Drive Best to create one and name it AASafe
bingo your data base is now on your PC in the folder AASafe HERE IS RHE CODE it is a method that needs to be called under onCreate
// Is External Storage Avaiable if so use it and find the path for DBHelper
public void onAvail() {
String state = Environment.getExternalStorageState();
if (state.equals(Environment.MEDIA_MOUNTED) && (!state.equals(Environment.MEDIA_MOUNTED_READ_ONLY))) {
File removable = ContextCompat.getExternalFilesDirs(this, null)[1];
THE_PATH = String.valueOf(removable) + "/Documents/";
System.out.println("SD Card Path ==> " + THE_PATH);
} else {// if (state.equals(Environment.MEDIA_MOUNTED_READ_ONLY)) {
THE_PATH = "";
System.out.println("Internal Path ==> "+ THE_PATH);
}
}

Is it possible to transfer sqlite file to watch os 2

Can any one help me out on this problem. I am struggling to transfer the sqlite to watch os 2. If you have any example share with me or please give your suggestion on this
Have not tried this for sqlLite files but works with audioFiles.
What I did is:
Turn ON App Group both on watch extension and main project.
Place file in App Group Container
// I create the file there so my code is
NSURL * urlOut = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier: APP_CONECTIVITY_ID];
urlOut = [urlOut URLByAppendingPathComponent:#"myfile.wav"];
Send via WCSession sendMessage the link, need to send as string so you will send urlOut.absoluteString.
Profit?
You should be able to use stuff like sendMessageData //reading the file as date beforhand.
and there is also this WCSessionFileTransfer.
But I haven't had a chance to try that yet.

Is there a console log for asp.net?

If I have IF statement like below:
If currentdate >= rating1 then
status = 2
ELSEIF currentdate >= rating2 then
daylight_savings_status = 0
ELSEIF currentdate >= rating3 then
daylight_savings_status = 1
ELSE
daylight_savings_status = 1
End If
Is there something like in javascript
console.log('test');
that I can test on the which IF statement is truth of the statement?
This way I be able to test it on the firebug(firefox).
For Server Side
C# & VB.Net
Server Side - This will show in the Visual Studio Output window.
System.Diagnostics.Debug.WriteLine(log data here)
Client Side JavaScript/Jquery - This will show in the browser devtools console window. Works on all popular browsers.
console.log(log data here)
I would try to output it to the clients console ONLY If the Console.WriteLine() function doesnt work for you.
Page.Response.Write("<script>console.log('" + msg + "');</script>");
Ultimately though you should try to write debug statements in your own console (with System.Diagnostics.Debug.WriteLine(...)) and not the client's.
NB
System.Diagnostics.Debug.WriteLine(...); gets it into the Immediate Window in Visual Studio 2008.
Go to menu Debug -> Windows -> Immediate:
This may be a moot point, but I wanted to make a note on this. As #snowYetis answer tells you the correct way to write to the system console for debugging puposes. My "trick" to making this a little more bearable during development is making a helper class somewhere in your project for you to import and use. One of the helper methods I ALWAYS implement in my projects is this one:
public void DebugLog(String msg)
{
System.Diagnostics.Debug.WriteLine(msg);
}
This way you only need to call your Helper.DebugLog(e.Message); when you want to log to console without having to dot your way into madness :)
Hope this helps someone
For outputting to your server console, use :
Console.WriteLine("test");

Asterisk: Record application is generating empty files

User making the call is asked to dial an extension. This is done by 1#playing a prompt with Background and then 2#wait_for_digit. Based on the extension that has been dialed, the destination number is determined and the call is forwarded to that number.
If the called person doesn't not answer, then Playback is used to play a prompt that asks the user to record the voice message; recording the voice message is done with the Record application.
This Record application is always generating empty wav files, size 44 bytes. If I remove the 1#playing a prompt with Background the Record application is generating proper files. If the Background is included, all recordings are empty.
I am using Perl Asterisk::AGI module.
$agi->exec('Answer');
....
.....
$agi->exec('Background', 'en/extra/please-enter-the-extension,n'); # this is the troubling part
my $my_extension = $agi->wait_for_digit(5000);
....
.....
$agi->exec('Playback', 'en/extra/the-party-you-are-calling&en/extra/is-curntly-busy,noanswer');
$agi->exec('Playback', 'en/vm-intro,noanswer');
my $file = 'xyz.wav';
$agi->exec('Record', "$file,0,10,k");
...
...
What should I do to make it work as I want it to?
Thank you.
UPDATE 1:
The same script is working without glitches now. Not sure if something unrelated to the script has changed.
Most likly you have check your codecs. IF you use g729 or g723 and no transcoder,it just can't write in wav format.

VLC-Player in adobe Air App does not stop/quit

Well i have an adobe air , downloaded from below link.. it is wonderful app..
http://www.adobe.com/devnet/air/flex/articles/air_screenrecording.html
and this works fine. It captures my screen , record audio but it just does not stop or quit as vlc-player.exe continues to run in the task manager.
i tried lots of vlc- commands but it just does not stop once it starts capturing screen video.
I need help on it..
I know this is a old thread, but just in case someone wants to know...
You can't use rc-fake-tty because Windows doesn't support terminal. For Windows, tell VLC to run with only one instance, then send it the quit command as a separate NativeProcess call.
So, in the linked article, change the stopRecording() method to this:
public function stopRecording():void{
var startupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
startupInfo.executable = vlcFile;
var processArgs:Vector.<String> = new Vector.<String>();
processArgs.push("-I");
processArgs.push("rc"); //Remote control
processArgs.push("--one-instance");
processArgs.push("vlc://quit");
startupInfo.arguments = processArgs;
var killSwitch:NativeProcess = new NativeProcess();
killSwitch.start(startupInfo);
}
And make sure to add this:
processArgs.push("--one-instance");
To your initial screen record startupInfo in startRecording() method.
I quit using vlc for the same reason and started to write my recording application using .Net 4, but i am having less performance using c# now.
Edit:
VLC for windows does not support fake rc control so setting rc-fake-tty is useless. As the very last try, i wanna control is via socket. If you got it working this way, please make me informed.

Resources