4gotn1 Posted April 29, 2006 Share Posted April 29, 2006 (edited) hi guys, been doing a project and im having some trouble getting ControlSend() to send the "input" that the user has add to the GUICtrlCreateInput box on the GUI.... mmmm well lemme show you what i mean ^,^....here's where the GUI creates the input boxesGUICtrlCreateGroup ("Hunting Giants", 1, 68, 125, 168) $radio_1 = GUICtrlCreateRadio ("On", 10, 83) $radio_2 = GUICtrlCreateRadio ("Off", 45, 83) $check_1 = GUICtrlCreateCheckBox ("Zerk", 80, 83) GUICtrlCreateLabel ("Skills To Be Used", 20, 103) $input_1 = GUICtrlCreateInput ("", 3, 118, 20) $input_2 = GUICtrlCreateInput ("", 28, 118, 20) $input_3 = GUICtrlCreateInput ("", 53, 118, 20) $input_4 = GUICtrlCreateInput ("", 78, 118, 20) $input_5 = GUICtrlCreateInput ("", 103, 118, 20)GUICtrlCreateGroup ("",-99,-99,1,1)and here's the loop it runs if $radio_1 is checkedIf GUICtrlRead($radio_1) = $GUI_CHECKED ThenDo If PixelGetColor(496, 70)=543364 AND PixelGetColor(500, 64)=31578 AND PixelGetColor(575, 25)=1381653 Then $GiantLoop = 0 SetLog("") SetLog("A giant was detected by Buddy!!") SetLog("Buddy's executing extra skills!") SetLog("") Sleep(500) ControlSend("sro_client", "", "", "$input_1") Sleep(500) Sleep(500) ControlSend("sro_client", "", "$input_2", "") Sleep(500) Sleep(500) ControlSend("sro_client", "", "$input_3", "") Sleep(500) Sleep(500) ControlSend("sro_client", "", "$input_4", "") Sleep(500) Sleep(500) ControlSend("sro_client", "", "$input_5", "") Sleep(500) If GUICtrlRead($check_1) = $GUI_CHECKED Then ControlSend("sro_client", "", "", "{TAB}", "0") EndIfElse $GiantLoop = 1EndIfUntil $GiantLoop = 1EndIfi've tried the ControlSend as - ControlSend("sro_client", "", "", "GUICtrlRead($input_X)") and ControlSend("sro_client", "", "$input_X", "GUICtrlRead($input_X)") but neither seemed to work... any suggestions? or am i just screwed -edit-I know that "Buddy Detects" giant becuz my log records it, the only problem is actually getting the input to be sent to SRO_client :smid_15: Edited April 29, 2006 by 4gotn1 Link to comment Share on other sites More sharing options...
exodius Posted April 29, 2006 Share Posted April 29, 2006 Can you post the script in its entirety? Link to comment Share on other sites More sharing options...
Roman9 Posted April 29, 2006 Share Posted April 29, 2006 Can you post the script in its entirety?I was about to say the same thing. Link to comment Share on other sites More sharing options...
4gotn1 Posted April 29, 2006 Author Share Posted April 29, 2006 (edited) give me a secEdited out dun wanna let the source leak too bad lolif anyone still needs the full script lemme know and i'll PM it to ya Edited April 29, 2006 by 4gotn1 Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 29, 2006 Share Posted April 29, 2006 ok im seriously about to kill myself since people keep posting this crap, OK, theres a reason people put GG(GAME GUARD) its to prevent people from using simple macro programs like Autoit, THUS skipping any other ranting i would of done YOU CAN'T USE AUTOIT WHILE AAAAAAAAAAANNNNNNNNYYYYYY VERSION OF GG IS RUNNING, i know there are ways to make it update to the old versions but ANY version wont let you use autoit to send keys to it, in order to make u able to do this stuff, u must emulate GG to send packets saying its open when in fact its just sending packets and not protecting the game Link to comment Share on other sites More sharing options...
4gotn1 Posted April 29, 2006 Author Share Posted April 29, 2006 no trust me GG is not the problem thnk you, i can bypass GG easy enough thats not the issue. So uh yeah please flame somewhere else Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 29, 2006 Share Posted April 29, 2006 ive bypassed GG as well, but say that next time, and why do a controlsend when SRO is going to be the active window and Send is going to do just as good Link to comment Share on other sites More sharing options...
4gotn1 Posted April 29, 2006 Author Share Posted April 29, 2006 eh i figured controlsend would be more direct, i was gonna try to keep it all controlled within SRO (game) so that user can do other things while its running, like surf the net or watch a movie but just out of curiosity how would send function like so ?: Send(GuiCtrlRead($input_X)) and another thing i thought of is maybe instead of just putting say "1" in input box put the "{1}" like its the command to actually send ( like Send("{1}") anyways lemme know what u think and sorry bout not posting that GG is bypassed, but like you said GG doesn't alllow macro programs ... blah blah i figured you'd realize i had that taken care of lol ( but i know people can be dumb sometimes so i understand ) 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