I need some help, am I doing something wrong below?

; in a script called by ppBang
local hFocus=win.getfocus()
  win.sendmessage(win.handle("PowerPro Script Debug"),0x111,1,0) ;; step - working but steal focus
  ;keys {to ^PowerPro Script Debug}%s ;; step - working but steals focus
  ;keys {toany ^PowerPro Script Debug}{alt}s{alt} ;; step - not working
win.setfocus(hFocus)

hFocus doesn't regain focus. I tried two variations:
- win.restorefocus() before setfocus() and got a nested wait error
- wait.for(5000) before setfocus - and the ScriptDebug window performed the wait instead of by my script
(why?)

I also hooked this code to OnScriptDebug and unhooked it to see if it makes a difference, but it doesn't.


thanks



Attention: PowerPro's Web site has moved: http://www.ppro.org



SPONSORED LINKS
Computer monitoring software Power pro Computer and internet software
Free computer monitoring software


YAHOO! GROUPS LINKS




Reply via email to