squallA Posted March 5, 2007 Share Posted March 5, 2007 If $on And WinActive('SRO_Client') Then ClickInControl("left", "SRO_Client", "", "",31*@DesktopWidth/800,537*@DesktopHeight/600) This is my code. When Res is 800x600 it's ok, but when res is 1024x768, it's wrong click . Anyone who can help me ? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 6, 2007 Moderators Share Posted March 6, 2007 If $on And WinActive('SRO_Client') Then ClickInControl("left", "SRO_Client", "", "",31*@DesktopWidth/800,537*@DesktopHeight/600) This is my code. When Res is 800x600 it's ok, but when res is 1024x768, it's wrong click . Anyone who can help me ?When getting your coords, make sure they are "Client" coords and your problem will be solved. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
squallA Posted March 6, 2007 Author Share Posted March 6, 2007 I sure coord mode in AutoIT v3 active window info is Client Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 6, 2007 Moderators Share Posted March 6, 2007 I sure coord mode in AutoIT v3 active window info is ClientYou wouldn't be using @DeskTopWidth or @DeskTopHeight if you were using "client" coord modes already. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
squallA Posted March 6, 2007 Author Share Posted March 6, 2007 T.T thanks. may, I must use if func ! Link to comment Share on other sites More sharing options...
squallA Posted March 6, 2007 Author Share Posted March 6, 2007 $Input_1 = GUICtrlCreateInput('', 30, 30, 230, 70,BitOR($ES_WANTRETURN, $ES_MULTILINE)) If $on And WinActive('SRO_Client') Then ClickInControl("left", "SRO_Client", "", "",40,705) Controlsend("SRO_Client","","",GUICtrlRead($Input_1) & @CR, 1) ClickInControl("left", "SRO_Client", "", "",912,16) Sleep(GUICtrlRead($Input_4) * 1000) If i want finish per line, it's sleep "Sleep(GUICtrlRead($Input_4) * 1000)" ! Who can teach me ? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now