Jump to content
Sign in to follow this  
soifsauce

Need help

Recommended Posts

soifsauce

Hey guys im new to autoit started tonight and i just made this, what im trying to do is make the input boxes type what i put in once i hit the hotkey. when i run it nothing happens though doesnt type or anything what am i doing wrong >_< keep in mind im a noob so lol

#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$weg0t = GUICreate("weg0t", 291, 103, 192, 124)
$Name = GUICtrlCreateInput("Account Name", 24, 8, 241, 21)
$Accountpw = GUICtrlCreateInput("Account password", 24, 40, 241, 21)
$Newpw = GUICtrlCreateInput("New account password", 24, 72, 241, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

HotKeySet("{LALT}", "UP")
HotKeySet("{F2}", "PNP")
HotKeySet("{F3}", "close")

While 1
    Sleep(1000)
WEnd

Func UP()
    send("$Name")
    send("{TAB}")
    send("& $Accountpw")
    EndFunc

Func PNP()
    Send("$Accountpw")
    send("{TAB}")
    Send("$Newpw")
    Send("{TAB}")
    send("$Newpw")
EndFunc

Func close()
    Exit
EndFunc
Edited by soifsauce

Share this post


Link to post
Share on other sites
WolfWorld

$Accountpw = InputBox("Account password", '')
$Newpw = InputBox("New account password", '')

HotKeySet("{LALT}", "UP")
HotKeySet("{F2}", "PNP")
HotKeySet("{F3}", "close")

While 1
    Sleep(1000)
WEnd

Func UP()
    send("$Name")
    send("{TAB}")
    send("& $Accountpw")
    EndFunc

Func PNP()
    Send("$Accountpw")
    send("{TAB}")
    Send("$Newpw")
    Send("{TAB}")
    send("$Newpw")
EndFunc

Func close()
    Exit
EndFunc

Share this post


Link to post
Share on other sites
soifsauce

$Accountpw = InputBox("Account password", '')
$Newpw = InputBox("New account password", '')

HotKeySet("{LALT}", "UP")
HotKeySet("{F2}", "PNP")
HotKeySet("{F3}", "close")

While 1
    Sleep(1000)
WEnd

Func UP()
    send("$Name")
    send("{TAB}")
    send("& $Accountpw")
    EndFunc

Func PNP()
    Send("$Accountpw")
    send("{TAB}")
    Send("$Newpw")
    Send("{TAB}")
    send("$Newpw")
EndFunc

Func close()
    Exit
EndFunc

Wow thank you i over complicated it way to much xD thanks for the help

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.