Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

WinWait not working.


  • Please log in to reply
2 replies to this topic
armaldro
  • Members
  • 1 posts
  • Last active: Apr 09 2014 02:31 AM
  • Joined: 06 Mar 2014

I'm trying to get do up a script to press keys for me but currently I am unable to use winwait when a seperate Window appears.

In this software, I want to be able to open up the SD Card and choose a data I want.

1.Current I am unable to clikc (SD CARD) under the tab "File" (Used click as a replacement - welcome guidance and suggestions)

2. After SD card is pressed, a window will irregularly pop up within 3~5 second. Unable to get the key to wait for the window to appear then click or trigger the buttons.

 

{
Run E:\Program Files (x86)\Fluke\PowerLog 4.0\PowerLog.exe
{
WinWait, Power Log 4.0.2, , 20,
if ErrorLevel
{MsgBox, Loading exceed waiting time.
return
}
else
MsgBox, 4,, Proceed to saving data?
IfMsgBox No
MsgBox Operation Ended.
else
MsgBox Proceeding to saving data.
click 180,60
click 720,505
IfWinExist, FLUKE 430-II SD Card
{
WinActivate ; Automatically uses the window found above.
WinMaximize ; same
Control,check,, TCheckBox1
Control,check,, TCheckBox2
return
}
}



iSkilz
  • Members
  • 14 posts
  • Last active:
  • Joined: 15 Dec 2013
SetTimer, CheckForWindow, 250
Return

CheckForWindow:
; check once for window
; if window found
	; do action
Return


ethannivenl
  • Members
  • 4 posts
  • Last active: Apr 07 2014 04:57 AM
  • Joined: 05 Apr 2014

Thank you for sharing this. I will try this one.

 

 

 

 

 

steve barbarich