So to test things out, before getting carried away I made a smaller script to grab and compare the status bar line.
#IfWinActive, Lawson - Shipping Feedback (WH32.2) ; Accurate Wintitle ^T:: ControlGetText, Actmsg, STATIC_UNIV1 if (Actmsg = "Inquiry Complete") msgbox worked else msgbox failed
This will produce a failed result every time. I at first thought ControlGetText was the culprit, so I ran this:
#IfWinActive, Lawson - Shipping Feedback (WH32.2) ^T:: ControlGetText, Actmsg, STATIC_UNIV1 msgbox %Actmsg%The results of this are a msgbox containing the output of the status bar (As it should)
So, I thought maybe the conditional statement had a flaw, so I re wrote the script to grab and compare a line in notepad
#IfWinActive, Untitled - Notepad ^T:: ControlGetText, Actmsg, Edit1 if (Actmsg = "Inquiry Complete") msgbox worked else msgbox failed
So I have tested both aspects of this and they both work individual of eachother, but I can't for the life of me get it to compare the stupid text from the stupid status bar.
Anyone see my error? This is driving me crazy.




