| Author |
Message |
TryinToGetPaid Has No Friends

Age: 22 Gender:  Posts: 4376 Joined: 18 Jun 2006 Location: Louisiana
Karma: 109 Trade Record: 21
|
Posted: Tue Aug 12, 2008 12:20 pm Post subject: Calling all Computer Wizards!!!!! |
|
|
Got a spreadsheet. Contains Usernames, First Names, Last Names, Middle Initials. I want to run a macro (Mouse and Key Recorder) to type in this stuff into our EMR program.
So I have the script for the macro which I will post. But is there any way I can easily take this list of 400 users and get it to blow into the macro code. Like John A Smith have his info blown in and then the next person in line into the same code? Possible? No? Depending on the amount of work involved, I may dish out some money. That is right REAL DAMN MONEY!
Macro Code
jma55 (Username)
{ENTER}
{ENTER}
{TAB}
{TAB}
Jeremiah (1st Name)
{TAB}
M (MI)
{TAB}
Abue MD (Last name + Title)
{TAB}
{TAB}
{TAB}
{TAB}
{TAB}
{TAB}
{TAB}
DCM (initals)
{TAB}
Y
{TAB}
^c
{{Mouse 1, 1, 871, 9, 0
^v
{DOWN}
{{Mouse 1, 1, 564, 761, 0
{TAB}
{TAB}
{TAB}
{TAB}
S
{F9}
{DOWN}
{DOWN}
{ENTER}
{{Mouse 1, 1, 804, 184, 0 |
|
| Back to top |
|
 |
TryinToGetPaid Has No Friends

Age: 22 Gender:  Posts: 4376 Joined: 18 Jun 2006 Location: Louisiana
Karma: 109 Trade Record: 21
|
Posted: Tue Aug 12, 2008 12:21 pm Post subject: |
|
|
| PS. I am an idiot. Move to T-T-T-T-Tech Myself if needed. |
|
| Back to top |
|
 |
dmorris68 FiPG Coder
 FiPG Admin

Posts: 8326 Joined: 09 Mar 2005
Karma: 359 Trade Record: 30
|
Posted: Tue Aug 12, 2008 12:33 pm Post subject: |
|
|
Quick and dirty method: write an Excel VBA macro that reads the list from one sheet, and dumps the macro code for each person line-by-line on another sheet. Then export that sheet as a text file to feed into your macro program. Off the top of my head I think that should work.
You might also check out AutoHotKey. It's free and scriptable to do all sorts of automation. Don't know if it's better/worse than the one you're using, but it's popular in the online poker community for modding/automating poker client software.
Last edited by dmorris68 on Tue Aug 12, 2008 12:36 pm; edited 2 times in total |
|
| Back to top |
|
 |
TryinToGetPaid Has No Friends

Age: 22 Gender:  Posts: 4376 Joined: 18 Jun 2006 Location: Louisiana
Karma: 109 Trade Record: 21
|
Posted: Tue Aug 12, 2008 12:35 pm Post subject: |
|
|
Yeah I think thats my option.
Do you know of a way to take say a text field with abc123 and format it to only show the abc part? (Something that would just delete the numbers) DONE with WORD.
And what is the easiest way to attach MD to 400 last names? Replace is not working.... |
|
| Back to top |
|
 |
dmorris68 FiPG Coder
 FiPG Admin

Posts: 8326 Joined: 09 Mar 2005
Karma: 359 Trade Record: 30
|
Posted: Tue Aug 12, 2008 12:48 pm Post subject: |
|
|
| TryinToGetPaid wrote: |
| Do you know of a way to take say a text field with abc123 and format it to only show the abc part? (Something that would just delete the numbers) |
Should be easy with a string parsing/replacement function or two in VBA. Just index over the string until you reach a non-alpha character, then substring from the beginning to that index.
| TryinToGetPaid wrote: |
| And what is the easiest way to attach MD to 400 last names? Replace is not working.... |
I don't think Excel's standard replace is sophisticated enough to use something like regular expression replacements, so outside of exporting the data to something that can do that, then re-importing, you could write a VBA macro for that too. Or just include it in the VBA macro you're writing to generate the macro code. |
|
| Back to top |
|
 |
TryinToGetPaid Has No Friends

Age: 22 Gender:  Posts: 4376 Joined: 18 Jun 2006 Location: Louisiana
Karma: 109 Trade Record: 21
|
Posted: Tue Aug 12, 2008 1:09 pm Post subject: |
|
|
| I think I got it. Dmo. You rock. And YAY for automated working. It works, I sleep and earn cash. |
|
| Back to top |
|
 |
JKirk ZeroPricetags Owner

Gender:  Posts: 2556 Joined: 22 May 2005
Karma: 161 Trade Record: 73
|
Posted: Sat Aug 16, 2008 3:31 pm Post subject: |
|
|
YAYYYYYY
 |
|
| Back to top |
|
 |
|