ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Skrommel's Software

Way to make DoOver loop?

(1/1)

strathadam:
Just wondering if there's a command that can be put in the .ini file for DoOver to make it loop (either continuously or for a set number of times)?

skrommel:
 :) No, but that's a great addition!

Skrommel

vixay:
any suggestions on how to do this?
Here's my idea

--- --- ;Popup Question how many times
 ; or get value from .ini file, I don't know how
 ;SYNTAX: InputBox, OutputVar [, Title, Prompt, HIDE, Width, Height, X, Y, Font, Timeout, Default]
 InputBox, UserInput, Repeat, Please enter the number of times to repeat.
 ;Error check UserInput...
Loop UserInput{
 ;DoOver Macro
}
/comment The code formatting really sucks! somebody should fix that! in the forum template...

vixay:
I wanted that functionality... so here's what i did before seeing the above post of course (doh i realized i had posted the code above! sheesh!.... i had searched for this earlier but hadn't found it, and today i absolutely wanted it! (had to run 30 odd times) so i figured i'd modify the script (even though I've never written in AHK before, though i am a programmer)...

my way is clunky,
I just added a new variable "repeatnum" in the .ini file, it defaults to 1
and the code checks to make sure it is between 1 - 100 (since currently i don't know if there's a way to quit in between!)

anyway look at the attached script

vixay:
Ahem...
Well then, seeing that my previous version sucked...
I have written a newer version with HOTKEY support (LCTRL + F6)
and a popup inputbox...
this is inline with my original idea...

here's the workhorse bit, (there's other integration stuff around)

--- ---; ===BEGIN=== Additions by Vixay ===11/7/2006===
VXREPEAT:
; Popup Question how many times
; or get value from .ini file,
;SYNTAX: InputBox, OutputVar [, Title, Prompt, HIDE, Width, Height, X, Y, Font, Timeout, Default]
 InputBox, repeatnum, Repeat, Please enter the number of times to repeat (between 1 & 100).,,,,,,,,%repeatnum%
;Error check UserInput...
if repeatnum not between 1 and 100
{
MsgBox,0,Invalid Number,Invalid number given, aborting repeat playback.
Return
}
 ;MsgBox,0,RepeatNum & UserInput, %repeatnum%`n%UserInput% ;For Debugging purposes
Loop %repeatnum%{
 ;DoOver Macro
 Gosub,MACROPLAY
 sleep, 100
}
Return
; ===END=== Additions by Vixay ===11/7/2006===
I've uploaded the new modified version.

However, the one above & this one implement the features differently, just be aware of that...

I have experienced a little problem with this version in that, the mouse doesn't jump exactly where its supposed to! (don't know why)... though exiting and reloading usually works...

BTW to use this version you have to delete your existing DOOver.ini or copy this script into a new folder...
hmmm... maybe i should rename the INI too? Ok give me a sec..... alright done... so this version and old doover can coexist...

Navigation

[0] Message Index

Go to full version