IECreate>IE[0]
IENavigate>IE[0],http://#####.com,res
Let>sk_delay=200
wait>3
IEGetURL>IE[0],currURL
IETagEventByAttrib>currURL,INPUT,ID=upload-file,click,
wait>1
SendText>E:\Desktop\#####
Press enter
Everytime this window pops up my macro scheduler stops worki
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Everytime this window pops up my macro scheduler stops w
What's happening here is that the window is opening WITHIN the click event. IETagEventByAttrib will not return until the click event completes. So unfortunately it won't return until the window is closed and that means the user or some other process needs to close it.
You could use a different method to "click". One way would be to focus the element instead and then send a keystroke. Or use IEGetTagpos to get the position and then send a mouse click. Or use image recognition and/or keystrokes to simulate clicking the button etc.
Or create a compiled macro which waits for this window and then enters filename and hits Enter and then exits. Run this .exe asynchronously using the Run command just before you do your IETagEventByAttrib.
You could use a different method to "click". One way would be to focus the element instead and then send a keystroke. Or use IEGetTagpos to get the position and then send a mouse click. Or use image recognition and/or keystrokes to simulate clicking the button etc.
Or create a compiled macro which waits for this window and then enters filename and hits Enter and then exits. Run this .exe asynchronously using the Run command just before you do your IETagEventByAttrib.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?