WHY IS THE @@ KEY NOT BEING SENT PROPERLY!!!!

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
KatieRose
Newbie
Posts: 6
Joined: Mon Jul 28, 2014 4:54 am

WHY IS THE @@ KEY NOT BEING SENT PROPERLY!!!!

Post by KatieRose » Mon Jul 28, 2014 4:57 am

I'm trying to fill a field on a web browser.

After the field has been clicked I input.

Send>[email protected]

And it appears as : myemail2gmail.com

WHY IS THIS HAPPENING. :oops:

User avatar
CyberCitizen
Automation Wizard
Posts: 721
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Re: WHY IS THE @@ KEY NOT BEING SENT PROPERLY!!!!

Post by CyberCitizen » Mon Jul 28, 2014 5:59 am

Your not using shift at all?
FIREFIGHTER

KatieRose
Newbie
Posts: 6
Joined: Mon Jul 28, 2014 4:54 am

Re: WHY IS THE @@ KEY NOT BEING SENT PROPERLY!!!!

Post by KatieRose » Mon Jul 28, 2014 3:26 pm

CyberCitizen wrote:Your not using shift at all?
Even with

Press>Shift
Send> @@@@
Release>Shift

It appears as 2222...

User avatar
JRL
Automation Wizard
Posts: 3501
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: WHY IS THE @@ KEY NOT BEING SENT PROPERLY!!!!

Post by JRL » Mon Jul 28, 2014 6:23 pm

Checked in XP, Win7 and Win8.1 I have not been able to replicate your issue sending text to Notepad. If I use Press Shift ahead of the Send> I can get lowercase to change to uppercase and I can get "1234567890" to change to "!@#$%^&*()" but a shift does not change uppercase to lower case nor does it change "!@#$%^&*()" to "1234567890"

Makes me wonder if there is something about the application that is receiving the text that causes the "@" to convert to a "2". What happens if you add a let> and send the variable.

Let>addr=[email protected]
Send>addr

KatieRose
Newbie
Posts: 6
Joined: Mon Jul 28, 2014 4:54 am

Re: WHY IS THE @@ KEY NOT BEING SENT PROPERLY!!!!

Post by KatieRose » Mon Jul 28, 2014 9:11 pm

JRL wrote:Checked in XP, Win7 and Win8.1 I have not been able to replicate your issue sending text to Notepad. If I use Press Shift ahead of the Send> I can get lowercase to change to uppercase and I can get "1234567890" to change to "!@#$%^&*()" but a shift does not change uppercase to lower case nor does it change "!@#$%^&*()" to "1234567890"

Makes me wonder if there is something about the application that is receiving the text that causes the "@" to convert to a "2". What happens if you add a let> and send the variable.

Let>addr=[email protected]
Send>addr
It is working fine in NotePad, but when I use a Click> command before hand (Indicating the Log in field) It comes up again as:

myemail2gmail.com

Everythings lower cased and no @@... What is going on. :cry:

User avatar
JRL
Automation Wizard
Posts: 3501
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: WHY IS THE @@ KEY NOT BEING SENT PROPERLY!!!!

Post by JRL » Mon Jul 28, 2014 9:16 pm

Did you try setting the text to a variable then Sending the variable?

Another thing to try would be to send the text to the clipboard then paste it into your application

Code: Select all

PutClipboard>[email protected] 

Press Ctrl
Send>v
Release Ctrl

KatieRose
Newbie
Posts: 6
Joined: Mon Jul 28, 2014 4:54 am

Re: WHY IS THE @@ KEY NOT BEING SENT PROPERLY!!!!

Post by KatieRose » Tue Jul 29, 2014 1:00 am

JRL wrote:Did you try setting the text to a variable then Sending the variable?

Another thing to try would be to send the text to the clipboard then paste it into your application

Code: Select all

PutClipboard>[email protected] 

Press Ctrl
Send>v
Release Ctrl
THANK YOU, that solved it. I'm guessing its interfering with the website coding. Just one more question. Suppose I want a block of text to come out like this:

Hi There

Line 1

Line 2

Line 3

---

But I want to use the

PutClipboard>

And it only copies the first line and if i jumble it it will come out like this.

Hi There, Line 1 Line 2 Line 3

Any way around this?

User avatar
JRL
Automation Wizard
Posts: 3501
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: WHY IS THE @@ KEY NOT BEING SENT PROPERLY!!!!

