spewface

spewface

Joined Member # 2025939
0 Posts 0 Replies 77 Reputation

Firstly thanks for your replies... And you are correct (Sorry) I should have removed the wscript as it does give an error. Without it I do get funtionality as I originally described. Sorry I posted my "pure" VBscript. I think I owe you (thomassen) a beer as Object_OnLButtonUp(x,y) has resolved this issue for me. Thanks again. Just a note that I read a DX tutorial that mentioned that Sleep can cause DesktopX to hang. It recom

5 Replies 2,117 Views

Could someone please advise me on this script I just cannot get it to run correctly: Sub Object_OnStateChange(state) If state = "mouse down" Then set WshShell = Wscript.Createobject("Wscript.shell") WshShell.AppActivate "player" Wscript.Sleep 100 WshShell.sendkeys "{pgdn}" Wscript.Sleep 100 end if end sub Without the if state = line it will work as I pass over the button but I really need it to work on mouse

5 Replies 2,117 Views