topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 5:31 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: IDEA: micro macro  (Read 25271 times)

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
IDEA: micro macro
« on: October 10, 2008, 03:00 PM »
I need to record and play a macro, but all the programs I have found (many!) can do way too much for my need, and will confuse me more, than help me. I only need this one 'Windows Media Player 11' "next >"-button to be clicked every twentieth second for maybe half a day. That's all. Like a micro-"ClickOff"

Any ideas to make my little idea grow a lot more useful?
« Last Edit: October 10, 2008, 04:50 PM by Curt »

Darwin

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,984
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #1 on: October 10, 2008, 03:23 PM »
Sounds like it might be a coding snack challenge for skrommel...

Or if you want to try this yourself, have you looked at AceMacro?
« Last Edit: October 10, 2008, 03:24 PM by Darwin »

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #2 on: October 10, 2008, 04:01 PM »
Darwin: there isn't much information about acemacro on the page you linked, and apparently the owner site of acemacro is down :(

Darwin

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,984
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #3 on: October 10, 2008, 04:13 PM »
Weird - it seems to be working here. I should clarify that I haven't tired AceMacro...

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #4 on: October 10, 2008, 04:17 PM »
Hey, it's working now here also! Strange :)

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #5 on: October 10, 2008, 04:47 PM »
I did try AceMacro before I posted, and I really don't like it - I don't think the author ever tried to finish it. My major problem with it is that I can't make it understand that the mouse not is to be be moved from somewhere (a) to somewhere else (b), but should stay at a. Of course the problem could be me and not the program, but the result is the same, isn't it. Anyway, I also tried MacroExpress, but it is far too complicated for me. I will have to study at uni before I can figure out how to handle such an expert. And in general all experts are too complicated for me, and the uni won't have me!

I need a VERY simple 'auto-clicker'.
« Last Edit: October 10, 2008, 04:56 PM by Curt »

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #6 on: October 10, 2008, 05:46 PM »
Click this WMP button every 20'th second:

wmbutton.gif


That's it.

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #7 on: October 10, 2008, 05:56 PM »
Curt: see if this will do it for you:

loop
{
sleep,20000
send,{media_next}
}

I didn't use the "click button" method, because that would require the window to be open, and to be the foreground window. So, I just made it send the "media next" keypress instead. It should acomplish pretty much the same.

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #8 on: October 10, 2008, 06:00 PM »
- so I guess I will have to close down AIMP2 when I am using pressnext for WMP??

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #9 on: October 10, 2008, 06:03 PM »
Oh.. I hadn't thought you might have another player open.

I could make it so that it clicks the button every 20 seconds, but then you couldn't use the mouse..

Maybe someone more knowledgeable should step in :) (skrommel? :D)

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #10 on: October 10, 2008, 06:23 PM »
- so I guess I will have to close down AIMP2 when I am using pressnext for WMP??
- yes, that is the price. A terrible high cost!  :o   :P

The situation is that I have downloaded a couple of thousand DRM protected music files that each need to be activated online, in order to be played without any hassle. It is unbearable to have to use the mouse several times for each and every track, so I wanted to automate the procedure, and also to make it happen in a hurry - hence the twenty seconds. The reason I am using was trying to use AIMP2 at the same time is of course that it is NOT nice to listen to ten-seconds clips all the time...., and with two players at the same time I was hoping just to turn down the sound for WMP, and listen to AIMP2. But I guess I will survive a little silence!

Thanks a lot, jgpaiva, it's working exactly as I asked for.  :Thmbsup:
« Last Edit: October 10, 2008, 06:37 PM by Curt »

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: IDEA: micro macro
« Reply #11 on: October 10, 2008, 07:16 PM »
 :) If you have programmed your media button for something else...

Skrommel

;NextWmp.ahk
;Skrommel @ 2008

Loop
{
  PostMessage,0x111,18811,0,,ahk_class WMPlayerApp
  Sleep,20000
}

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #12 on: October 11, 2008, 04:35 AM »
 ;D
I knew skrommel would come around with a great solution  :Thmbsup:

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #13 on: October 11, 2008, 05:38 AM »
Thanks a lot, skrommel - again again!  :up:

