Jump to content

gauss5546

Members
  • Posts

    17
  • Joined

  • Last visited

gauss5546's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I haven't scripted for autoit in years and have forgotten most of what I knew. I'm trying to make a script that will start clicking left mouse when I hit 'space' and will keep clicking left mouse until I click 'space' again. Currently I have a script that will left click 100 times when I hit 'space' and I will post that here. It also has a tooltip that comes up by the mouse to say it is clicking. Any help would be appreciated. Thanks. Global $Paused HotKeySet ("{PAUSE}","pause") HotKeySet ("{space}","one") HotKeySet ("{ESC}","close") AutoItSetOption ("MouseCoordMode",1) while 1 four() sleep(5000) wend Func click() $pos = MouseGetPos () MouseClick ("left",$pos[0],$pos[1],100,1) two() EndFunc Func one() While 1 $pos = MouseGetPos () ToolTip("Clicking",$pos[0] + 10,$pos[1] + 10) click() WEnd EndFunc Func two() While 1 $pos = MouseGetPos () ToolTip("Done",$pos[0] + 10,$pos[1] + 10) three() WEnd EndFunc Func three() While 1 $pos = MouseGetPos () ToolTip("Done",$pos[0] + 10,$pos[1] + 10) Sleep (100) WEnd EndFunc Func four() While 1 Sleep (5000) WEnd EndFunc Func pause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',1063,822) WEnd ToolTip("") EndFunc Func close() Exit EndFunc
  2. Just a note on that particular hot key you will have to use the "-" that is by the backspace button, not the one that is in the numpad. If you want to use the "-" that is in the numpad then you will have to use "{NUMPADSUB}" for your hotkey. For further reference with hot keys just look in the help file under the send() command.
  3. Check out this command. Winsetstate ("WARCRAFT III","",@SW_HIDE)
  4. I was not aware those functions were contained in NomadMemory.au3. Often I find it is easier to troubleshoot when you have the entire script rather than just a snippet. Every good Auto Pot bot I know of runs separately to ensure that the user does not die. If it is implemented into the script then it better be a fast script otherwise it won't effectively keep you alive.
  5. _MemoryOpen and _MemoryPointerRead are not valid commands. If you run the script dbzfanatic revised you will see the error message I get. Also, you need to tell the script the run the function by putting AutoPot() right at the begining like this: CODEAutoPot() Func AutoPot() Global $OffsetArray[2] $baseADDR = "0x00B6AECC" $OffsetArray[1] = "00000594" $PID = WinGetProcess("Game") $Process = _MemoryOpen($PID) $CurrentHP = _MemoryPointerRead($baseADDR, $Process, $OffsetArray) _MemoryClose($PID) While 1 If $HPInput < $CurrentHP Then WinActivate("Untitled - Notepad") EndIf WEnd EndFunc This way the script doesn't just shut off, instead it enables the function given. I am still working on revising this but any replys or suggestions would help.
  6. The only thing I can think of to make this script better is to add a sleep delay in between the mouse clicks. You could also make the sleep delay random, say maybe between 1 and 3 seconds, so the game server doesn't detect a "bot". What kind of game is WarRock anyway?
  7. Try this. CODEHotKeySet("^!z","SuckMe") HotKeySet("^!x","Inmebaby") While 1 Sleep(100) WEnd Func SuckMe() While 2 Sleep(100) If WinExists("WarRock") Then WinActivate("WarRock") MouseClick("left",263, 97, 1, 1) MouseClick("left",884, 684, 1, 1) MouseClick("left",800, 718, 1, 1) EndIf WEnd EndFunc Func Inmebaby() Exit EndFunc Your forgot to specify which mouse button the Auto It clicked!
  8. Thanks! I had to edit that script a bit to get it to work correctly and this is what I got it to. CODE#include <WinAPI.au3> $sPID = Run("notepad.exe") $hProc = _WinAPI_OpenProcess($PROCESS_ALL_ACCESS, False, $sPID) $aRet = _WinAPI_GetProcessAffinityMask($hProc) ;_WinAPI_SetProcessAffinityMask($hProc, 0x01) ;Set affinity for 1-st core ;_WinAPI_SetProcessAffinityMask($hProc, 0x02) ;Set affinity for 2-nd core _WinAPI_SetProcessAffinityMask($hProc, 0x03) ;Set affinity for both cores _WinAPI_CloseHandle($hProc) It works great now!
  9. I have looked through the Auto It help guide and forums quite a few times but I have a question that I cannot find an answer to. Is it possible to set a program to have an affinity for one core with Auto It? Visually the way to do this is to open the task manager, click the processes tab, right click on the process, click set affinity, check off which cpu(s) you want it to use. I am looking for a quick way through Auto It that I can change the affinity for a certain process.
  10. Prime95 takes way too long. If you want something updated and way faster to check that your cpu is stable then checkout IntelBurn. http://downloads.guru3d.com/IntelBurnTest-...nload-2047.html It will put your cpu at 100% better than Prime95 could. Be careful though when you use it cause this program CAN OVERHEAT YOUR PROCESSOR! As for going back to normal in just a few seconds you can click the "cancel" button at any time On a side note...if you could have AutoIt use Linpack then you could make your own device to put your cpu at 100%.
  11. Ah Thanks! I must have overlooked that when I was going through the help file.
  12. I am looking for a script that will change a specified process priority. My use for this script is that I need certain programs (anti virus and some pc games) to run at different priorities and using the ctrl+alt+del method and then manually changing the priority takes too long. I suppose you could say I'm looking for a shortcut but I'm not knowledgeable enough to know how to make it. The search function didn't come up with anything but maybe I was at a lack for words. Any help would be appreciated.
  13. Wow, awesome script.
  14. I have found that this script is most effective for what I needed. CODEGlobal $sRandom For $i = 1 to 8 $sRandom &= Random(0,9,1) next Send($sRandom) However, now I need the random number to be between 10000000 and 37000000. Thank You to everyone who tried to help me out previously.
  15. ok thanks I'll try it out!
×
×
  • Create New...