Jump to content

Lambort

Active Members
  • Posts

    35
  • Joined

  • Last visited

Everything posted by Lambort

  1. Heh, I never would have figured that out. Thank you so much . One more thing: How could I get it to search for the pixel again?
  2. Argh. is there any way that I can search for the pixel for 30 seconds and if it doesn't find it then do the next command?
  3. I tried that and i get: "C:\Documents and Settings\Bran\Desktop\gamemessedup.au3 (39) : ==> Subscript used with non-Array variable.: MouseClick("right", $coord[0], $coord[1], 1) MouseClick("right", $coord^ ERROR"
  4. HotKeySet("{F2}", "start") HotKeySet("{ESC}", "exitt") While 1 Sleep(100) WEnd Func Start() WinActivate("") sleep(2000) Send("1") sleep(1000) While 1 $coord = PixelSearch( 300, 0, 1024, 700, 0xffffff, 7 ) If Not @error Then MouseClick("right", $coord[0], $coord[1], 1) Sleep(3000) MouseClick("left", 54, 257) Sleep(2000) Send("{e down}") Sleep(1000) Send("{e up}") Sleep(1000) Send("1") ;right EndIf If @error = 1 Then Send("1") MouseClick("right", $coord[0], $coord[1], 1) Sleep(3000) MouseClick("left", 54, 257) Sleep(2000) Send("{e down}") Sleep(1000) Send("{e up}") Sleep(1000) Send("1") ;right EndIf WEnd EndFunc Func exitt() Exit EndFunc I get the error: "Subscript used with non-Array variable" All I want to do is get it to where: If it doesn't find the pixel color "0xffffff, 7" after searching for 30 seconds Then: Send("1") MouseClick("right", $coord[0], $coord[1], 1) Sleep(3000) MouseClick("left", 54, 257) Sleep(2000) Send("{e down}") Sleep(1000) Send("{e up}") Sleep(1000) Send("1")
  5. Really nice, seems like it would work perfect. However no matter what hotkey I set it to it seems to do 2 clicks. hmmm, maybe I need to add some sleep()'s in somewhere i'm not sure. I'll mess with it, seems really close thanks!
  6. I didn't know where to get it, sorry.....
  7. Well I didn't really have much to begin with lol. I'll start from scratch as you suggested and try to figure this baby out.
  8. I wanted it to wait for the left mouse click then when it is clicked it is clicked: 1 for single() 2 for double() 3 for burst() I removed the if _ispressed like you suggested and it still doesn't work. ???
  9. My question is- how can I make this script work to where: if you press "6" then click with mouse1 it will press Mouse1 once. if you press "7" then click with mouse1 it will press Mouse1 twice. if you press "8" then click with mouse1 it will press Mouse1 tree times. #include<GUIConstants.au3> #include<Constants.au3> #include<String.au3> #Include <Misc.au3> $GUI = GuiCreate("Burst Fire - By Mayonnaise", 150, 250,(@DesktopWidth-500)/2, (@DesktopHeight-400)/2 , $WS_OVERLAPPED+$WS_CAPTION+$WS_SYSMENU+$WS_MINIMIZEBOX+$WS_VISIBLE+$WS_CLIPSIBLINGS) Global $Paused HotKeySet("{6}", "Single") HotKeySet("{7}", "Double") HotKeySet("{8}", "Burst") HotKeySet("{ESC}", "Terminate") $dll = DllOpen("user32.dll") Func Single() While 1 Sleep ( 250 ) If _IsPressed("01", $dll) Then MouseClick("Left", "", "", 1) ExitLoop EndIf WEnd DllClose($dll) EndFunc $dll = DllOpen("user32.dll") Func Double() While 1 Sleep ( 250 ) If _IsPressed("01", $dll) Then MouseClick("Left", "", "", 1) sleep(100) MouseClick("Left", "", "", 1) ExitLoop EndIf WEnd DllClose($dll) EndFunc $dll = DllOpen("user32.dll") Func Burst() While 1 Sleep ( 250 ) If _IsPressed("01", $dll) Then MouseClick("Left", "", "", 1) sleep(100) MouseClick("Left", "", "", 1) sleep(100) MouseClick("Left", "", "", 1) ExitLoop EndIf WEnd DllClose($dll) EndFunc While 1 Sleep(100) WEnd Func Terminate() Exit 0 EndFunc
  10. Can you post this code that shows how to change the tooltip in an external application? As for this. Thanks, but I really can't figure out how to get it to work. It seems that it only changes the cursor for the GUI it creates. I suck, I know, But I'm trying to learn
  11. Yeah, it does minimize, I suppose the only solution is to get a tooltip working correctly, even if it flickers that's ok, if I can just get it dead center. I also noticed with my tooltip the game shows my cursor through the game. Any way to hide or remove the tooltip with it created so just the cursor shows through?
  12. Is there any way to change the mouse cursor when a specified window is active? This window is not made in autoit, it is actually a full screen game. Any ideas? Also, is there any way to change the background color/font color/size of a tooltip?
  13. Hmm, well.. I've tried a couple more things with this. Splash screen doesn't work over top of the game here is what i tried: #include <GUIConstants.au3> Global $Paused HotKeySet("{ESC}", "Terminate") HotKeySet("{F8}", "TogglePause") GLOBAL $MESSAGE = "" GUICreate(":xhair: - By Mayonnaise",55, 280, -1, -1, $WS_EX_TOOLWINDOW); will create a dialog box that when displayed is centered GUICtrlCreateLabel( "Select your xhair", 21, 2, 100, 25, -1) GUICtrlCreateLabel( "and press Go!", 21, 14, 100, 25, -1) GUICtrlCreateLabel( "Hotkeys are:", 21, 29, 100, 25, -1) GUICtrlCreateLabel( "F8 - On/Off", 21, 43, 100, 25, -1) GUICtrlCreateLabel( "Esc - Exit", 21, 55, 100, 25, -1) GUICtrlCreateLabel( "Made By: Mayonnaise", 6, 225, 200, 25, -1) $Red=GUICtrlCreateButton ("Red", 21,74,75,25) $Green=GUICtrlCreateButton ("Green", 21,99,75,25) $MyList=GUICtrlCreateLabel( "", 300, 50, 100, 25, -1) GUICtrlSetLimit(-1,200); to limit horizontal scrolling GUICtrlSetData(-1,$MESSAGE) $Blue = GUICtrlCreateButton ("Blue", 21,127,75,25) $Go = GUICtrlCreateButton ("Go!", 21,187,75,25) $White=GUICtrlCreateButton ("White", 21,153,75,25) GUISetState () $msg = 0 While $msg <> $GUI_EVENT_CLOSE $msg = GUIGetMsg() Select Case $msg = $Red SplashImageOn ( "xhair", "red.bmp", 9, 9, @DesktopWidth/2, @DesktopHeight/2, 1 ) WinSetState ( "xhair", "", @SW_HIDE ) MsgBox(0x0, "Loaded!", "The red crosshair has been loaded.") Case $msg = $Green SplashImageOn ( "xhair", "green.bmp", 9, 9, @DesktopWidth/2, @DesktopHeight/2, 1 ) WinSetState ( "xhair", "", @SW_HIDE ) MsgBox(0x0, "Loaded!", "The green crosshair has been loaded.") Case $msg = $Blue SplashImageOn ( "xhair", "blue.bmp", 9, 9, @DesktopWidth/2, @DesktopHeight/2, 1 ) WinSetState ( "xhair", "", @SW_HIDE ) MsgBox(0x0, "Loaded!", "The blue crosshair has been loaded.") Case $msg = $White SplashImageOn ( "xhair", "white.bmp", 9, 9, @DesktopWidth/2, @DesktopHeight/2, 1 ) WinSetState ( "xhair", "", @SW_HIDE ) MsgBox(0x0, "Loaded!", "The white crosshair has been loaded.") Case $msg = $Go WinSetState ( ":xhair: - By Mayonnaise", "", @SW_HIDE ) EndSelect Wend Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) WinSetState ( "xhair", "", @SW_SHOW ) WEnd WinSetState( "xhair", "", @SW_HIDE ) EndFunc Func Terminate() Exit 0 EndFunc I'm working with the tooltip now, here is what I have so far with it: #include <GuiConstants.au3> Global $Paused HotKeySet("{F8}", "TogglePause") HotKeySet("{ESC}", "Terminate") $MainGUI = ToolTip("+", @DesktopWidth/2, @DesktopHeight/2, "", 0) Sleep(20000) GUISetBkColor (0x00FF00) WinSetOnTop ("xhair", "", 1) WinSetTrans("xhair", "", 250) guisetstate() While 1 Wend Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip("+", @DesktopWidth/2, @DesktopHeight/2, "", 0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc So my questions are: 1. Is there any way to make the splash image work over the game? 2. Is there a way to customize the tooltip window size, background color, and text color? and 3. Can you get rid of the shadow tooltip casts?
  14. Global $Paused HotKeySet("{F8}", "TogglePause") HotKeySet("{ESC}", "Terminate") $MainGUI = GUICreate("xhair", 3, 3, @DesktopWidth/2, @DesktopHeight/2, $WS_POPUP, $WS_EX_TOOLWINDOW) GUISetBkColor (0x00FF00) WinSetOnTop ("xhair", "", 1) WinSetTrans("xhair", "", 250) guisetstate() While 1 Wend Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) GUISetState ( @SW_HIDE ) WEnd GUISetState ( @SW_SHOW ) EndFunc Func Terminate() Exit 0 EndFunc As you can see it should be on top of everything else that is currently running. It works on the desktop but as soon as I open up my full-screen game it doesn't show the box overtop of the game. Any idea on how to get it to show up over the full-screen application?
  15. That looks really nice, but I'm new to autoit and that is very hard for me to follow. However, I will try with it some more and see if I can get what I want accomplished. Thanks Edit: Yes, I do know both the beginning and end of the string. Beginning: Launchscript":" End: &pub10e Or is it supposed to be the beginning and end of the exact text I want: Beginning: hangame: End: 1&enc=y
  16. Let's say we have some text in an IE browser that says: {"isLogin":true,"gameId":"u_gbound","isValid":true,"launchScript":"hangame://http://gstr.ijjimax.com:10000/?cksum=830&k22e=U_&kpw=1&enc=y&pub10e=514&cksm=830","isUnder":false} How would I get autoit to just copy the bolded text. I need it to copy the text after "LaunchScript":" but before &pub10e I'm not even sure if this can be done in autoit.. -Alyssa
  17. I give. that doesn't help me with pixelsearch at all, I'm just going to search the forums through 50+ pages seeking my answer (i've already been through the first 20). -Alyssa
  18. Yeah, I looked at the help file for like the 5th time for the pixelsearch function. I guess I just overlooked that part, I know it has to be something to do with $pix[0], $pix[1] but what goes before that to make it work? I can only find mouse movement/click functions that have coordinates.
  19. it returns $pix does it not?
  20. What's wrong with this? I selected a color from the "Play Live" button at: http://gunbound.ijji.com/ and want it to press enter on that button so it starts. -Alyssa
  21. Yeah man, I'll probably do some resolution check-box type thing, so many pixel colors are the same on that page. Is it possible to get the mouse to click the specified point in a hidden IE window?
  22. This won't work for all resolutions though will it? Because I entend for some friends to use this too. I may have to stick with the pixel thing??
  23. How can i pixelsearch in an IE window and press the "Play Live" button?
  24. How can I make my program click/press enter on a button in an IE window when the IE window is hidden? It isn't an image file so it's not as easy as I hoped, it's a button made in flash. You can see it here: http://gunbound.ijji.com Its the "Play Live" button.
×
×
  • Create New...