AutoHotkey Community

It is currently May 26th, 2012, 11:10 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: November 4th, 2009, 5:30 pm 
I am super new to this and as a result am having issues with sporadically missing the lead characters when script options are selected. Thoughts on what I can change?

Code:
^+lbutton::
ClipMenu:
{
    If ( ! ClipMenu )
    {
        WinGet, Active_Window_ID, ID, A ; In case you need it later for some reason.
        Menu, mySnippetsMenu, Add, 01. LCS - PT DEATH , mySnippet_1 ; You can put each snippet in
        Menu, mySnippetsMenu, Add, 02. LCS - PT DEACTIVATION, mySnippet_2 ; a separate label like this...
        Menu, mySnippetsMenu, Add, 03. Patient Transfer, mySnippet_3 ; ...or, you can use one label using
        Menu, mySnippetsMenu, Add, 04. VA Patient Transfer, mySnippet_4 ; this method. #5 is not handled to
        Menu, mySnippetsMenu, Add, 05. Suspend Monitoring, mySnippet_5 ; demonstrate basic error handling.
   Menu, mySnippetsMenu, Add, 06. Health Following Physician (HFP) Removal, mySnippet_6
   Menu, mySnippetsMenu, Add, 07. New LPI Request, mySnippet_7
   Menu, mySnippetsMenu, Add, 08. LHFM Request - Clinician Caller, mySnippet_8
   Menu, mySnippetsMenu, Add, 09. LHFM Request – CRM Rep Caller, mySnippet_9
   Menu, mySnippetsMenu, Add, 10. Empty, mySnippet_10
   Menu, mySnippetsMenu, Add, 11. Empty, mySnippet_11
   Menu, mySnippetsMenu, Add, 12. SCR 42630 - Call Required, mySnippet_12
   Menu, mySnippetsMenu, Add, 13. SCR 42630 - No Call Required, mySnippet_13
   Menu, mySnippetsMenu, Add, 14. SCR 51835 - YA Fax, mySnippet_14
   Menu, mySnippetsMenu, Add, 15. SCR 51835 - Notification Complete, mySnippet_15
   Menu, mySnippetsMenu, Add, 16. LPI Team Only - Scheduling Activity, mySnippet_16
   Menu, mySnippetsMenu, Add, 17. LPI Team Only - Config File Activity, mySnippet_17
   Menu, mySnippetsMenu, Add, 18. LPI Team Only - Install Complete Activity, mySnippet_18
   Menu, mySnippetsMenu, Add, 19. LPI Team Only - Renewal Complete, mySnippet_19
   


        ClipMenu := True
    }
    Menu, mySnippetsMenu, Show, %A_CaretX%, %A_CaretY% 
}
Return

mySnippet_1:
{
    ; Do whatever here.
    SendInput Per CAM ______________ deactivate patient{enter}DOD:{enter}No Product Allegation or Conferenced Tech Services{enter}Reports Complete: Y or N{enter}Label only{enter}No Box or Label{enter}Box and Label{enter}Advocate First and Last Name:{enter}Address:{enter}Phone Number:

}
Return

mySnippet_2:
{
    ; Do more stuff here.
    SendInput Per CAM ______________ deactivate patient{enter}Label only{enter}No Box or Label{enter}Box and Label{enter}


}
Return

