 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
marnicos1
Joined: 15 Oct 2007 Posts: 2
|
|
HELP ! WHY MY JOB WAITS I MOVE THE MOUSE TO CONTINUE?? |
|
Each time a macro is called, I have to move my mouse to continue, and no code was written to do that!
Please help, I can't go on programming as this problem is not resolved.
thanks
here it goes :
this is my macro
Keyboard(\wait(000321)\wait(000109)\enter )
and this is the code in job:
Dim macro_z_07, String
FileReadAll( "C:\\prueba\\trucho\\producto\\compra\\ASDOK\\4_saca.mcs", macro_z_07 )
MacroPlayBack( macro_z_07, 0, 1, true )
This problem appears sometimes only, it's amazing!! In fact, every time I try to find where it comes from, it seems to work but sometime later problem is steel there : ex: I plug another mouse in USB port, it works 2 times and then problem again, or I tape a stroke or open my cd writer and it doesn't wait any more!
I don't really understand at all. Is that enough info?
Thanks for your reply!
Nico
Last edited by marnicos1 on Mon Oct 15, 2007 4:29 pm; edited 1 time in total |
|
Mon Oct 15, 2007 2:49 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Hard to say what could be causing that without seeing your script or knowing what you are doing. Please post the actual macro so we can at least try to figure out what is going on. Make sure to indicate in which place it gets stuck, what happens before you move your mouse and after you move it..
|
|
Mon Oct 15, 2007 3:52 pm |
|
 |
marnicos1
Joined: 15 Oct 2007 Posts: 2
|
|
|
|
here it goes :
this is my macro
Keyboard(\wait(000321)\wait(000109)\enter )
and this is the code in job:
Dim macro_z_07, String
FileReadAll( "C:\\prueba\\trucho\\producto\\compra\\ASDOK\\4_saca.mcs", macro_z_07 )
MacroPlayBack( macro_z_07, 0, 1, true )
This problem appears sometimes only, it's amazing!! In fact, every time I try to find where it comes from, it seems to work but sometime later problem is steel there : ex: I plug another mouse in USB port, it works 2 times and then problem again, or I tape a stroke or open my cd writer and it doesn't wait any more!
I don't really understand at all. Is that enough info?
Thanks for your reply!
Nico
|
|
Mon Oct 15, 2007 4:31 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
This job and macro don't have much sense. In essence, the job loads macro file and runs it. The macro makes the job wait for 321 millisecond then wait again for 109 millisecond then shoot Enter key to whatever application currently has the focus. If focus is not on any button, this Enter keystroke has no effect. Since there are no checks for active applications or attempts to start a particular application, the result of this processing could be anything. You are lucky if the focus is not on some Windows shutdown button such as these appearing after various automatic software updates or antivirus updates.
What arte you trying to automate?
|
|
Mon Oct 15, 2007 5:05 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|