For closing jobs you have the option of paste insert in the list tab the jobs with the close flag to true and the closing date.
Ephraim Feldman
Programmer / Analyst
Axis Lighting
-----Original Message-----
From: "Kerry_Muntz" <kerry_muntz@...>
Sender: vantage@yahoogroups.com
Date: Mon, 14 Feb 2011 18:33:22
To: <vantage@yahoogroups.com>
Reply-To: vantage@yahoogroups.com
Subject: [Vantage] Re: AutoHotKey Experts?
Macros are not usually the first choice as a solution - but there is a place for them. There are some things that simply can't be easily done any other way. Like any tool - they are dangerous in the hands of someone who doesn't take the time to learn how to use them safely.
We don't run service connect. BPMs are very good.
For job closing in particular, what do you recommend Jose? I am always keen to use the most elegant solution possible
The plus for using an external macro, as that the actions taken mimic a real user - so there is no direct table maintenance (or damage!), and leave the same kind of footprint.
Written and run properly, a macro is just another Vantage user, behaving very consistently. I recommend you build a great deal of error checking into any code that's not going to be 100% supervised.
Todd, we use Mouse and Key Recorder (MKR) from kratronic.com for a lot of our macro requirements, including job closure. MKR is good because it's quick and easy to learn, and you can communicate directly with the developer.
For other activities that are going to be more 'embedded' in Vantage, we compile AutoHotKey (AHK) programs, and call them from customizations. Again, these must have many failsafes built in. AHK is free, and more powerful than MKR, but is better for someone with at least a tiny bit of programming experience.
Jason, AutoHotKey can read from text files too. (MKR can too, for that matter.)
I'd be happy to email any macros that'd help. I've written hundreds.
Kerry.
Ephraim Feldman
Programmer / Analyst
Axis Lighting
-----Original Message-----
From: "Kerry_Muntz" <kerry_muntz@...>
Sender: vantage@yahoogroups.com
Date: Mon, 14 Feb 2011 18:33:22
To: <vantage@yahoogroups.com>
Reply-To: vantage@yahoogroups.com
Subject: [Vantage] Re: AutoHotKey Experts?
Macros are not usually the first choice as a solution - but there is a place for them. There are some things that simply can't be easily done any other way. Like any tool - they are dangerous in the hands of someone who doesn't take the time to learn how to use them safely.
We don't run service connect. BPMs are very good.
For job closing in particular, what do you recommend Jose? I am always keen to use the most elegant solution possible
The plus for using an external macro, as that the actions taken mimic a real user - so there is no direct table maintenance (or damage!), and leave the same kind of footprint.
Written and run properly, a macro is just another Vantage user, behaving very consistently. I recommend you build a great deal of error checking into any code that's not going to be 100% supervised.
Todd, we use Mouse and Key Recorder (MKR) from kratronic.com for a lot of our macro requirements, including job closure. MKR is good because it's quick and easy to learn, and you can communicate directly with the developer.
For other activities that are going to be more 'embedded' in Vantage, we compile AutoHotKey (AHK) programs, and call them from customizations. Again, these must have many failsafes built in. AHK is free, and more powerful than MKR, but is better for someone with at least a tiny bit of programming experience.
Jason, AutoHotKey can read from text files too. (MKR can too, for that matter.)
I'd be happy to email any macros that'd help. I've written hundreds.
Kerry.
--- In vantage@yahoogroups.com, Jose Gomez <jose@...> wrote:
>
> No offence, but you may want to look at Service Connect / BPMs or other
> inside Vantage options. Using external program macros is never a good thing.
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
> <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
>
> *Quis custodiet ipsos custodes?*
>
>
>
> On Mon, Feb 14, 2011 at 12:22 PM, cubcrafters_it <
> jason.navarrete@...> wrote:
>
> >
> >
> >
> >
> > AutoIt may be a little stronger for this type of task, as it can natively
> > open a text file and read from it (also, I've used it more often than I
> > AutoHotKey). Either way, the Window Spy (or Window Info) tool is your
> > friend. It'll give you window and control information.
> >
> > I have, however, had trouble sending (ControlSetText or ControlSend)
> > directly to textboxes in Epicor, so I have to set focus and use good old
> > 'Send' to key in text.
> >
> > So the following is code from an AutoIt mindset, but it should apply
> > closely to AutoHotKey if that's more you're thing.
> >
> > Run MES, login, and set focus to the Employee ID field:
> >
> > Run("c:\client803\client\mfgsys.exe -MES /config=test.mfgsys",
> > "c:\client803\client")
> > ProcessWait("MfgSys.exe")
> > WinWait("Log On", "")
> > ControlFocus("Log On", "", "[NAME:txtUserID]")
> > Send("<USERNAME>")
> > ControlFocus ( "Log On", "", "[NAME:txtPassword]" )
> > Send("<PASSWORD>")
> > ControlClick("Log On", "", "[NAME:btnOK]")
> > WinWaitActive("MES Menu")
> > ControlFocus("MES Menu", "", "[NAME:txtEmployeeID1]")
> >
> > And of course, you can modify your config file to autologin instead of
> > trying to automate it, but this is just an example...
> >
> > As far as handling warning and error messages, you can use AdlibRegister to
> > try and catch error boxes, but of course it's trial and error in order to
> > weed them out.
> >
> > If anyone knows how to send keys directly to a field, I'd be curious to
> > know.
> >
> >
> > --- In vantage@yahoogroups.com, tgilbert@ wrote:
> > >
> > > If anyone has some sample code for using AutoHotKey for automation of
> > data entry tasks within Vantage, I'd really appreciate seeing it (no matter
> > how simple or complex).
> > >
> > > My first project is to launch Vantage, open Job Closing, and close jobs
> > from a list found on an external file.
> > >
> > > I've gotten as far as having it launch the System Login but I haven't
> > gotten the delay right to send over the UID and pwd. I also haven't figured
> > out the correct syntax to deal with Vantage Warning or Notification Windows
> > that open under certain conditions (presumably IfWinExist, IfWinActive).
> > >
> > > Any help is appreciated!
> > >
> > > Thanks,
> > > Todd Gilbert
> > > GCM, Inc.
> > > Vantage 6.1
> > >
> >
> >
> >
>
>
> [Non-text portions of this message have been removed]
>
[Non-text portions of this message have been removed]