Jump to content

StNick

Members
  • Posts

    2
  • Joined

  • Last visited

StNick's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I've added two functions I need for my project: #CS MoveSpriteWithTable syntax : MoveSpriteWithTable($S_Alias, TABLE) Note : $S_Alias = user defined string of the sprite created by function Sprite() TABLE = String with X- and Y-Positions in the format "X1 Y1 X2 Y2 etc.." Example: MoveSpriteWithTable($Sprite, "0 0 100 0 100 100 0 100") Would move $Sprite in a square #CE Func MoveSpriteWithTable($S_Alias, $S_DATA) $S_DATA = StringSplit($S_DATA, " ") Local $S_STRUCTs = "" For $i = 1 To $S_DATA[0] $S_STRUCTs &= "short;" Next $S_STRUCT = DllStructCreate($S_STRUCTs) For $i = 1 To $S_DATA[0] DllStructSetData($S_STRUCT, $i, $S_DATA[$i]) Next MsgBox(0, "", DllStructGetPtr($S_STRUCT)) DllCall($S_DLL, "long", "MoveSpriteWithTable", "long", $S_Alias, "long", DllStructGetPtr($S_STRUCT), "long", $S_DATA[0] /2, "long", 0, "long", 0, "long", 1) $S_STRUCT = 0 EndFunc #CS SpriteTableMode syntax : SpriteTableMode($S_Alias, MODE) Note : $S_Alias = user defined string of the sprite created by function Sprite() Mode = 0 / 1 0 = Loops a table 1 = Loop off #CE Func SpriteTableMode($S_Alias, $S_Mode) DllCall($S_DLL, "long", "SpriteTableMode", "long", $S_Alias, "long", $S_Mode) EndFunc Maybe someone has a use for it Great work jpam!
  2. Holaa^^ I want to hexedit an executable (*.exe) file with an autoit-script! Is that possible? How? Thanks in advance for your help!
×
×
  • Create New...