Jump to content
Sign in to follow this  
OmarElAsd

Problem With Sro_Client

Recommended Posts

OmarElAsd

Hi

Iam Making a Programm Called (SrO LoGineR)

but iam having a problem with client

the problem is : I cant Send or MouseClick any thing

until

the Real Mouse or Keyboard type anything or click any where

in the client

Code

WinActivate( "SRO_Client","" )
                        WinActivate( "SRO_Client","" )
                        WinActivate( "SRO_Client","" )
                        WinActivate("SRO_Client")
                        WinActivate("SRO_Client")
                        WinActivate("[CLASS:CLIENT]")
                        WinActivate("[CLASS:CLIENT]")
                        WinActivate("[CLASS:CLIENT]")
                        Beep( 50 )
                        Sleep( 5000 )
                            WinSetState("SRO_Client", "", @SW_MAXIMIZE)
                        $SROWIN = WinGetHandle("SRO_Client")
                        $111 = "z"
                        $TAB = "{TAB}"
                        $Enter = "{ENTER}"
                        $ID = GuiCtrlRead($USERNAME)
                        $PW = GuiCtrlRead($PASSWORD)
                        
                        ControlClick($SROWIN,"","","left",1, 10 , 10 )
                        Sleep (100)
                        WinActivate("SRO_Client")
                        ControlSend($SROWIN, "", "", $TAB) ;same for enter...
                        Sleep (100)
                        WinActivate("SRO_Client")
                        ControlSend($SROWIN, "", "", $111) ;same for enter...
                        Sleep (100)
                        ControlSend($SROWIN, "", "", $ID) ;it will send the text also when sro is minimized or hidden
                        Sleep (100)
                        ControlSend($SROWIN, "", "", $TAB) ;same for enter...
                        Sleep (100)
                        ControlSend($SROWIN, "", "", $PW) ;same for enter...
                        Sleep (100)
                        ControlSend($SROWIN, "", "", $Enter) ;same for enter...                     
                        Beep( 100 )

Share this post


Link to post
Share on other sites
bogQ
Posted Image

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
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.