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.
Search found 431 matches
- 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
- Fri Jul 13, 2007 1:10 am
- Forum: Technical / Scripting
- Topic: SetControlText> issue
- Replies: 6
- Views: 6537
- 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
- Tue Jun 19, 2007 3:26 am
- Forum: Technical / Scripting
- Topic: Window title Separate by "x" oddity
- Replies: 5
- Views: 5673
- Fri Jun 15, 2007 7:39 pm
- Forum: Technical / Scripting
- Topic: trap an error on movefile
- Replies: 9
- Views: 9173
- Fri Jun 15, 2007 3:49 pm
- Forum: General Discussion
- Topic: encrypted chained macro fails to run
- Replies: 9
- Views: 10009
- Fri Jun 15, 2007 3:25 pm
- Forum: General Discussion
- Topic: encrypted chained macro fails to run
- Replies: 9
- Views: 10009
- 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...
- Fri Jun 15, 2007 1:18 pm
- Forum: Technical / Scripting
- Topic: Setting Focus and Getting Window Title
- Replies: 4
- Views: 5619
- 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...
- 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 ...
- 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,...
- 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
- 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...
- 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
This not an endorsement, but I have found useful VBScript here in the past.
http://www.visualbasicscript.com