request for making a fishing script:
I found these cursor id for a game RIFT:
; Pressed 1(fishing rod) -> new cursor id = 0x29BF10B9 (Bluehand cursor)
; When clicked -> New id = 0x045210E1 (arrow cursor)
; Fish Caught -> New cursor id = 0x20BE10FD (fish cursor)
These cursor i found their files as well through resource viewer software. Added these in attachment.
#include <Misc.au3>
#include <Date.au3>
#include <MsgBoxConstants.au3>
#include <WinAPI.au3>
#include <WinAPIConstants.au3>
; Pressed 1(fishing rod) -> new cursor id = 0x29BF10B9 (Bluehand cursor)
; When clicked -> New id = 0x045210E1 (arrow cursor)
; Fish Caught -> New cursor id = 0x20BE10FD (fish cursor)
; X = Horizon
; Y = Vertical
; On Hover Take All color Decimal = 78120 (these value keep changing and restart due the button having some glow effects)
; On hover Take All Color HEX = 013128 (these value keep changing and restart due the button having some glow effects)
; Take All curent button pos: x = 688 , y= 459 (static value, should be auto detect pixel to determine location)
; Not on hover Take all Button Decimal Color = 6417
; Not on Hover Take all Button HEX Color = 001911
HotKeySet("{esc}","Terminate")
HotKeySet("z","Start")
HotKeySet("x","Stop")
Global $initiateState
$initiateState = 0
While 1
While $initiateState = 1
MsgBox($MB_SYSTEMMODAL, "INITIATE STATUS", "State: " & $initiateState)
;codes;
WEnd
WEnd
;GetMousePos();Constantly check where mouse pos is.
;CursorID();Run constantly to get cursor id for every cursor change.
;GetWinSize()
;MsgBox($MB_SYSTEMMODAL, "", "Width: " & $g_ClientSize[0] & @CRLF & "Height: " & $g_ClientSize[1])
Func CursorID()
Global $hCursor, $hOldCursor = 0
While True
$hCursor = _WinAPI_GetCursorInfo()
If $hOldCursor <> $hCursor[2] Then
$hOldCursor = $hCursor[2]
MsgBox($MB_SYSTEMMODAL, "Cursor", "The Cursor has changed the handle to the new cursor is "&$hCursor[2]&@CRLF)
EndIf
WEnd
EndFunc
Func Loadcursor() ; not functional at all.
$hInstance = 0
$sImage = "C:\Users\*name*\Desktop\Projects\RIFT\Cursor\Fish.cur"
$iType = $IMAGE_CURSOR
$iLoad = $LR_LOADFROMFILE
_WinAPI_LoadImage ( $hInstance, $sImage, $iType, 0, 0, $iLoad )
EndFunc
Func GetMousePos()
While 1
$aPos = MouseGetPos()
MsgBox($MB_SYSTEMMODAL, "MouseCoords", "Coordinates X: " &$aPos[0] &@CRLF & "Coordinates Y: " &$aPos[1]& @CRLF);
;$iColor = PixelGetColor($aPos[0], $aPos[1]) ;X, Y
;$iColor = PixelGetColor (688, 459) ;X, Y
;MsgBox($MB_SYSTEMMODAL, "Color-Decimal", "The decimal color is: " & $iColor)
;MsgBox($MB_SYSTEMMODAL, "Color-HEX", "The hex color is: " & Hex($iColor, 6))
WEnd
EndFunc
Func GetWinSize()
If WinExists ("[TITLE:RIFT]") Then
Global $g_ClientSize = WinGetClientSize("[Title:RIFT]")
Endif
EndFunc
Func Start()
$initiateState = 1
EndFunc
Func Stop()
$initiateState = 0
EndFunc
Func Terminate()
Exit
EndFunc
What i want is a way to detect the button "Take All". ( Window spy tool autoit gives all 0 value). Resource viewer got no button for me
A script that remembers USER mouse position on start and keeps that for as long this script is running as $aPos[0] and $aPos[1]. Whenever players or script moves the mouse, it returns back to that position with random pixel of plus minus 2px.
And as last part. Detect mouse change and validate it with switch case ( If cursor id = 0x29BF10B9 then MouseClick (Left)
If cursor id = 0x20BE10FD then MouseClick(Left) sleep 500 Loot()
And Func Loot() is the Detect Take All Button and do MouseClick(Left) and start over the script.
Hallo Freunde,
ich brauche ein kleines simples Programm, welches auf meinem vServer läuft.
Dieses Programm soll dafür sein, dass ich nicht dauerhaft online bin.
Was soll das Programm machen?
-> es soll einen Timer geben, den ich einstelle und wenn dieser abgelaufen ist, soll das Programm autom. zwei Mausklicks erledigen.
Hallo zusammen ich suche hilfe für eine AutoIT bot brauchen tu ich keinen kompletten code da ich wirklich nur das wo ich nicht weiter komme / weiss und ich noch anfänger bin erklärt und evt. nen befehl etc ... zum ein tippen haben möchte
derzeit habe ich folgendes problem
ich möchte das mein zukünftiger bot selbst entscheidet ob er sich einlogen muss oder nicht login selbst funtioniert einwand frei .....
weiterhin wollte ich wissen ob es sinn macht gewisse optionen / funtionen in einzellnen dateien abzulegen wenn sie z.b. durch unterschiedliche auflösung verändert sind ....
liebe grüße
hier nun der code der bissher steht ...
;; Mein erster Versucht
Ich suche ein Makro mit dem es möglich ist z.B. Taste E gedrückt zu halten so das im Spiel dann alle 0.5 Sekunden Taste E gedrückt wird.
Dann bräuchte ich nicht mehr auf die Taste zu hämmern und die Finger werden auch entlastet
Requesting a grenade cooking timer, something like this with a numeric countdown and maybe a metre.
The simplest way: Enter a value into the textbox, click set, and any time you click it would restart the countdown.
A little more complicated: Only trigger the timer if the last keypress was the 4/$ key, the grenade slot in the game I'd like to use it for. Maybe make that something that can be customised too for a little more general usability.
Either one would be greatly appreciated, thanks in advance to any takers.
Is there some good stuff out here so could be helpfull to my script ?
Iam searching for something that I can use in my script so will read the MC Adress of the Computer, where my script is sent to. So its not able to let the other person to send it to others, where it wont work? Is this possible? I have Searc around on AutoIt forum also, but I have tried around with a friend, but have been closed minded :O Do anyonw here have a usefull tip for me ? Best regards Oxy
First of all you're looking for the MAC-Address, not the "MC Address".
Second of all it is possible to do so but this would require a string inside your program containing the mac-addresses or getting them online.
This is a big weak point since you can manipulate online traffic or simply decompile the application because there are many decompilers for Au3.
First of all you're looking for the MAC-Address, not the "MC Address".
Second of all it is possible to do so but this would require a string inside your program containing the mac-addresses or getting them online.
This is a big weak point since you can manipulate online traffic or simply decompile the application because there are many decompilers for Au3.
Ok, thank you for answering What is the best to do then ? What would you`ve done ?
AutoIt Script Requests 07/31/2008 - Dekaron - 10 Replies Meh...bored with my scripts atm (releasing another tomorrow...), so I'm gonna ask you all what you want in a script. Post your ideas here.