Post by JRL » Tue Jul 29, 2014 3:06 am

CR (Carriage Return) LF (Line Feed) are the characters that cause windows applications to perceive a string of text to have different lines. So add the built in Macro Scheduler variable "CRLF" to those places you want to see new lines.

Code: Select all

PutClipBoard>Hi There%crlf%Line 1%crlf%Line 2%crlf%Line 3

KatieRose
Newbie
Posts: 6
Joined: Mon Jul 28, 2014 4:54 am

Re: WHY IS THE @@ KEY NOT BEING SENT PROPERLY!!!!

Post by KatieRose » Tue Jul 29, 2014 5:59 pm

JRL wrote:CR (Carriage Return) LF (Line Feed) are the characters that cause windows applications to perceive a string of text to have different lines. So add the built in Macro Scheduler variable "CRLF" to those places you want to see new lines.

Code: Select all

PutClipBoard>Hi There%crlf%Line 1%crlf%Line 2%crlf%Line 3
Thank you, that seems to work great!

If you don't mind, How do I loop a script a specific amount of times I wish?

User avatar
JRL
Automation Wizard
Posts: 3501
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: WHY IS THE @@ KEY NOT BEING SENT PROPERLY!!!!

Post by JRL » Tue Jul 29, 2014 6:22 pm

There are several ways. My personal favorite is Repeat -> Until

Code: Select all

Let>Counter=0

Repeat>Counter
  Add>Counter,1

  //Do repeating task(s)

Until>Counter=10
This would repeat 10 times since we're waiting for variable "Counter" to reach the value of 10 as it increments up by 1 each cycle.

KatieRose
Newbie
Posts: 6
Joined: Mon Jul 28, 2014 4:54 am

Re: WHY IS THE @@ KEY NOT BEING SENT PROPERLY!!!!

Post by KatieRose » Tue Jul 29, 2014 6:36 pm

JRL wrote:There are several ways. My personal favorite is Repeat -> Until

Code: Select all

Let>Counter=0

Repeat>Counter
  Add>Counter,1

  //Do repeating task(s)

Until>Counter=10
This would repeat 10 times since we're waiting for variable "Counter" to reach the value of 10 as it increments up by 1 each cycle.
Thank you kind stranger, I must ask you for one more piece of advice!

When coding automation for something such as making Facebook accounts and liking a specific page, would you recommend doing so with Point Click Copy automation and repetition or do you have a quicker method?

Is it possible to

PutClipboard>[email protected]
Press Ctrl
Send>v
Release Ctrl

Then simply add a like to make the next script/loop make MyEmail2, MyEmail3, MyEmail4, etc... Without having to write them out individually?

PaulSR
Pro Scripter
Posts: 65
Joined: Mon Aug 05, 2013 2:58 pm
Location: Edinburgh/Peterborough

Re: WHY IS THE @@ KEY NOT BEING SENT PROPERLY!!!!

Post by PaulSR » Wed Jul 30, 2014 7:49 am

KatieRose wrote:
JRL wrote:There are several ways. My personal favorite is Repeat -> Until

When coding automation for something such as making Facebook accounts and liking a specific page, would you recommend doing so with Point Click Copy automation and repetition or do you have a quicker method?

Is it possible to

PutClipboard>[email protected]
Press Ctrl
Send>v
Release Ctrl

Then simply add a like to make the next script/loop make MyEmail2, MyEmail3, MyEmail4, etc... Without having to write them out individually?
If I understand what you're saying you'd do it within the loop using the counting variable.

Try running this :

Code: Select all

Let>Counter=0
Repeat>Counter
    Add>Counter,1
    PutClipBoard>MyEmail%Counter%@outlook.com
    GetClipBoard>EmailAddress
    MDL>EmailAddress
Until>Counter=10

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1350
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: WHY IS THE @@ KEY NOT BEING SENT PROPERLY!!!!

Post by Dorian (MJT support) » Thu Jul 31, 2014 1:47 am

I love reading code posted in the forum. I always pick up some tips, no matter how long I've been using Macro Scheduler.

I noticed JRL used :

Add>Counter,1

That's so much more elegant than my usual

let>Counter=Counter+1

Note to self... "use Add, instead".
Yes, we have a Custom Scripting Service. Message me or go here

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts