K well Im not sure if this is really a bug or what but whenever i try using RunWait in any of my scripts while using windows 7, it seems there is no effect and it just continues going through the script rather than waiting for the program it launched to close. Ive done a few testing on other things and now this is just starting to become bothersome..... Is there another way to emulate a runwait that will actually do what it is supposed to and can anyone else confirm this?
RunWait continues to run script even if target is open(Win7)
Started by
mexicanguy
, Aug 05 2010 08:43 PM
5 replies to this topic
#1
mexicanguy
Posted 05 August 2010 - 08:43 PM
#2
mexicanguy
Posted 05 August 2010 - 08:54 PM
k well this RunWait not waiting only seems to happen with executables.... never really had this happen before and Im not sure as to why its doing it. Is it possible there are other processes spawning? But ive had scripts that opened these executables before with no problems and the RunWait seems to work as it should on Windows Xp but not Windows 7.
#3
Guests
Posted 06 August 2010 - 09:50 AM
Test script...
DetectHiddenWindows, On Tooltip, Test 1: Running...RunWait`, Notepad SetTimer, GetPN, -19 ts_begin:=A_TickCount RunWait, Notepad, , , pid ts_end:=A_TickCount ms:=ts_end-ts_begin msgbox, 64, , Test 1 Done!`n`npid(%pid%)`npn(%pn%)`n`nProgram was closed in %ms%ms Tooltip, Test 2: Running...RunWait`, cmd /k echo Close this window SetTimer, GetPN, -19 ts_begin:=A_TickCount RunWait, cmd /k echo Close this window, , , pid ts_end:=A_TickCount ms:=ts_end-ts_begin msgbox, 64, , Test 2 Done!`n`npid(%pid%)`npn(%pn%)`n`nProgram was closed in %ms%ms return GetPN: WinGet, pn, ProcessName, ahk_pid %pid% returnYou could try Process, WaitClose, but you might wanna make sure nothing is weird on your system. Do you know how to use Process Explorer to watch the processes starting up? Any other Win7ers to confirm this?
#4
Posted 06 August 2010 - 04:43 PM
Can't reproduce here.
Windows 7 Home Premium 64-bit.
Windows 7 Home Premium 64-bit.
#5
mexicanguy
Posted 07 August 2010 - 08:43 AM
K well i found a way to get what i want but I guess so everyone knows I'm using a Toshiba Netbook that has Windows 7 Starter. Yeah I know sorta how to use Process Explorer and I saw nothing else come up and not sure why this happens on my computer. But hopefully it can be looked into and maybe others are experiencing what I am?
#6
Guests
Posted 07 August 2010 - 09:28 AM
...it can be looked into if you do testing. Not that it's complete or bulletproof, but did you run the test script? What were your results?But hopefully it can be looked into...




