IneedHELP Posted February 24, 2009 Share Posted February 24, 2009 Can anyone check my code here? ================================================================== #include <GUIConstants.au3> WinActive ("RF_Online.bin", "RF Online") GUICreate ("RF Auto Pick", 220, 120) GUICtrlCreateGroup ("Instruction", 10, 10, 200, 100) GUICtrlCreateLabel ("Press Insert to Start Picking", 20, 30, 150, 20) GUICtrlCreateLabel ("Press Delete to Stop Picking", 20, 55, 150, 20) GUICtrlCreateLabel ("Press End to Exit", 20, 80, 80, 20) HotKeySet("{INS}", "StartPicking") HotKeySet("{Del}", "Stop_Picking") HotKeySet("{End}", "Terminate") GUISetState() Local $_stop = 0 Sleep(1000) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd Func StartPicking() ; Start Picking while 1 $_stop = 0 WinActive("RF_Online.bin", "RF Online") ControlSend("RF_Online.bin", "", "", "{Space}") Sleep(15) If $_stop = 1 Then ExitLoop EndIf WEnd EndFunc Func Stop_Picking() ; Stop Picking $_stop = 1 EndFunc Func Terminate() ; Exit Program Exit EndFunc ============================================================== i cant make it work what i want, i just wanna assign Ins or anykey to auto press Space..... can anyone correct or give hint? thanks in advance hope anyone can help... Link to comment Share on other sites More sharing options...
Marlo Posted February 24, 2009 Share Posted February 24, 2009 I think the classname you are using for Controlsend is possibly wrong (RF_Online.bin) maybe try just using Send or using the Autoit window info app to find the proper class name. Click here for the best AutoIt help possible.Currently Working on: Autoit RAT Link to comment Share on other sites More sharing options...
zzpot Posted February 24, 2009 Share Posted February 24, 2009 Hi Lo INH It all looks so good until I get to the function () WinActive("RF_Online.bin", "RF Online"); ? is this the name of a page ;Next line ControlSend("RF_Online.bin", "", "", "{Space}")? is this to highlight..........something and select something ;----------------------------------------------------- Is there movement needed? Do you want to keep results of your pick? Alittle more info and I think someone here can help...... But in the mean time do not give up.... zz Link to comment Share on other sites More sharing options...
IneedHELP Posted February 24, 2009 Author Share Posted February 24, 2009 (edited) Hi Lo INHIt all looks so good until I get to the function ()WinActive("RF_Online.bin", "RF Online"); ? is this the name of a page ;Next lineControlSend("RF_Online.bin", "", "", "{Space}")? is this to highlight..........something and select something;-----------------------------------------------------Is there movement needed?Do you want to keep results of your pick?Alittle more info and I think someone here can help......But in the mean time do not give up....zzits the name of the application or the game application, all i want to do is spam space becausein that game u spam space to pick up item and it will automatically move your char to that item..i use space because you press keyboard (space) to pick up item in that game.... Edited February 24, 2009 by IneedHELP Link to comment Share on other sites More sharing options...
IneedHELP Posted February 24, 2009 Author Share Posted February 24, 2009 I think the classname you are using for Controlsend is possibly wrong (RF_Online.bin) maybe try just using Send or using the Autoit window info app to find the proper class name.thanks!kindly show me whats wrong with it? i already try (RF Online) <- name of application in thetask manager but in the process (RF_Online.bin) <- so i already try`d the two name stillwont work.... thus WinActive not enough? Link to comment Share on other sites More sharing options...
metjumper Posted February 24, 2009 Share Posted February 24, 2009 if this game has a protection like GameGuard, You cannot able to send key... if situation like this. use any standart driver name of os. change your exe name to "Tablet","Evomouexec" smth like that. Link to comment Share on other sites More sharing options...
IneedHELP Posted February 25, 2009 Author Share Posted February 25, 2009 thanks! hmm so u cant use auti it if theres a gamagaurd or xtrap.. but the game im going make auto space dont use gamagaurd and xtrap... any further explanation? Link to comment Share on other sites More sharing options...
Diception Posted February 25, 2009 Share Posted February 25, 2009 (edited) See if it works like this CODE#include <GUIConstants.au3> WinActive ("RF_Online.bin", "RF Online") GUICreate ("RF Auto Pick", 220, 120) GUICtrlCreateGroup ("Instruction", 10, 10, 200, 100) GUICtrlCreateLabel ("Press Insert to Start Picking", 20, 30, 150, 20) GUICtrlCreateLabel ("Press Delete to Stop Picking", 20, 55, 150, 20) GUICtrlCreateLabel ("Press End to Exit", 20, 80, 80, 20) HotKeySet("{INS}", "StartPicking") HotKeySet("{Del}", "Stop_Picking") HotKeySet("{End}", "Terminate") GUISetState() Local $_stop = 0 Sleep(1000) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd Func StartPicking() ; Start Picking while 1 $_stop = 0 WinActive("RF_Online.bin", "RF Online") Send("{Space}") Sleep(15) If $_stop = 1 Then ExitLoop EndIf WEnd EndFunc Func Stop_Picking() ; Stop Picking $_stop = 1 EndFunc Func Terminate() ; Exit Program Exit EndFunc also depending on which server private or official there may be protections built into the game i had a great bot written in autoit for this game until the U.S. servers got closed and then it didnt work on private servers due to client side protections. Edited February 25, 2009 by Diception Link to comment Share on other sites More sharing options...
IneedHELP Posted February 26, 2009 Author Share Posted February 26, 2009 See if it works like thisCODE#include <GUIConstants.au3>WinActive ("RF_Online.bin", "RF Online")GUICreate ("RF Auto Pick", 220, 120)GUICtrlCreateGroup ("Instruction", 10, 10, 200, 100)GUICtrlCreateLabel ("Press Insert to Start Picking", 20, 30, 150, 20)GUICtrlCreateLabel ("Press Delete to Stop Picking", 20, 55, 150, 20)GUICtrlCreateLabel ("Press End to Exit", 20, 80, 80, 20)HotKeySet("{INS}", "StartPicking")HotKeySet("{Del}", "Stop_Picking")HotKeySet("{End}", "Terminate")GUISetState()Local $_stop = 0Sleep(1000)While 1$msg = GUIGetMsg()SelectCase $msg = $GUI_EVENT_CLOSEExitEndSelectWEndFunc StartPicking() ; Start Pickingwhile 1$_stop = 0WinActive("RF_Online.bin", "RF Online")Send("{Space}")Sleep(15)If $_stop = 1 ThenExitLoopEndIfWEndEndFuncFunc Stop_Picking() ; Stop Picking$_stop = 1EndFuncFunc Terminate() ; Exit ProgramExitEndFuncalso depending on which server private or official there may be protections built into the gamei had a great bot written in autoit for this game until the U.S. servers got closed and then it didnt work on private servers due to client side protections.ok i go try this one if it work or not thanks! Link to comment Share on other sites More sharing options...
IneedHELP Posted February 26, 2009 Author Share Posted February 26, 2009 ok i go try this one if it work or not thanks!still doesnt work lol so wierd dunno whats wrong anymore Y_Y Link to comment Share on other sites More sharing options...
Diception Posted February 27, 2009 Share Posted February 27, 2009 still doesnt work lol so wierd dunno whats wrong anymore Y_Ywhere (what server) are you playing RF i may still be able to help Link to comment Share on other sites More sharing options...
Diception Posted February 27, 2009 Share Posted February 27, 2009 this code worked on ascension, beast, and new official for me CODE#include <GUIConstants.au3> ;ProcessExists("RF_Online.bin");<========== changed this (not neccesary) GUICreate ("RF Auto Pick", 220, 120) GUICtrlCreateGroup ("Instruction", 10, 10, 200, 100) GUICtrlCreateLabel ("Press Insert to Start Picking", 20, 30, 150, 20) GUICtrlCreateLabel ("Press Delete to Stop Picking", 20, 55, 150, 20) GUICtrlCreateLabel ("Press End to Exit", 20, 80, 80, 20) HotKeySet("{INS}", "StartPicking") HotKeySet("{Del}", "Stop_Picking") HotKeySet("{End}", "Terminate") GUISetState() Local $_stop = 0 Sleep(1000) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd Func StartPicking() ; Start Picking $_stop = 0 ;<========== moved this WinActivate("Make this the window name");<========== changed this while 1 ;<========== from here send("{Space}");<========== changed this Sleep(15) If $_stop = 1 Then ExitLoop EndIf WEnd EndFunc Func Stop_Picking() ; Stop Picking $_stop = 1 EndFunc Func Terminate() ; Exit Program Exit EndFunc Link to comment Share on other sites More sharing options...
IneedHELP Posted March 1, 2009 Author Share Posted March 1, 2009 im play`n at private server only just RF to tired to press space many time so i making this bot but dunno whats the problem with the code doesnt work lol ahahhaa Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted March 1, 2009 Share Posted March 1, 2009 You are all missing the obvious here....Local $_stop = 0 .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Diception Posted March 1, 2009 Share Posted March 1, 2009 You are all missing the obvious here....Local $_stop = 0wont affect it here to make it stop if any thing will keep it going forever but i addressed that in my last postand again if you tell me which private server your on maybe i can help. (beast and ascension are both private servers and my last code works on them just make sure you change to the right right window name as it was different for all 3 servers i play) Link to comment Share on other sites More sharing options...
Bowmore Posted March 1, 2009 Share Posted March 1, 2009 You are using the wrong function here. WinActive("RF_Online.bin", "RF Online")oÝ÷ Ù.¦ºi¹r槶Ú.±æ®¶sevä7FfFRgV÷Cµ$eôöæÆæRæ&âgV÷C²ÂgV÷Cµ$böæÆæRgV÷C²oÝ÷ ÚÚºÚ"µÍÚ[ØZ]XÝ]J ][ÝÔÓÛ[K[][ÝË ][ÝÔÛ[I][ÝÊ Check the help file for an explanation of the differences "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook Link to comment Share on other sites More sharing options...
IneedHELP Posted March 2, 2009 Author Share Posted March 2, 2009 Thanks for all the help.. i already said what server i play .. i play at Just-RF or RF-Just.. winactivate if im not wrong is to run a certain window if its not running hmm but got no clue in winwaitactivate i go check it, thanks for the info.. 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