i need to add something to my macro so if there is no mouse movement for 10 seconds it ends the current macro and runs a different one...is that possible?
in other words i have "Macro" and "Macro1" and i need to have... for example, if no mouse movement for 10 seconds end "Macro" and run "Macro1"...can anyone help?
I personally have never tried this before, so I don't think I could be of any help on this subject but I set the macro in that post up into a file because I was bored. You can probably mess with the times given and get it to work with your macro. Since none of us can see the macro your working on.
just download the .qml posted by QM Assistant, and add the the out to Macro Stop then hit play and move the mouse around until you feel like stopping then it should put the out put in after 10 sec of mouse idle
i think u guys may have missed what i needed lol...i need something to add to my macro to make it so if the mouse does not click for 10 seconds it ends the macro and runs a different macro...can u help plz? ty
Quote:i learned something new lol out # works dont know that i would ever use it lol
lol, don't we all.
Quote:i think u guys may have missed what i needed lol...i need something to add to my macro to make it so if the mouse does not click for 10 seconds it ends the macro and runs a different macro...can u help plz? ty
ok...i dont think this works how i want it to lol...so if i have this and i run a macro and it does not click somewhere for 10 seconds it will end the macro and run the next one?
;Waits until mouse movement begins.
;Returns 1 if movement began, 0 if not.
;maxWaitTime - number of seconds to wait. Default or 0 - infinite.
int wt=maxWaitTime*1000 int t1=GetTickCount POINT p p0 xm p0 rep ,0.05 ,xm p ,if(memcmp(&p &p0 sizeof(POINT))) ret 1 ,if(wt and GetTickCount-t1>=wt) ret
;idleTime - number of seconds mouse must be not moving.
POINT p pp int i t0 it=idleTime*1000 xm pp rep ,0.05 ,xm p ,if(memcmp(&p &pp sizeof(POINT))) i=0 ,else if(!i) i=1; t0=GetTickCount ,else if(GetTickCount-t0>=it) ret ,pp=p