bft_chromeguy

  • Participant
  • Joined in 2008
  • *
  • Posts: 15
    • View Profile
    • Bugfree Technologies
    • Donate to Member
Re: IDEA: micro macro
« Reply #14 on: October 26, 2008, 08:07 PM »
If you decide you need more power, try GhostMouse. It can record mouse movement & clicks, and play them back.
http://www.bugfreetech.com - come visit my site

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #15 on: October 27, 2008, 04:47 PM »
Curt: see if this will do it for you:

@jgpaiva
I have created myself yet another problem. I was so pleased with the selection of music files I was offered, that my drm protected collection now is 12.000+ files - which ALL need to be activated one by one!!!

Can you make the file wait 10 seconds, instead of 20, please?
12.000 x 10 seconds = 33.3  hours  less!  ;)

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #16 on: October 27, 2008, 06:02 PM »
@curt: don't you prefer skrommel's version? All you need to do is change the 20000 to 10000 :) (it's in milliseconds, so, 10*1000)

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #17 on: October 28, 2008, 04:56 AM »
- skrommel's version doesn't work  :o
... when WMP is minimized to the special task bar version:

10seconds.gif


jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #18 on: October 28, 2008, 05:01 AM »
Oh, ok :)
But if my version works, you only have to change the 20000 to 10000 and you should be ok!

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 3,199
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #19 on: October 30, 2008, 04:54 AM »
Probably too late to the party, but even the last free version of PTFB appears to do this.  At least, it's in the docs of v.1.06.3.1.  I haven't tried it as I'm on PTFT Pro (shareware) now.  Might also be worth trying WinMacro, freeware and very small, but I haven't tried that either.  You have to open WinMacro's Options screen, where it gives you the ability to set a number of repetions.  The box will hold nine digits, which should be plenty...  WinMacro is mentioned on The Portable Freeware Collection.


« Last Edit: October 30, 2008, 05:07 AM by rjbull »

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #20 on: November 02, 2008, 08:09 AM »
I have found a much easier way! The trick is to use WinAmp, somehow it will activate the tracks without asking me anything!  :up:  But still I need to click "Next" every seven, eight or ten seconds, or so. Can anyone tell me how to chnange skrommel's version from Win MediaPlayer into WinAmp 5.5 Pro, please?



Oh, ok :)
But if my version works, you only have to change the 20000 to 10000 and you should be ok!
ehmm... you probably forgot you compiled it to be an exe file, and not an ahk?   ;-)
- but your version works with every media player.  :up:
« Last Edit: November 02, 2008, 08:13 AM by Curt »

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #21 on: November 02, 2008, 08:50 AM »
Curt: as you mentioned skrommel's version didn't work with media player minimized, I thought you were able to use it in ahk form.

I can't modify skrommel's version to use winamp, but if you change the shortcut for "next" in winamp to ctrl+alt+shift+n (options -> preferences -> global hotkeys: select "enable", and select action as "playback : next in playlist", then select the "hotkey" box and press ctrl+alt+shift+n, and then press "add"), the following will work:

loop
{
sleep,10000
send,^!+n
}
(compiled version attached to this post)

PS: sorry for not finding a simpler solution for this  :-[

scancode

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 641
  • I will eat Cody someday.
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: micro macro
« Reply #22 on: November 02, 2008, 08:54 AM »
I made a Winamp-specific thingy, doesn't need to change shortcuts or anything.

winamp.PNG

Binary and VB6 source:

NEW v1.1
* added pause button, and fixed a little scrollbar button

winampv11.PNG

Binary and VB6 source:


Hope you like it.
« Last Edit: November 02, 2008, 11:26 AM by scancode »

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #23 on: November 02, 2008, 08:55 AM »
Cool, scancode! I knew there should be a better solution for this :)
Now that's the spirit :)

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
Re: IDEA: micro macro
« Reply #24 on: November 02, 2008, 10:53 AM »
I made a Winamp-specific thingy, doesn't need to change shortcuts or anything.

- wow, Matias, what a fine solution!  :up:

Thanks!!   :)

Edited:
will it take much to give it a pause / disable -button, please?
« Last Edit: November 02, 2008, 10:59 AM by Curt »