Jump to content
Macro Express Forums

Macro Gets In Some Sort Of Loop


pthomass
 Share

Recommended Posts

Hi,

 

I just downloaded the trial of Macro Express 3 and tried some stuff.

 

I tried opening Internet explorer, go to the IP_ADRESS of a device in my network, log in using username and pasword and tried opening something.

 

At the moment the log in was accepted, I wait 10 seconds to load the page, the I move the mouse and then click with the left mouse button. After I have moved the mouse, I see in the adressbar that the password I used earlier is filled in. Perhaps the username is filled in first, but I cannot see that, it's to fast.

 

Anyone else had this problem?

Link to comment
Share on other sites

You may need to slow the macro down to determine what is going on. I generally insert some delay commands around each step. At first I set the delays fairly long. Once the macro is working, I slow it down by adjusting the delays. Also, you might want to try the Wait for Web Page command. Something like this may work:

// Load IE, enter the ip address and wait until IE is no longer busy
Web Site: 192.168.0.99 [Default Browser]
Wait for Web Page: ""

// Do a long delay for now
Delay 10 Seconds

// Enter login name
Text Type: <login name>
Delay 1 Seconds
Text Type: <TAB>
Delay 2 Seconds

// Enter password
Text Type: <login name>
Delay 1 Seconds
Text Type: <ENTER>
Delay 2 Seconds

After you make sure the macro works, reduce the delays. You might wind up with something like this:

// Load IE, enter the ip address and wait until IE is no longer busy
Web Site: 192.168.0.99 [Default Browser]
Wait for Web Page: ""

// Do a short delay
Delay 1 Seconds

// Enter login name
Text Type: <login name>
Delay 0.1 Seconds
Text Type: <TAB>
Delay 0.1 Seconds

// Enter password
Text Type: <login name>
Delay 0.1 Seconds
Text Type: <ENTER>
Delay 0.1 Seconds

or maybe even this:

// Load IE, enter the ip address and wait until IE is no longer busy
Web Site: 192.168.0.99 [Default Browser]
Wait for Web Page: ""

// Enter login name
Text Type: <login name><TAB>
Delay 0.1 Seconds

// Enter password
Text Type: <login name><ENTER>
Delay 0.1 Seconds

You didn't mention what you are using to activate the macro. If you are using a Window Activated macro then you may need to adjust the macro to prevent multiple activations.

Link to comment
Share on other sites

This is the code I could get with Direct Editor

 

<HTTP2:2:F:http://193.190.57.102>

<TDELAY:10><MMW2:120,215>

<LCLK><TDELAY:10>

<TEXTTYPE:username>

<TEXTTYPE:<TAB>>

<TEXTTYPE:password>

<TEXTTYPE:<ENTER>>

<MMW2:400,165>

<IDELAY:2>

<LCLK>

<IDELAY:10>

<MMW2:370,825>

 

 

 

I hope this is what you mean

Link to comment
Share on other sites

Yes, the code is OK (don't need to insert the Crs, though, as it makes it that much harder to paste into the script editor)

I will need to rely on Kevin here; I have never put those addresses into IE on my machines, and when I do uit manually now, with my own machine's numbers, I just get "can't find page" errors.

How do you do it?

Best, Randall

Link to comment
Share on other sites

Randall:

I have never put those addresses into IE on my machines, and when I do it manually now, with my own machine's numbers, I just get "can't find page" errors.
Any valid IP address will work. It can be the IP address for a device on your own network or the IP address of a web page. There is no trick to it. Just enter it into the Web Site command. My testing indicates that it doesn't matter if the http:// portion is included or not.

 

pthomass:

To verify the above for Randall I created this macro to log into a device on my network:

Web Site: 192.168.0.2 [Default Browser]
Wait for Web Page: ""
Wait For Window Title: "Connect to xxx.xxx.xxx.xxx"
Text Type: xxxxxxxxxxxxxx<TAB>
Delay 0.1 Seconds
Encrypted Text  // this contains the password
Text Type: <ENTER>
Wait for Web Page: ""
Sound Wave File: DoneF1.wav    // Say 'done' when IE is no longer busy

Link to comment
Share on other sites

Randall:

Any valid IP address will work. It can be the IP address for a device on your own network or the IP address of a web page. There is no trick to it. Just enter it into the Web Site command. My testing indicates that it doesn't matter if the http:// portion is included or not.

 

That IP adress is the adress of a device in my network.

 

pthomass:

To verify the above for Randall I created this macro to log into a device on my network:

Web Site: 192.168.0.2 [Default Browser]
Wait for Web Page: ""
Wait For Window Title: "Connect to xxx.xxx.xxx.xxx"
Text Type: xxxxxxxxxxxxxx<TAB>
Delay 0.1 Seconds
Encrypted Text  // this contains the password
Text Type: <ENTER>
Wait for Web Page: ""
Sound Wave File: DoneF1.wav    // Say 'done' when IE is no longer busy

 

I'll try your code, one question though. As I just started learning Macro Express. The code differs from my code, where do I write that? Is that in direct scripting?

 

 

***EDIT***

Never mind that last question, figured it out :P

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...