Is this possible with ahk or autoit? I tried in ahk but the client does not seem to read send keys even though the text shows up. I just get "Wrong password" every time.
Global Const $PASSWORD = "YourPassword"
Global Const $CLICK_COORDS[2] = [506, 684]
HotKeySet("{F1}", "Reconnect")
HotKeySet("{F2}", "ExitProg")
While 1
Sleep(1000)
WEnd
Func Reconnect()
MouseClick("left", $CLICK_COORDS[0], $CLICK_COORDS[1])
Sleep(500)
For $i = 1 To StringLen($PASSWORD)
$a = StringMid($PASSWORD, $i, 1)
If StringIsUpper($a) Then
Send("{SHIFTDOWN}")
Sleep(500)
EndIf
Send("{" & $a & " down}")
Sleep(500)
Send("{" & $a & " up}")
If StringIsUpper($a) Then
Sleep(500)
Send("{SHIFTUP}")
EndIf
Next
Send("{ENTER down}")
Sleep(500)
Send("{ENTER up}")
EndFunc
Func ExitProg()
Exit(0)
EndFunc
Very nice, thank you:)Quote:
Its possible, i can't see ur script, but what i think might be happening is the key-presses from the script are too fast for the client. I had a problem where when i type my password too fast, it does not get all the letters. (Maybe co checks every frame, and does not use an event queue, not sure). I'll have a go at making one for ya... 1 sec
Back:
Something like this
You will have to fill in these two though:PHP Code:Global Const $PASSWORD = "YourPassword"
Global Const $CLICK_COORDS[2] = [506, 684]
HotKeySet("{F1}", "Reconnect")
HotKeySet("{F2}", "ExitProg")
While 1
Sleep(1000)
WEnd
Func Reconnect()
MouseClick("left", $CLICK_COORDS[0], $CLICK_COORDS[1])
Sleep(500)
For $i = 1 To StringLen($PASSWORD)
$a = StringMid($PASSWORD, $i, 1)
If StringIsUpper($a) Then
Send("{SHIFTDOWN}")
Sleep(500)
EndIf
Send("{" & $a & " down}")
Sleep(500)
Send("{" & $a & " up}")
If StringIsUpper($a) Then
Sleep(500)
Send("{SHIFTUP}")
EndIf
Next
Send("{ENTER down}")
Sleep(500)
Send("{ENTER up}")
EndFunc
Func ExitProg()
Exit(0)
EndFunc
Global Const $PASSWORD = "YourPassword"
Global Const $CLICK_COORDS[2] = [506, 684]
for your clicking coordinates and password.
Programming in context, compared to auto-it is much more challenging, nor (to my knowledge) can a proxy be written in auto it. Just thought I'd point that out.Quote:
Nice program clintonselke!
It seems that you are pretty good at programming,eh? :D
Keep going!
I hope you make a proxy someday!
Programming in other imperative programming languages is just using the same logic, applied differently. It may be 'more challenging' in other languages because there's a bigger syntax to remember. You also need to be familiar with APIs, but the same goes for any language. Of course, modern languages aren't just straighforward imperative languages, and learning about good OOP designs and such isn't so straightforward.Quote:
Programming in context, compared to auto-it is much more challenging, nor (to my knowledge) can a proxy be written in auto it. Just thought I'd point that out.
Not to mention that using a 'modern' language would run more stably and faster.Quote:
However, doing so is just rediculous, because you end up doing extended amounts of work to interface to APIs in other languages, where it'd be much simpler to use languages where the APIs are already defined.