Sign in to follow this  
Followers 0
BubbleGumDancer

control send help

4 posts in this topic

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.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0