Jump to content

control send help


Recommended Posts

Run("C:\Program Files\Diablo II\Diablo II.exe -w -skiptobnet")

Sleep(1000)

WinWait("[CLASS:Diablo II]")

Local $hWnd = WinGetHandle("[CLASS:Diablo II]")

Local $sHWND = String($hWnd) ; Convert to a string

WinSetState(HWnd($sHWND), "", @SW_MINIMIZE)

Sleep(5000) ; should be minimized

ControlSend($hwnd, "", "{TAB}Account{TAB}", "Password{ENTER}") ;ok sending account data to minimized window errr error error something is wrong ahhhhhh save me im dieing melting into ahhhh........

sleep(1000)

WinClose(HWnd($sHWND))

i just want it to log in while minimized thats all im trying to do using control send

If you were twice as smart, you'd still be stupid.

Link to comment
Share on other sites

Run("Notepad.exe")

Sleep(1000)

WinWait("[CLASS:Notepad]")

Local $hWnd = WinGetHandle("[CLASS:New Text Document]")

Local $sHWND = String($hWnd) ; Convert to a string

WinSetState(HWnd($sHWND), "", @SW_MINIMIZE)

Sleep(5000) ; should be minimized

ControlSend($hwnd, "", "{TAB}Account{TAB}", "Password{ENTER}") ;ok sending account data to minimized window errr error error something is wrong ahhhhhh save me im dieing melting into ahhhh........

Sleep(1000)

WinClose(HWnd($sHWND))

If you were twice as smart, you'd still be stupid.

Link to comment
Share on other sites

Thread locked and a week ban. Thread locked for obvious reasons. Banned because you were rude to enaiman via PM when he pointed out your flagrant violation of forum policy. Believe it or not, you are not an exception to the rules. Goodbye.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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