Sign in to follow this  
Followers 0
Zieq

Unable to run exe on right click which is generated from autoIT

10 posts in this topic

I have login form in IE and when i right click on edit box of that login for which i want to executes these three lines:

Send("username")

Send({"TAB"})

Send("Password")

 

i have created a .exe of this script and added as option in IE right click using regedit.

 

When i click, nothing is happening. i dont know the reason why its not working.

Linking is perfect because when i try to open .html page insted of .exe its opening perfectly.

 

Attaching a screenshot for reference.

 

Please help me out in this as i am new to autoit.

Thanks in advance.

post-84357-0-82600300-1397765447_thumb.p

Share this post


Link to post
Share on other sites



How should i tackle this situation?

so i wont be able to automate this through autoit? 

.exe doest show any result but when when i run this

Sleep(2000)

Send({"Username"})

and then placing cursor on to edit box , Its send username to that edit box. but running exe using right click is not showing any result.

How does it making difference?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

As John pointed out, you haven't provided sufficient details for us to assist you. Have you verified that the EXE is even launching by displaying a simple message? Also, have you considered using the _IE functions instead of Send?

Edited by Danp2

Share this post


Link to post
Share on other sites

No, Its not poping a simple message also and i am not using IEfunctions

Share this post


Link to post
Share on other sites

Can anyone help me out. how can i achieve above case?

Share this post


Link to post
Share on other sites

Your responses are vague and aren't getting you the help you are seeking.

  • Post your script
  • Post the registry changes

It sounds like the changes you made to the registry are not working. To test this, you can add a call to MsgBox() to you script and then execute the script via your right click menu and by a double click on the EXE. If you don't get a message box in both cases, then you have verified that the script isn't being launched.

Share this post


Link to post
Share on other sites

I have this piece of code in .exe
 

Send("Username")
Send("{TAB}")
Send("Password")
 
Placed on Desktop.
 
And I have created a new key for regedit inside HKEY_CURRENT_USER/SOFTWARE/MICROSOFT/INTERNET EXPLORER/MENU EXT/

I have value data for this key :
C:UsersJG028461DesktopSend Username.exe

I have checked putting MsgBox, its not working when i use it from right click but when i run another script(javascript) on right click. i can see its working. its doesnt work when i put .exe on right click generated from autoit.

let me know if you need more inputs

Share this post


Link to post
Share on other sites

2 things on first glance:

1. HKEY_CURRENT_USER/SOFTWARE/MICROSOFT/INTERNET EXPLORER/MENUEXT/ <--- without space

2. C:UsersJG028461DesktopSend_Username.exe <--- without space

also - see rights/locations management in IE - some OS tend to be not user-friendly in this area... 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0