Jump to content
qiong

Can't enter the activation key - (Moved)

Recommended Posts

Hello:

 I write the script as below:

Run("setup.exe")
WinWaitActive("Winpower")
Send("!n")
WinWaitActive("Winpower")
Send("{TAB}")
Sleep(10)
Send("511C1-01220-0100-478DF2A")
Sleep(10)
Send("{Enter}")
Sleep(10)
WinWaitActive("Winpower")
Send("!n")
WinWaitActive("Winpower")
Send("!n")
WinWaitActive("Winpower")
Send("!n")
WinWaitActive("Winpower")
Send("!i")
WinWaitActive("Winpower")
Send("!d")

 

After I run my script, the activation key show "511C-01220-0100-478DFA", but the real key is "511C1-01220-0100-478DF2A" in the script

so it prompt "The password is incorrect".

winpowerinstall.png

Share this post


Link to post
Share on other sites

I want to know why the input activation key is different from the output activation key

Share this post


Link to post
Share on other sites
Posted (edited)

Also, see if your installer supports command line switches. If it does, then you can avoid automating the GUI all together and maybe even do a silent install.

Edit - I just checked and it does support command line switches. I found it on page 57 here: https://www.nextups.eu/wp-content/uploads/pdf_upload/Software/Winpower/WinPower Manual.pdf

Edited by Bert

Share this post


Link to post
Share on other sites

I modify the script as below, but it still doesn't work

Opt ("SendKeyDelay", 500)
Send("{TAB}")
Send("511C")
Send("1-01220-0100-478DF")
Send("2A")
Send("{Enter}")

 

And I found the number after the letter can't be input.

for example:  the number "1" follow with the letter "C", the number "2" follow with the letter "F", so the two number can't be input.

511C1-01220-0100-478DF2A

511C-01220-0100-478DFA

winpowerinstall-1.png

Share this post


Link to post
Share on other sites

I found the reason, I need to add the "enter" after the letter,   now it work

Thank you for all the supports.

 

Send("511C")
Send("{Enter}")
Send("1-01220-0100-478DF")
Send("{Enter}")
Send("2A")
Send("{Enter}")

Share this post


Link to post
Share on other sites

I also try the fix this issue by "set the keyboard to English", then I can send the string "511C1-01220-0100-478DF2A"

 

$hWnd = WinGetHandle("[ACTIVE]");
$ret = DllCall("user32.dll", "long", "LoadKeyboardLayout", "str", "08040804", "int", 1 + 0)
DllCall("user32.dll", "ptr", "SendMessage", "hwnd", $hWnd, "int", 0x50, "int", 1, "int", $ret[0])
Send('nh')

 

Share this post


Link to post
Share on other sites

Sigh - qiong - YOU DON'T READ do you? I GAVE YOU THE ANSWER that would take ALL OF YOUR LINES OF CODE and reduce it to one line. 

One. Line. Of. Code. Does this not make sense to you? Are you so hard headed that you refuse to change direction when a very simple and easy solution to your issue is given? 

Seeing you don't read and keep being thick, I'm done with you. 

Moving on....

Share this post


Link to post
Share on other sites
27 minutes ago, Bert said:

One. Line. Of. Code.

I imagined you saying that with annoyed face, and it has been amazing :muttley:


Click here to see my signature:

Spoiler

Thoughts:

  • I will always thank you for the time you spent for me.
    I'm here to ask, and from your response, I'd like to learn.
    By my knowledge, I can help someone else, and "that someone" could help in turn another, and so on.

/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

ALWAYS GOOD TO READ:

 

Share this post


Link to post
Share on other sites

For those that are getting frustrated, how about you just walk away from the thread? There is no forum rule against being difficult to deal with. As long as the OP is not breaking any forum rules, complaining in the thread or reporting it because he is not listening to you is not going to fix anything. Just move along and perhaps he will get the message.

Share this post


Link to post
Share on other sites
2 hours ago, JLogan3o13 said:

For those that are getting frustrated, how about you just walk away from the thread? There is no forum rule against being difficult to deal with. As long as the OP is not breaking any forum rules, complaining in the thread or reporting it because he is not listening to you is not going to fix anything. Just move along and perhaps he will get the message.

I partly agree with you. But if everyone goes away without speaking some of problems the person is causing, that person will never know why he has no response and continue to post and post and post ...

Share this post


Link to post
Share on other sites
5 hours ago, Nine said:

I partly agree with you. But if everyone goes away without speaking some of problems the person is causing, that person will never know why he has no response and continue to post and post and post ...

At which point a Moderator will handle it.

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

×
×
  • Create New...