to paste the code section, it's
[ code ]
;some code here
[ /code ]
I see you can do some cleanup on your send commands.
EDIT: Here's the condensed reformatted version. You might add 'pause' before each winwait, so you can check it's reactions one block at a time. I don't have any test data to work with, nor do i have excel. So I cannot test this right now.
Code:
#z::
;Winwaits indented for readability, way too many of them in my opinion.
WinWait, Microsoft Excel,
IfWinNotActive, Microsoft Excel, , WinActivate, Microsoft Excel,
WinWaitActive, Microsoft Excel,
Send, {F2}{HOME}+{RIGHT}^c{TAB}{DOWN}^v{UP}{LEFT}{F2}^+{LEFT}^c{TAB}{DOWN}{F2}^v{ENTER}=upper({UP}){ENTER}{UP}^c{UP 2}{APPSKEY}s
IfWinExist Paste Special
{
WinActivate
} else {
Send {ENTER}
}
IfWinNotActive, Paste Special, , WinActivate, Microsoft Excel,
WinWaitActive, Paste Special,
Send, {DOWN 2}{TAB 4}{SPACE}
WinWait, Microsoft Excel,
IfWinNotActive, Microsoft Excel, , WinActivate, Microsoft Excel,
WinWaitActive, Microsoft Excel,
Send, {DOWN}{DEL}{DOWN}{DEL}{UP 2}{RIGHT 3}^;
Send, {TAB 2}WINTER01{TAB}{LEFT 6}^c!{TAB}
WinWait, http://,
IfWinNotActive, http://, , WinActivate, http://,
WinWaitActive, http://,
Send, ^v!{TAB}
WinWait, Microsoft Excel,
IfWinNotActive, Microsoft Excel, , WinActivate, Microsoft Excel,
WinWaitActive, Microsoft Excel,
Send, {LEFT}^c!{TAB}
WinWait, http://,
IfWinNotActive, http://, , WinActivate, http://,
WinWaitActive, http://,
Send, {TAB}^v!{TAB}
WinWait, Microsoft Excel,
IfWinNotActive, Microsoft Excel, , WinActivate, Microsoft Excel,
WinWaitActive, Microsoft Excel,
Send, {TAB 6}^c!{TAB}
WinWait, http://,
IfWinNotActive, http://, , WinActivate, http://,
WinWaitActive, http://,
Send, {TAB}^v{TAB}^v{TAB 2}!{TAB}
WinWait, Microsoft Excel,
IfWinNotActive, Microsoft Excel, , WinActivate, Microsoft Excel,
WinWaitActive, Microsoft Excel,
Send, {HOME}^c!{TAB}
WinWait, http://,
IfWinNotActive, http://, , WinActivate, http://,
WinWaitActive, http://,
;raw for safety.
Send, {raw}%clipboard%
WinWait, Windows Internet Explorer,
IfWinNotActive, Windows Internet Explorer, , WinActivate, Windows Internet Explorer,
WinWaitActive, Windows Internet Explorer,
Send, {ENTER}
WinWait, http://,
IfWinNotActive, http://, , WinActivate, http://,
WinWaitActive, http://,
Send, {TAB 2}{DOWN 5}
MsgBox, 4, , Is everything entered in UltraPoS correctly including %clipboard% as the mall name?
IfMsgBox, No
return
WinWait, http://,
IfWinNotActive, http://, , WinActivate, http://,
WinWaitActive, http://,
Send, {ENTER}
return