Unc3nZureD Posted April 11, 2010 Share Posted April 11, 2010 hi. I want to do a simple AutoLogin script. it starts with an msgbox("...") then nothing till press the F1 button. then it write the username [enter] password [enter] and exit from the script (the exit isn't important). i've done this: msgbox(0, "title", "note") Send("Username{ENTER}password{ENTER}") how can i solve the hotkey problem? thx Link to comment Share on other sites More sharing options...
l3ill Posted April 11, 2010 Share Posted April 11, 2010 WooooHooo Flashback! My very first AutIT Script was this very thing. Look in the help file under: Function Reference/Keyboard Management/HotKeySet There is all you need to know to get you started... have fun! My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
Valuater Posted April 11, 2010 Share Posted April 11, 2010 (edited) Maybe... ; Press Esc to terminate script, Pause/Break to "pause" Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") HotKeySet("{F1}", "ShowMe") ;;;; Body of program would go here ;;;; While 1 Sleep(100) WEnd ;;;;;;;; Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc Func ShowMe() MsgBox(4096,"","This is a message.") Send("Username{ENTER}password{ENTER}") EndFunc 8) Edited April 11, 2010 by Valuater Link to comment Share on other sites More sharing options...
l3ill Posted April 11, 2010 Share Posted April 11, 2010 Actually now that I think about it, I used a shortcut in the taskbar to the *.au3 file which was a series of mouse clicks and sends... not a hotkey. but to each his own... My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
Unc3nZureD Posted April 11, 2010 Author Share Posted April 11, 2010 wow, thanks Valuater. it works perfectly Link to comment Share on other sites More sharing options...
Valuater Posted April 11, 2010 Share Posted April 11, 2010 (edited) wow, thanks Valuater. it works perfectly Your welcome!!Please note that over 95% of that script was taken from the help page for HotKeySet()...All the help pages have great examples at the bottom of the pageEnjoy!!8) Edited April 11, 2010 by Valuater 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