mySnippet_3:
{
    ; Do more stuff here.
    SendInput Call started as deactivation: Y or N{enter}FROM:{enter}Account name SAP {#}{enter}TRaC ID Name{enter}CAM approval by ____________{enter}Alert Status __________{enter}TO:{enter}Account name SAP{#}{enter}TRaC ID Name{enter}CAM approval by ____________{enter}


}
Return

mySnippet_4:
{
    ; Do more stuff here.
    SendInput VA Pacemaker Surveillance Center 41239{enter}TRaC ID Name (example: APM00121 Cleveland VA){enter}Per approval of ____________ (HCP) on behalf of Len Roberts (CAM)


}
Return

mySnippet_5:
{
    ; Do more stuff here.
    SendInput Please suspend Monitoring.{enter}Discussed with CAM ____________________{enter}Call started as deactivation:  Y or N{enter}New physician/clinic unknown{enter}New physician/clinic is not enrolled in LATITUDE{enter}Clinic request pt removed from APP – obtaining pt transfer approval from new clinic{enter}Please deactivate after 90 days{enter}Label only{enter}Box and Label{enter}No Box or Label{enter}

}
Return

mySnippet_6:
{
    ; Do more stuff here.
    SendInput Per CAM ______________ remove HFP


}
Return

mySnippet_7:
{
    ; Do more stuff here.
    SendInput Get Connected II or III – Y or N{enter}{enter}IT Contact: {enter}Phone number: {enter}Email Address: {enter}{enter}CAM Contact: {enter}Phone number: {enter}Email Address: {enter}

}
Return

mySnippet_8:
{
    ; Do more stuff here.
    SendInput Implanting Hospital:{enter}Cuff Size:{enter}Patient Address Confirmed:{enter}Name of Rep:



}
Return

mySnippet_9:
{
    ; Do more stuff here.
    SendInput Implanting Hospital:{enter}Cuff Size:{enter}Patient Address Confirmed:{enter}Does the hospital bulk?{enter}Was it billed at implant?/PO {#}:



}
Return

mySnippet_10:
{
    ; Do more stuff here.
    SendInput Blank

}
Return

mySnippet_11:
{
    ; Do more stuff here.
    SendInput Blank


}
Return

mySnippet_12:
{
    ; Do more stuff here.
    SendInput Patient impacted by SCR 42630, spreadsheet attached.  (insert notes regarding delivery to rep and clinic)

}
Return

mySnippet_13:
{
    ; Do more stuff here.
    SendInput Patient impacted by SCR 42630, no call to clinic or rep necessary.  Spreadsheet attached.

}
Return

mySnippet_14:
{
    ; Do more stuff here.
    SendInput LLS prepare and send missed YA fax; see attached spreadsheet

}
Return

mySnippet_15:
{
    ; Do more stuff here.
    SendInput Updated working doc to indicate notification is complete.  Closing SR.


}
Return

mySnippet_16:
{
    ; Do more stuff here.
    SendInput Tier 2 – Please generate cert for install schedule for (date and time){enter}{enter}-Webex meeting notice sent - Y or N{enter}-Cert Ordered - Y or N{enter}-Pen Drive sent - Y or N{enter}(list alternate shipping address if there is one){enter}-Clinic Activated - Y or N{enter}{enter}Spoke with IT <Name> to schedule install


}
Return

mySnippet_17:
{
    ; Do more stuff here.
    SendInput Config files created and emailed with cert to IT <name>

}
Return

mySnippet_18:
{
    ; Do more stuff here.
    SendInput - Install completed.{enter}- IT Contact added and EMR tab updated.{enter}- Log files received and attached to SR.{enter}- Rep <name> and Regional LCS agent notified install complete.{enter}{enter}Install start time:{enter}Install stop time:{enter}Local System or Admin Acct used{enter}Installed on workstation or server{enter}Spoke with <Name> at Paceart to verify Pt transfer

}
Return

mySnippet_19:
{
    ; Do more stuff here.
    SendInput Tier 2 - New certificate has been installed.  Please revoke old security certificate.{enter}{enter}Installed the new certificate with IT <Name>. Attached UEMR & LPI configuration and log files to SR.

}
Return


F12::
  FormatTime, Time,, M/dd/yy hh:mm tt -
Sendinput %Time%
Return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 4th, 2009, 5:34 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Look at setkeydelay it might help, or simply use
Code:
clipboard=texttosend ; easy to change in your script
Send ^v ; paste text, it will be faster + you won't miss any characters I'm sure
If you want restore the original clipboard read the clipboard doc file for an example on how to do that.

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], joetazz, JSLover, rbrtryn, Tipsy3000, WillTroll and 60 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group