Search found 438 matches

by adroege
Mon May 17, 2010 3:27 pm
Forum: Technical / Scripting
Topic: Selecting Data Sources For Variables By User Form - Word2007
Replies: 9
Views: 8044

Small sample of code to read Excel spreadsheet data

Based upon your definition of the Excel data file from your previous post, here is a little sample of code which should return the corresponding date when given the ID. I created an XLS data file according to your sample, and tested the following code. When I entered "cgn02" as the ID it correctly r...
by adroege
Sat May 15, 2010 10:59 am
Forum: Beginners
Topic: The wait system...! [RESOLVED]
Replies: 3
Views: 6399

Using techniques to wait until screen is fully loaded

WaitReady is not able to work sucessfully with *EVERY* situation, however I noticed you didn't try it using the parameter of "1". Using WaitReady>1 also makes it wait for screen paint events to complete. So, instead of WaitReady>0 in your situation try WaitReady>1 If that doesn't work, there are man...
by adroege
Fri May 14, 2010 6:53 pm
Forum: General Discussion
Topic: Paste text from clipboard
Replies: 7
Views: 11410

problems with clipboard and russian text

Maybe the problem lies in how you are getting the text into the clipboard in the first place? How is text going to the clipboard? *Another thought* - Do you have to use the clipboard? Why not use other data storage techniques? Like read from file, read from memory components, read from database.... ...
by adroege
Fri May 14, 2010 6:45 pm
Forum: Technical / Scripting
Topic: Selecting Data Sources For Variables By User Form - Word2007
Replies: 9
Views: 8044

writing code to access spreadsheet data and paste into word

Yes, It is possible :D This does require *some* programming skill/experience as this is not just a simple "move mouse/send keystroke" type of macro. This forum is a wealth of code samples and ideas. Try dividing your problem up into smaller parts, and then trying to make the small parts work first -...
by adroege
Fri May 14, 2010 6:00 pm
Forum: Enhancement Suggestions
Topic: DBQuery direct to file
Replies: 12
Views: 26855

Display database query in HTML format - uses VBScript

Here is another technique that I started using many years ago. It uses VBScript to format the results into HTML, and then display in the browser. The final display can be as pretty as you want, and include logo images, colors, etc...... just up to your HTML coding skills. This example just shows the...
by adroege
Fri May 14, 2010 1:09 pm
Forum: Technical / Scripting
Topic: Read File name/FTP Commands
Replies: 3
Views: 4831

Using the right function to parse a filename from a string

If as you say, the file name is always the same number of characters,
then here is possibly a simpler approach.


[code]
VBStart
VBEnd

Let>var=-rw-r----- 1 57223 6560 148 Apr 12 15:13 XXX20100414.csv

VBEval>right("%var%",15),result
MessageModal>result
[/code]
by adroege
Fri May 14, 2010 12:07 pm
Forum: General Discussion
Topic: Paste text from clipboard
Replies: 7
Views: 11410

problems with mixed languages in clipboard

At this point it doesn't seem like a Macro Scheduler issue, since the clipboard seems like it's the problem. I work exclusively in an English only environment, so mixed languages on the clipboard aren't something I have ever had to deal with. Let's attack the problem in a different way. Maybe the cl...
by adroege
Thu May 13, 2010 9:28 pm
Forum: General Discussion
Topic: Paste text from clipboard
Replies: 7
Views: 11410

alternative to ctrl-v for paste

Here is something to try instead of sending the key strokes to do paste.

[code]
GetClipBoard>result
Send>result
[/code]
by adroege
Thu May 13, 2010 1:08 pm
Forum: Beginners
Topic: is that possible?
Replies: 1
Views: 3156

This should get you started

This should get you started.... [code] Input>Target_date,Enter Date (mm/dd/yyyy) to execute, Input>Target_time,Enter Time (hh:mm 24 hour time) to execute, Year>Cur_Year Month>Cur_Month Day>Cur_Day Hour>Cur_Hour Min>Cur_Min Sec>Cur_Sec Separate>Target_date,/,arrItems Let>Target_Month=arrItems_1 Let>T...
by adroege
Thu May 13, 2010 12:18 pm
Forum: Technical / Scripting
Topic: DBQuery and SQL function COUNT not working
Replies: 7
Views: 6771

use count(*) to count null values as well

There is another possibility.... That is DingDong expects the count to return 4 and it returns the number 1. So.... the possibility exists that the column clientid contains null in 3 of the 4 rows. To have the count function give you the row count and ignore any nulls it encounters do the following:...
by adroege
Wed May 12, 2010 1:46 pm
Forum: Technical / Scripting
Topic: Problem sending keystrokes to Wavelab
Replies: 4
Views: 6069

Is the version of wavelab you are running a 64 bit or 32 bit app?
by adroege
Wed May 12, 2010 1:40 pm
Forum: Technical / Scripting
Topic: Problem sending keystrokes to Wavelab
Replies: 4
Views: 6069

Since I know nothing about your application Wavelab.... maybe some additional info might help here...


What is the OS?
What is the Macro Scheduler version?

Is this a desktop app or a SaaS application (run in a browser?) I'm pretty sure the answer is desktop app (but you never know?)
by adroege
Wed May 12, 2010 12:34 pm
Forum: Technical / Scripting
Topic: Spaces in Parameters being passed to EXE doesnt work
Replies: 1
Views: 3025

Put double quotes around parameters which contain spaces

This is not just a Macro Scheduler problem, this occurs when passing parameters to almost any EXE on the command line. The solution is to put double quotes around the parameter which has spaces in it. I compiled the following simple macro and tested that it works fine MessageModal>PATH MessageModal>...
by adroege
Tue May 11, 2010 12:22 pm
Forum: Technical / Scripting
Topic: ADO connection to MSAccess 2000
Replies: 4
Views: 5302

missing SQL

//
//Perform SELECT query
//
DBQuery>dbRep,SQL,CLIENTS,NumRecs,NumFields
Message>records %NumRecs%
Message>records %NumFields%


First thing I notice is that there is no SQL query defined to run.
Like the following:

Code: Select all

Let>SQL=select * from your_table
by adroege
Mon May 10, 2010 1:33 pm
Forum: Technical / Scripting
Topic: Access Driver ODBC Driver Not Found
Replies: 3
Views: 27924

Connection strings web resource

I have used this resource in the past with good results

Code: Select all

http://www.connectionstrings.com/



Enjoy|!
Sign up to our newsletter for free automation tips, tricks & discounts