Search found 431 matches

by pgriffin
Fri Jul 13, 2007 1:17 am
Forum: Beginners
Topic: In any language/script, how can I send keys via pixel/pic?
Replies: 2
Views: 4773

Or, if you are looking constantly at the same spot, you might try

WaitPixelColor>ColorCode,X,Y,Timeout...

So

WaitPixelColor>16777215,100,333,60

would wait 60 seconds for the pixel at 100,333 to turn white.

then based on the value of WPC_RESULT, you could perform what ever action needed.
by pgriffin
Fri Jul 13, 2007 1:10 am
Forum: Technical / Scripting
Topic: SetControlText> issue
Replies: 6
Views: 6537

Dick,

What is your ERP? I have encountered a few ERP's which seem to ignore data sent directly via the Windows API. Curious...after your SetControlText> commands, are you using PushButton> to try to enter the data or are you Lclicking or hotkeys?
by pgriffin
Sun Jul 01, 2007 4:49 am
Forum: Beginners
Topic: Another way to setup IF, ELSE statements
Replies: 8
Views: 14680

Code: Select all

[code]
If>variable1=1
    copyfile>c:\text1,d:\text1
Else
    if>variable1=5
         copyfile>c:\text5,d:\text5
    Else
         If>variable1=20
             copyfile>c:\text20,d:\text20
         endif
     endif
EndIf
[/code]
by pgriffin
Tue Jun 19, 2007 3:26 am
Forum: Technical / Scripting
Topic: Window title Separate by "x" oddity
Replies: 5
Views: 5673

I agree that this was tough one to spot, Good job!

This is another good reason to ALWAYS use longer variable names.

Use something like GetActiveWindow>ActiveWindow,X_Pos,Y_Pos

Single letter variables are trouble...
by pgriffin
Fri Jun 15, 2007 7:39 pm
Forum: Technical / Scripting
Topic: trap an error on movefile
Replies: 9
Views: 9173

try this:

let>PathAndFile=file_names_%k%
seperate>%PathAndFile%,\,segment
let>TheFile=Segment_%segment_count%
by pgriffin
Fri Jun 15, 2007 3:49 pm
Forum: General Discussion
Topic: encrypted chained macro fails to run
Replies: 9
Views: 10009

Thank you, Me_again! that is what I thought (and have experienced)...

I have also embedded passwords in an Access database which is password protected, then retreive the password with some vbscript which is run from a compiled macro.

A little more work, but that way the password is protected.
by pgriffin
Fri Jun 15, 2007 3:25 pm
Forum: General Discussion
Topic: encrypted chained macro fails to run
Replies: 9
Views: 10009

My mistake. I will test a few options and see what can be done.
by pgriffin
Fri Jun 15, 2007 1:58 pm
Forum: General Discussion
Topic: encrypted chained macro fails to run
Replies: 9
Views: 10009

Encrypted macros require the password to open the program, well before the MACRO_RESULT is populated. Would it be possible for you to encrypt the calling macro (the 'F9' macro) and place the password macro within a Subroutine (srt>) which is only called when needed? For sensitive data it may be a be...
by pgriffin
Fri Jun 15, 2007 1:18 pm
Forum: Technical / Scripting
Topic: Setting Focus and Getting Window Title
Replies: 4
Views: 5619

Any chance I can get a look at this app? If not, how about an on-line session so you can show me what you are dealing with?
by pgriffin
Fri Jun 15, 2007 3:05 am
Forum: Technical / Scripting
Topic: Setting Focus and Getting Window Title
Replies: 4
Views: 5619

Try using the GetControlText> command. GetControlText>WindowTitle,ClassName,Instance,Result where ClassName would be replaced by OTable GCT>WindowTitleGoesHere,OTable,1,HereIsYourAnswer where 1 means it is the first occurrence of such an object on the desktop. With this window open, View System Wind...
by pgriffin
Fri Jun 15, 2007 2:57 am
Forum: Technical / Scripting
Topic: trap an error on movefile
Replies: 9
Views: 9173

Aaron's method may work for you, but it assumes the file name is in WindowName. What sort of file are you moving? Text? If it is text, why not ReadFile>OldFile,TheFileText Writeln>NewFile,result,TheFileText then, possibly try to delete OldFile? Many possibilities, but it depends on the type of file ...
by pgriffin
Thu Jun 07, 2007 9:00 pm
Forum: Technical / Scripting
Topic: VBStart VBEnd Clarification and VBScript error
Replies: 3
Views: 5204

ReadFile>C:\BarcodeCreator\output.txt,testfile VBSTART Function StripNonAscii (rvntVal As Variant) Dim i Dim sTmp 'stubbed out to enable DBCS chars StripNonAscii = rvntVal Exit Function For i = 1 To Len(rvntVal) If Asc(Mid(rvntVal, i, 1)) 126 Then sTmp = sTmp & " " Else sTmp = sTmp & Mid(rvntVal, i,...
by pgriffin
Sun Jun 03, 2007 11:10 pm
Forum: Technical / Scripting
Topic: Read out Lines of a File and show it in a Dialog-combobox
Replies: 3
Views: 5231

I believe you should be able to do a readfile to create a variable which contains each line seperated by a CR/LF

then if you assign the variable to Dialog.ComboBox

like let>Dialog.SomeComboBox=Line1%crlf%line2%crlf%...etc....

Then ResetDialog, and go back to your GetDialogAction>
by pgriffin
Tue May 22, 2007 2:22 pm
Forum: Technical / Scripting
Topic: Date Difference
Replies: 11
Views: 12180

time to think about learning a bit of VBScript. DateDiff(interval, date1, date2 [,firstdayofweek[, firstweekofyear]]) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/fe4e5302-9602-4e0f-8496-559c7f58c8fa.asp I would "trust" vbscript to handle this type function. There w...
by pgriffin
Wed Apr 25, 2007 8:22 pm
Forum: Beginners
Topic: Need help automating screensaver choices
Replies: 4
Views: 5406

My guess would be to try using VBScript. You could call you VBScript from MacroScheduler, if you like.

This not an endorsement, but I have found useful VBScript here in the past.

http://www.visualbasicscript.com
Sign up to our newsletter for free automation tips, tricks & discounts