Link to home
Start Free TrialLog in
Avatar of allllec
allllec

asked on

Macros

Hay im very new to macros, but basacly i want an app that will make em and run them easy,

idealy i want a program that is visual and can perfome/make mouse actions ie drag icons from one windows explorer to another, please help :s

cheers

allllec

as i said im new so in easy-english please
ASKER CERTIFIED SOLUTION
Avatar of Kipski
Kipski

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of allllec
allllec

ASKER

looking up on it now, looks good, quickest answer ive ever had :D, get back to ya shortly
Avatar of allllec

ASKER

thats pritty damn good put im having problems, like how do i do click and drag operations? i was trying to use the roboscripter, is that right?
If you open WinMacro, from the Winbatch Popup menu (an owl Icon near the clock)  you yave the option to record macros based on keystrokes or mouse movement....

If you record an Icon bring clicked and dragged, that is what will happed when you run it....
The trouble with Macros is that the starting point for running your Macro must be either precisely defined, or you make sure that the Macro copes with every starting eventuality.  
With Winbatch you do have a modicum of control...  Maybe not with moving an icon, obviously if it is not where it is supposed to be, the macro will produce strange results, because the macro will run anyway....  But, If the macro is to perform a standard task on a static object, you can Schedule the task specifically using windows, you run the macro as a service...

Say you want to copy files to a directory, open an application to do a standard, regularly performed activity...  No problem...  Basically, it is the repetition of a task that lends itself to the batch genre....

Batch files can be very useful, in their place, but if the action is critical or likely to produce unexpected results, think carefully about using a more programming oriented approach (VB, VC++) (^_^)

Or come back and ask if you are not sure :):):)
Avatar of allllec

ASKER

im getting the hange of it, ill give it a few hours see if theres anything better then teh points are ye's! :D

cheers
Avatar of allllec

ASKER

oh just one quick question how would i get it to repeat this macro over and over again?
You can either get it to operate on a timing basis, i.e. every 5/10/15/etc mSecs/Secs/Mins/etc the macro will execute, or you can just create a loop.....  A loop is an operation that is itterated(looped/repeated) an unknown/known or infinate number of times, depending on your requirements....

There are loads of examples for most tasks you will want to perform on the WinBatch website, it can actually do quite a lot :):)
Avatar of allllec

ASKER

thanks alot man, wheres that timing option? once you tell me this ill accept your first answer :D

cheers for ya help made my life bit easyer :)
You could try something like this...

This demonstrates how to create a loop, and also how to use timings, you should be able to adapt this and the concept to do what you need...

While timer < goal
   remain = goal - timer
   WinTitle("Notepad","Notepad (%remain% Seconds remaining)")
   TimeDelay[10]
   timer = timer + 10
EndWhile

You need to specify what value goal has, but this basically starts at the While statement, if timer is less than goal, it executes until the EndWhile statement, then sees if timer is still less than goal, this loop repeats until timer >= goal....

The titlebar displays the number of remaining seconds, TimerDelay[10] specifies the length of the delay in execution, play with the settings to familiarise yourself with them...

I am not sure if you can use code like this in WinMacro, you may need to use the main WinBatch program and call your WinMacro...

e.g.

WinBatch

   While something
      call WinMacro
      TimeDelay[XX]
   EndWhile


Cheers....