Search found 205 matches

by Captive
Sat Apr 21, 2007 6:17 pm
Forum: Technical / Scripting
Topic: Dialog button with image.bmp --not working
Replies: 11
Views: 18549

mtettmar wrote:"The lower left pixel of the bitmap is reserved for the "transparent" color. Any pixel in the bitmap which matches that lower left pixel will be transparent."
Ahh, could this also affect the ScreenCapture routine?
by Captive
Mon Apr 16, 2007 11:23 pm
Forum: Technical / Scripting
Topic: Backup Folders with subfolders and all files inside.
Replies: 6
Views: 8727

You used QUOTE instead of CODE, so certain lines of your code did not appear properly; Example: If s <then>dd Also - I don't see an "End Function" for the GetFolderList routine. If you're interested, I'd recommend checking out the VBScript Method "CopyFolder". Something roughly similar to; Function ...
by Captive
Mon Apr 16, 2007 9:26 pm
Forum: Technical / Scripting
Topic: Problem with DeleteFile> ,relative path and wildcard
Replies: 2
Views: 4952

Let>VAREXPLICIT=1
MessageModal>SCRIPT_DIR is %SCRIPT_DIR%%CRLF%CWD is %CWD%
DeleteFile>..\deleteme.txt
DeleteFile>..\test\deleteme.txt

Both worked. The files are currently relative to %CWD%
v9.0.054
by Captive
Sat Mar 24, 2007 8:53 pm
Forum: Beginners
Topic: Remove all captial words from a paragraph
Replies: 2
Views: 5135

Pickles! One way to approach this task is to start by creating some rough logic on what the code would do. Starting from position 1. Let>k=1 Loop through (start at 1, see Repeat/Until, or Goto/Label)..... - Check if the character at position1 is uppercase. (There are probably a few ways to so this. ...
by Captive
Fri Mar 23, 2007 7:57 am
Forum: Technical / Scripting
Topic: ScreenShot results in totally Black Image [RESOLVED]
Replies: 9
Views: 12222

Ooo, I've been using x1 and y1 values of 1. Maybe I need to change my script! If you get nowhere with your current test - check out what that %SCREENCAP_RESULT% says and even test with something simple as ScreenCapture>10,10,200,200,c:\mypic.bmp Could it even be a vista thing (ie, he's the only pers...
by Captive
Fri Mar 23, 2007 3:37 am
Forum: Technical / Scripting
Topic: ScreenShot results in totally Black Image [RESOLVED]
Replies: 9
Views: 12222

Edit: After I wrote this, I realized that you had already wrote something that suggests "the script works" but just not on this 1 persons PC. The last thing might still apply though if he has a multi-monitor setup and the screenshot is of "display2" or something. After the ScreenCapture command, hav...
by Captive
Fri Mar 23, 2007 1:21 am
Forum: Technical / Scripting
Topic: ScreenShot results in totally Black Image [RESOLVED]
Replies: 9
Views: 12222

If "printscreen" is used (Press Print Screen), and then an "edit-paste" performed in an image application (such as mspaint, etc), is it also black there?

I'm wondering if this is something specific to just msched, or just a screenshot-type thing in general.
by Captive
Tue Mar 20, 2007 6:15 pm
Forum: Technical / Scripting
Topic: Increment arrays in findimagepos
Replies: 3
Views: 6511

Yep you're so close! :] Let>xx=X_array_%j% Let>yy=Y_array_%j% MouseMove>%xx%,%yy% Also - you might want to change your Until to say; Until>j=imgs (when imgs=4, the largest x is X_array_3) However, the above doesn't work when Let>VAREXPLICIT=1 ... (so maybe Marcus can re-explain how to do that one. :...
by Captive
Tue Mar 20, 2007 6:37 am
Forum: General Discussion
Topic: Error When Running VB script.
Replies: 2
Views: 5363

Works fine here. Please provide this info; 1) What version of Macro Scheduler. 2) In your editor, what shows as line 12? Also, please check the ends of each line for any trailing spaces. Personally, I put the IfWindowOpen after the VBEND, and exclude the "else" unless I have stuff to excecute, like ...
by Captive
Mon Mar 19, 2007 6:58 pm
Forum: General Discussion
Topic: Save in Read Only
Replies: 6
Views: 9113

You don't need this line line your vbscript section; fullfilename = c:\test\filename.txt The filename is given as the first parameter in this line; VBRUN>SetReadOnly,c:\blah.txt And then the first parameter is put in to the first variable of the function declaration; Function SetReadOnly (fullfilena...
by Captive
Sun Mar 18, 2007 8:28 pm
Forum: Technical / Scripting
Topic: saving web page
Replies: 2
Views: 5100

"Other than using sendkeys" ... yeah. I found some nice examples and info in the scripts'n'tips page. Automate Internet Explorer with OLE/ActiveX http://www.mjtnet.com/usergroup/viewtopic.php?t=1511 And this one even shows how to fill out forms... http://www.mjtnet.com/usergroup/viewtopic.php?t=1461...
by Captive
Sun Mar 18, 2007 5:36 am
Forum: Beginners
Topic: Help with multiple download of files with FTP
Replies: 10
Views: 11974

i checked the %FTP_RESULT%, but it said that that it cant find the local file "localDir/" I assume you're running this program on a windows based system. Could it be that the entry should say "localDir" instead of "localDir/" ? Perhaps this may be easier if you post the actual "FTPGetFile" line tha...
by Captive
Sat Mar 17, 2007 11:57 pm
Forum: Beginners
Topic: Help with multiple download of files with FTP
Replies: 10
Views: 11974

The help file example says FTPGetFile>Server,Username,Password,port,Local_Path,Host_Filespec,Mode or FTPGetFile>ftp.domain.com,anonymous,user@domain.com,21,c:\temp\,/pub/*.txt,A In your provided example, you have Local_Path as "localDir/*.*" - I don't think you should have the *.* in there, and did ...
by Captive
Sat Mar 17, 2007 4:27 am
Forum: Technical / Scripting
Topic: Problems with ExecuteFile launching a URL in a browser
Replies: 2
Views: 5916

WinXP, MSIE v7, the script you posted seems to work fine - however my msched seemed to crash. (First it just closed, no error, then 2nd attempt I got an access violation.) Maybe you've found a bug! An old example worked fine... VBSTART Function OpenPage (URL,Wait) Dim IE Set IE = CreateObject("Inter...
by Captive
Fri Mar 16, 2007 3:13 am
Forum: Beginners
Topic: Deciding when to use VBscript and when to use MS script
Replies: 6
Views: 10286

You can declare a VBScript "global" array or variable, and use it from any of your VBScript routines. This can also be a multi-dimensional array. Example; VBSTART Dim aFiles() Dim nFileCount Function blahfunction (param) Dim fso, oFolder, sResult ' etc ' You can here refer or change the aFiles array...
Sign up to our newsletter for free automation tips, tricks & discounts