I'm a .. newbie to this so go easy.
I'm trying to use the following code to scan the selected window for an order number (in our case a web number) which can come through as web1234567, for example.
I need to scan the selected page (outlook in my case), copy to clipboard and display the order number (which will change from email to email).
I've currently go up to the clipboard part, but displaying the web number is proving difficult as it always changes, web will remain the same, but the combination of numbers after will always be different.
My current:
Code: Select all
F6::
Loop
{
Send, ^a
Send, ^c
text = web
Click ;
IfInString, Clipboard, %text% ;
{
Msgbox,, WebNumber, %clipboard%
break
}
Else
{
msgbox, No Web Number
break
}
}
Thanks.
Mod edit: Added code tags.