Jump to content

Dae

Active Members
  • Posts

    51
  • Joined

  • Last visited

Dae's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  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
×
×
  • Create New...