Aassdd Posted January 17, 2008 Share Posted January 17, 2008 I'm making an auto login script for websites and since I'm using firefox which is not supported like ie... Case $msg = $tray_logins_*** ShellExecute("http://***/ucp.php?mode=login") WinWaitActive("***") Sleep(3000) Send("Username:{Tab}") Sleep(100) Send("username{Tab}password{Enter}") I want to replace sleep(3000) with wait-for-key-press. How can I do this? Link to comment Share on other sites More sharing options...
weaponx Posted January 17, 2008 Share Posted January 17, 2008 So you are going to have your password in the script? Not wise. You are better off letting Firefox save your form history and passwords, at least then they will be encrypted. This way you can just navigate to the website and it will auto-login. Link to comment Share on other sites More sharing options...
Aassdd Posted January 17, 2008 Author Share Posted January 17, 2008 I don't care if the passwords are encrypted or not, neither want to save form history. Link to comment Share on other sites More sharing options...
blademonkey Posted January 17, 2008 Share Posted January 17, 2008 Case $msg = $tray_logins_*** ShellExecute("http://***/ucp.php?mode=login") WinWaitActive("***") while 1 if _ispressed("7B") then exitloop sleep(200) wend Send("Username:{Tab}") Sleep(100) Send("username{Tab}password{Enter}") ---"Educate the Mind, Make Savage the Body" -Mao Tse Tung Link to comment Share on other sites More sharing options...
Aassdd Posted January 18, 2008 Author Share Posted January 18, 2008 (edited) Sorry but where can I find the hex keys? If i'm right, and 97 = a then it doesn't work because nothing happens when I press a. EDIT: I want space. Edited January 18, 2008 by Aassdd Link to comment Share on other sites More sharing options...
martin Posted January 18, 2008 Share Posted January 18, 2008 Sorry but where can I find the hex keys?If i'm right, and 97 = a then it doesn't work because nothing happens when I press a.EDIT: I want space.0x7B is F12You might find this useful for key codes Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
martin Posted January 18, 2008 Share Posted January 18, 2008 So you are going to have your password in the script? Not wise. You are better off letting Firefox save your form history and passwords, at least then they will be encrypted. This way you can just navigate to the website and it will auto-login.Off topic but, I like the picture on your 'empty' website. Are the snowflakes made using the snowflake udf posted at the end of last year? And just out of interest, is the picture one you took? Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
weaponx Posted January 18, 2008 Share Posted January 18, 2008 Off topic but, I like the picture on your 'empty' website. Are the snowflakes made using the snowflake udf posted at the end of last year? And just out of interest, is the picture one you took?I sent you a PM Link to comment Share on other sites More sharing options...
Aassdd Posted January 18, 2008 Author Share Posted January 18, 2008 Can someone please help me?! @martin You got 1.5K+ posts and you don't know how to use the msgs system lol Link to comment Share on other sites More sharing options...
blademonkey Posted January 18, 2008 Share Posted January 18, 2008 haven't we done that? If not, please state the exact problem/issue you're having in DETAIL. "can someone please help me?" does not constitute a detailed question. ---"Educate the Mind, Make Savage the Body" -Mao Tse Tung Link to comment Share on other sites More sharing options...
Aassdd Posted January 18, 2008 Author Share Posted January 18, 2008 Oops, I'm sorry. When I opened the page I scrolled down (with the end key) to see the latest post. I read weaponx's post and then the previous post but didn't see the "0x7B is F12. You might find this useful for key codes" post. PS: Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now