Sign in to follow this  
Followers 0
Unc3nZureD

Need Help in basic scripting [Auto-Login]

6 posts in this topic

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

Share this post


Link to post
Share on other sites



#3 ·  Posted (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 by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

wow, thanks Valuater. it works perfectly :):(

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 page

Enjoy!!

8)

Edited by Valuater

NEWHeader1.png

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