Search found 438 matches

by adroege
Fri May 07, 2010 6:39 pm
Forum: Technical / Scripting
Topic: Monitoring progress of a macro
Replies: 5
Views: 5177

Use the debugger to watch progress of macro in real time

So I was searching for some form of process monitor that would let me know in real time which of the macro step was being processed. This would allow me to watch this at the same time as the application window and find out what's going on. Seems from the above quote what you are asking for is to ru...
by adroege
Fri May 07, 2010 1:59 pm
Forum: Technical / Scripting
Topic: Trigger script by new files in sub folders
Replies: 5
Views: 8175

Find additions and updates to folder structure fast with MD5

Here is another method to try. This works very quickly because it's using the MD5 hash of a folder listing instead of checking every file for additions or updates. ***EDIT*** Found that somehow pasting the text messed up the code a little bit near the bottom, so fixed it. [code] //See if any new fil...
by adroege
Thu May 06, 2010 3:20 pm
Forum: Technical / Scripting
Topic: How to run a macro at sunset
Replies: 5
Views: 6003

Calculate sunrise and sunset times

I went ahead and coded up an example from one of the web links given above..... seems to work pretty well Enjoy|! VBStart 'SunTimes.vbs '========================================================================= ' Other Constants & Defs Const pi = 3.1415926535897932384626433832795 RADEG=180/pi DEGRAD...
by adroege
Thu May 06, 2010 12:51 pm
Forum: Technical / Scripting
Topic: Forcing Systray to Refresh
Replies: 3
Views: 5810

Refresh System Tray of Dead icons

I looked for some way in WMI or VBScript to do this but couldn't find it (Yet, anyway) However, this seems to work for me in XP and Windows Server 2008 It just moves the mouse over this area quickly, which forces Windows to redraw and remove any old icons left over from "dead" programs. GetCursorPos...
by adroege
Mon May 03, 2010 2:29 pm
Forum: Technical / Scripting
Topic: Close "Main" Windows with Duplicate Names "Cl
Replies: 5
Views: 5616

Try WF_TYPE=2 to ignore invisible windows

However, in the application I am testing, sending the WM_CLOSE does not truly *close* the Window. It ceases to be visible, but remains on the System Windows List Have you tried setting the following variable at the beginning of your code? Let>WF_TYPE=2 This should make MS look at only visible windo...
by adroege
Wed Apr 28, 2010 10:00 pm
Forum: Beginners
Topic: Insert Last Day Of Month
Replies: 2
Views: 4352

Here is another way to find last day of month

Here is another way to find the last day of the month using VBScript. VBSTART Function Last_Day_of_Month(mymonth) Last_Day_of_Month = DateSerial(Year(Now), 1 + mymonth, 0) End Function VBEND //Pass in the month number i.e. 1=January 2=February, etc VBEval>Last_Day_of_Month(2),result MessageModal>Las...
by adroege
Tue Apr 27, 2010 10:23 pm
Forum: Beginners
Topic: Get System Information
Replies: 5
Views: 5578

Use Systeminfo command to get computer specs

This is what you are looking for:

Code: Select all

Let>RP_WAIT=1
Run>systeminfo  >c:\mytemp.txt
ReadFile>c:\mytemp.txt,strFileContents
MessageModal>strFileContents

Have Fun!
by adroege
Mon Apr 26, 2010 3:11 pm
Forum: Technical / Scripting
Topic: Reading output from command line pogram.
Replies: 6
Views: 9002

Found the answer

Try this. VBSTART Function GetIn() Dim WshShell, oExec, input Set WshShell = CreateObject("WScript.Shell") Set oExec = WshShell.Exec("cmd /c dir") input = "" Do While True If Not oExec.StdOut.AtEndOfStream Then input = input & oExec.StdOut.Read(1) If oExec.StdOut.AtEndOfStream Then Exit Do End If Lo...
by adroege
Wed Nov 08, 2006 10:19 pm
Forum: Technical / Scripting
Topic: How do I set the "Version" info for a compiled scr
Replies: 0
Views: 2775

How do I set the "Version" info for a compiled scr

I would like to be able to set the "Version" info for the compiled script EXE's but I have been unable to find out if this is possible. We compile other programs in Delphi and set the version. This is normally how one access this info.... From Windows Explorer..... Right click on the EXE Pick "Prope...
by adroege
Mon Sep 26, 2005 9:03 pm
Forum: Technical / Scripting
Topic: pattern extraction from html code
Replies: 4
Views: 6170

Extracting data from HTML

I have done this, and the best method using Macro Scheduler is to use VBscript with RegEx (Regular Expressions) to match and extract patterns in data files. Regular expressions takes some study and lots of practice to get right, so don't expect it to be a quick fix.
by adroege
Mon Sep 19, 2005 8:23 pm
Forum: Technical / Scripting
Topic: Initialize Dialog Box in 7.4.004
Replies: 7
Views: 11770

Checkbox problems also in 7.4.004

I believe I am experiencing the checkbox problems also as reported. Here is a code snippet that illustrates the problem. The "check all" and "uncheck all" buttons used to work in 7.3.11.4....now a no go. Yes, I could move the static call to "checkall" before the dialog, but the bigger issue is being...
by adroege
Wed Aug 10, 2005 4:08 pm
Forum: Technical / Scripting
Topic: Bug with IF and complex expressions
Replies: 3
Views: 4932

Bug with IF and complex expressions

I think this illustrates a bug with complex expressions. The second If statement SHOULD be true, but the code just skips over it. What is going on here!!!!!! This was run in version 7.3.11.4 registered version. Let>Version=5.0 Let>pixcol=2204193 If>{(%Version%="4.6") AND (%pixcol%="0")} LClick Messa...
by adroege
Wed Jul 27, 2005 8:17 pm
Forum: Technical / Scripting
Topic: Problems with GetCheckBox
Replies: 1
Views: 3813

Problems with GetCheckBox

I have been having weird problems with GetCheckBox and have written this sample code to illustrate the problem. Run the sample, and notice that even though the checkbox has been checked, the program reports it as NOT checked. //******************************************* //** This example illustrate...
by adroege
Thu May 26, 2005 7:15 pm
Forum: Technical / Scripting
Topic: Press Right *10 DOES NOT RESPECT SK_DELAY TIMING
Replies: 1
Views: 3672

Press Right *10 DOES NOT RESPECT SK_DELAY TIMING

I have noticed that when using the asterisk(*) to indicate a particular key press should be repeated, that the repeated keystrokes do NOT obey the SK_DELAY variable for timing. In my example I would expect the right arrow key to get pressed only once per second, for a total of 10 times. But it inste...
by adroege
Mon May 23, 2005 6:23 pm
Forum: Technical / Scripting
Topic: ReadIniFile - problems with relative pathing
Replies: 1
Views: 4027

My apologies,

false alarm. This DOES work. I was incorrectly attributing the error to the wrong ReadIniFile line. I had another ReadIniFile line in the program which did contain a syntax error.
cron
Sign up to our newsletter for free automation tips, tricks & discounts