Jump to content

Recommended Posts

Posted

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

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

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...