Jump to content

Dae

Active Members
  • Posts

    51
  • Joined

  • Last visited

Everything posted by Dae

  1. Was the erm really necessary? Anyway, thanks for the help, nice forum. There was a typo in my HotKeySet preventing it from working >.<
  2. Thanks guys What about ``````````````````````````````````````````````````?
  3. Hi, how do you check if a key was hit or being held again? Without using HotKeySet. Also what do you use to send the char `? That's `````````` beside 12345. Thanks guys, appreciate the help
  4. Better yet, don't worry about process checking and sleeping, just make sure Jump doesn't go through more than once every x seconds, without pausing. If GetJumpState($id) Then If TimerDiff(GetLastJump($id)) > (150000 + Rand(5000, 10000)) Then Jump($id) SetLastJump($id, TimerInit()) EndIf EndIf
  5. WHY IS IT DOING THIS TO ME!!! I don't have any settings to use the old theme. Everything is set to xp theme.
  6. lol....
  7. Good point, and there is a case in my app that that could have caused an error.
  8. That made it old style when run from both SciTE and the folder. I tried using 0 instead of 1 too, but no go. That statement makes it appear old style.
  9. Yes, I know that, and I actually mentioned that. The question is why? I want the program to be using win xp styles when run from the folder, like when its run from SciTE. All my windows are using the win styles, except this program when I run it from the folder. I had both of those windows beside eachother in the screenshot, I didn't copy and paste them together.
  10. Bump before sleep~
  11. I told you. No one would answer when I post my code because it's over 500 lines long, not very standard scripting, and I only understand it because its a project I've been doing for the past week. Now I saw in the notes that GUI operations will not be effected by Sleep. So that's why my GUI responds, but my functions aren't being called when Sleep is running. Just imagine you have a program running, and it gets to Sleep, and you hit a hotkey, F5, and expect it to move the mouse, but it's still sleeping. Now that I'm thinking, I don't even think what I want is possible. This is no good.. Is there a GetTime function I could manipulate to essentially pause what I'm doing? BUT not the program, like Sleep does.
  12. SciTE Folder
  13. Nobody knows? This is pretty strange...
  14. Come one guys, I explained what I'm trying to do. My code is a little complex, not very self explanatory, and not optimized yet. Here's the important parts: (theres no point in giving the entire program because it only works if you have the game running) Func SetupGUI() $g_Menu[0][0][0] = GUICtrlCreateMenu("&File") $g_Menu[0][1][0] = GUICtrlCreateMenuitem("Load", $g_Menu[0][0][0]) $g_Menu[0][2][0] = GUICtrlCreateMenuitem("", $g_Menu[0][0][0]) ; create a separator line GUICtrlSetState(-1, $GUI_DISABLE) $g_Menu[0][3][0] = GUICtrlCreateMenuitem("Exit", $g_Menu[0][0][0]) GUICtrlSetOnEvent($g_Menu[0][3][0], "Event") GUISetOnEvent($GUI_EVENT_CLOSE, "Event") $g_Menu[1][0][0] = GUICtrlCreateMenu("&Command") ;change 5 to 0 For $id = 1 To UBOUND($g_Account) - 1 GUICtrlCreateMenu("Account " & $id, $g_Menu[1][0][0]) $g_Menu[1][$id][0] = GUICtrlCreateMenuitem("Queue", $g_Menu[1][$id][0]) $g_Menu[1][$id][1] = GUICtrlCreateMenuitem("Position", $g_Menu[1][$id][0]) $g_Menu[1][$id][2] = GUICtrlCreateMenuitem("Roam", $g_Menu[1][$id][0]) GUICtrlCreateMenu("Guard", $g_Menu[1][$id][0]) $g_Menu[1][$id][3] = GUICtrlCreateMenuitem("Graveyard", $g_Menu[1][$id][4]) $g_Menu[1][$id][4] = GUICtrlCreateMenuitem("Bunker", $g_Menu[1][$id][4]) $g_Menu[1][$id][5] = GUICtrlCreateMenuitem("Halt", $g_Menu[1][$id][0]) GUICtrlSetState($g_Menu[1][$id][5], $GUI_CHECKED) GUICtrlSetOnEvent($g_Menu[1][$id][0], "Event") GUICtrlSetOnEvent($g_Menu[1][$id][1], "Event") GUICtrlSetOnEvent($g_Menu[1][$id][2], "Event") GUICtrlSetOnEvent($g_Menu[1][$id][3], "Event") GUICtrlSetOnEvent($g_Menu[1][$id][4], "Event") GUICtrlSetOnEvent($g_Menu[1][$id][5], "Event") $g_Menu[1][$id][8] = GUICtrlCreateMenuitem("", $g_Menu[1][$id][0]) $g_Menu[1][$id][9] = GUICtrlCreateMenuitem("Unload", $g_Menu[1][$id][0]) Next GUICtrlSetOnEvent($g_Menu[3][1][0], "Event") For $id = 1 To UBOUND($g_Account) - 1 ;$g_Menu[4][$id][0] = GUICtrlCreateLabel("Account " & $id, 15 + 110 * ($id - 1), 10) GUICtrlCreateGroup("Account " & $id, 15 + 110 * ($id - 1), 10, 95, 200) $g_Menu[4][$id][0] = GUICtrlCreateRadio("Queue", 25 + 110 * ($id - 1), 25) $g_Menu[4][$id][1] = GUICtrlCreateRadio("Position", 25 + 110 * ($id - 1), 45) $g_Menu[4][$id][2] = GUICtrlCreateRadio("Roam", 25 + 110 * ($id - 1), 65) ;$g_Menu[4][$id][4] = GUICtrlCreateLabel("Guard", 25 + 110 * ($id - 1), 90) GUICtrlCreateGroup("Guard", 22 + 110 * ($id - 1), 90, 81, 63) $g_Menu[4][$id][3] = GUICtrlCreateRadio("Graveyard", 30 + 110 * ($id - 1), 105) $g_Menu[4][$id][4] = GUICtrlCreateRadio("Bunker", 30 + 110 * ($id - 1), 125) GUICtrlCreateGroup ("", -99, -99, 1, 1) $g_Menu[4][$id][5] = GUICtrlCreateRadio("Halt", 25 + 110 * ($id - 1), 157) GUICtrlCreateGroup ("", -99, -99, 1, 1) GUICtrlSetState($g_Menu[4][$id][5], $GUI_CHECKED) GUICtrlSetOnEvent($g_Menu[4][$id][0], "Event") GUICtrlSetOnEvent($g_Menu[4][$id][1], "Event") GUICtrlSetOnEvent($g_Menu[4][$id][2], "Event") GUICtrlSetOnEvent($g_Menu[4][$id][3], "Event") GUICtrlSetOnEvent($g_Menu[4][$id][4], "Event") GUICtrlSetOnEvent($g_Menu[4][$id][5], "Event") $g_Menu[6][$id][0] = GUICtrlCreateButton("Start", 20 + 110 * ($id - 1), 185, 40, 20) $g_Menu[6][$id][1] = GUICtrlCreateButton("Stop", 65 + 110 * ($id - 1), 185, 40, 20) GUICtrlSetState($g_Menu[6][$id][0], $GUI_FOCUS) GUICtrlSetOnEvent($g_Menu[6][$id][0], "Event") GUICtrlSetOnEvent($g_Menu[6][$id][1], "Event") Next $g_Menu[7][2][0] = GUICtrlCreateLabel("Ready", 0, 225, 125 + 125 * ($g_Window[0][0] - 1), 16, BitOr($SS_SIMPLE, $SS_SUNKEN)) GUISetState(@SW_SHOW, $g_GUI) EndFunc Func Event() Local $msg = @GUI_CtrlId For $id = 1 To UBOUND($g_Account) - 1 Switch $msg Case $g_Menu[6][$id][0] ContinueCase Case $g_Menu[1][$id][0] ContinueCase Case $g_Menu[4][$id][0] If UpdateStatus($id, 0) Then ;SetWindowState($id, "Hide") EndIf Case $g_Menu[1][$id][1] ContinueCase Case $g_Menu[4][$id][1] If UpdateStatus($id, 1) Then ;SetWindowState($id, "Hide") EndIf Case $g_Menu[1][$id][2] ContinueCase Case $g_Menu[4][$id][2] If UpdateStatus($id, 2) Then ;SetWindowState($id, "Hide") EndIf Case $g_Menu[1][$id][3] ContinueCase Case $g_Menu[4][$id][3] If UpdateStatus($id, 3) Then ;SetWindowState($id, "Hide") EndIf Case $g_Menu[1][$id][4] ContinueCase Case $g_Menu[4][$id][4] If UpdateStatus($id, 4) Then ;SetWindowState($id, "Hide") EndIf Case $g_Menu[6][$id][1] ContinueCase Case $g_Menu[1][$id][5] ContinueCase Case $g_Menu[4][$id][5] If UpdateStatus($id, 5) Then ;SetWindowState($id, "Show") EndIf Case Else EndSwitch Next EndFunc Func UpdateStatus($id, $change) Local $status = GetStatus($id) If $status == $change Then Return False Else ;Msgbox(0, "State", $status & " " & $change) If BitAnd(GUICtrlRead($g_Menu[1][$id][$status]), $GUI_CHECKED) Then GUICtrlSetState($g_Menu[1][$id][$status], $GUI_UNCHECKED) EndIf If BitAnd(GUICtrlRead($g_Menu[4][$id][$status]), $GUI_CHECKED) Then GUICtrlSetState($g_Menu[4][$id][$status], $GUI_UNCHECKED) EndIf SetStatus($id, $change) If BitAnd(GUICtrlRead($g_Menu[1][$id][$change]), $GUI_UNCHECKED) Then GUICtrlSetState($g_Menu[1][$id][$change], $GUI_CHECKED) EndIf If BitAnd(GUICtrlRead($g_Menu[4][$id][$change]), $GUI_UNCHECKED) Then GUICtrlSetState($g_Menu[4][$id][$change], $GUI_CHECKED) EndIf Return True EndIf EndFunc Func Jump($id) SendKey($id, "{SPACE down}") Sleep(100 + Rand(1, 50)) SendKey($id, "{SPACE up}") Sleep(150000 + Rand(5000, 10000)) EndFunc If $g_Window[0][0] > 0 Then SetupGUI() While 1 For $id = 1 To UBOUND($g_Account) - 1 Local $status = GetStatus($id) Switch $status Case 0 Queue($id) UpdateStatus($id, 1) Case 1 Position($id) UpdateStatus($id, 2) Case 2 Roam($id) UpdateStatus($id, 3) Case 3 Jump($id) Case 4 Jump($id) Case 5 Halt($id) EndSwitch Next WEnd EndIf
  15. Looks like in SCiTE it's using the Win XP theme, but when I run it from the folder its using some old Win 98 or 2000 theme. Same thing. Same version.
  16. There is something in my code that won't allow me to do that. If I give code people aren't going to answer me. Best I can say is.. it's a while loop that goes through the IDs, 1 and 2, and does a long switch case (if statements) and if it's state is "jump" it will send the SPACE key. So I can't put the sleep after the switch case, because I don't want it sleeping that long after say a "turn" case. I only want it sleeping that long for the "jump" case. And since it's a while loop, it's going to do that "jump" case twice, and therefore the sleep twice.
  17. I've got a proggy that I want to send the key SPACE to 2 windows. Afterwards it will sleep for 2 minutes, and send the key to those 2 windows again. However, the way its programmed is it sends the key to window #1, then sleeps for 2 minutes, then sends the key to window #2, and sleeps for 2 minutes. Obviously that's problematic. I need 2 different instances of sleep. So the sleep for window #1 won't effect window #2. Also, is there any way to interrupt a sleep? Because it appears if you send a message to the GUI it will process it, but won't operate any functions until the sleep ends. I'd like to interrupt the sleep if there is one when a command is send to the GUI like exit and such. Thanks!
  18. When I Build a GUI and click Go from the menu, it looks all nice, but when I run the file directly from the folder it looks ugly and text is cut off a bit. Whats up?
  19. 3 parameters require a struct. So you use that to create a struct, give it the data it needs, then get the pointer of that struct for the parameter. Look at the links.
  20. Well I don't want to use Send() because I would like to alt+tab and do things. Using ControlSend() v3.2.2.0 or Send() it will only send it to the active window. Point is, something changed from v3.2.0.0 to v3.2.2.0 that broke ControlSend()'s ability to send a key to a window. I don't need another bot. I said I got it working no problem. I just couldn't get it working with the newest version. Isn't that odd?
  21. Doesn't seem to be working in v3.2.2.0. I built a script from here in v3.2.2.0 and it didn't work. It appears the ControlSend is sending it to the active window, not the window to the handle given. Like I'll highlight some text in Notepad, wait 3 mins, and it'll move the arrow keys in Notepad, not WoW. I built the script in v3.2.0.0 and it works great. Anyone know why? I double checked (5 times actually) and it just won't work with that version.
  22. Hopeless..
  23. Paying whoever figures it out, lol.
×
×
  • Create New...