Jump to content

gumbitha

Members
  • Posts

    15
  • Joined

  • Last visited

gumbitha's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Anything is possible, however, creating an aimbot is very hard work...
  2. Just double checked, and my above idea does indeed not work. Anyone got any idea? Or do i have to use the ugly "double+double+double+long+short"?
  3. I just said I didn't understand it. I don't quite get how specifying sizes works. Do I need to use char[30] or something? $Data = _MemoryRead($Address, $OniHandle, char[30]) _MemoryWrite($Address, $Oni2Handle, $Data, char[30])
  4. Hi, currently writing the beta for an Oni Multiplayer (Yeah yeah, 7 years too late huh? Naw, I know plenty of people who will play). It will eventually be ported to C, but for now it is in Autoit, because I know it better, and I can test all my stuff easily. Now, my question: Take this function: _MemoryRead($iv_Address, $ah_Handle, $sv_Type) I know what I want for the Address and Handle, but I am confused on the type. I need to Read and Write to a 30 byte area. Is there a way to do it from a single function, or do I have to do double+double+double+long+short or some other timewasting nonsense? I don't quite understand what I need to do from DllStructCreate's help file. Anyone feel up to helping me?
  5. Does anyone know if it is possible\how to create a tree view with checkboxes next to the items? It is for an installer...>_>
  6. I still don't see what having SciTe running is doing for it... I dont know of any good way to make a GUI window that you could focus on without using a hotkey
  7. Yeah. I'm going to see _IsPressed() will work better. EDIT: Nope same behavior. Same with SciTe's compile option EDIT2: Removed sleep. Still no bananas. It detects the hotkey only when the game is NOT running, which is what I don't want. I might have to find a different way to tell autoit to close the process.
  8. When I run this through SciTe's "Go" option, it works just fine. However, when I compile it using "Aut2Exe v3", it fails to detect my keystroke when I am ingame. What it does: Detects Control+Alt+Q. If Jedi academy is running (jamp.exe), it closes the process. #include <Misc.au3> #NoTrayIcon HotKeySet("^!q", "close") While 1 sleep(10) WEnd Func close() $PID = ProcessExists("jamp.exe") If $PID Then ProcessClose($PID) MsgBox(0, "Subaru's MBII closer", "MBII successfully closed!") Exit Else MsgBox(0, "Subaru's MBII closer", "MBII wasn't running!") exit Endif EndFunc
  9. Thanks. But the way I have it now works just fine I understand exactly what is going on.
  10. GUICtrlSetImage($Button1, "BMP_TEST") Try that. Otherwise, I don't really know. Maybe someone who knows something will come along (not me hah)
  11. Heh. Got it figured out. I'll post what I got in a few minutes. I just wish I could make the png files scale. If anyone knows CSS, I could use some help on that small part. muttley Open the GUI, Browse to any png file in your computer, click "Do it!" and it is previewed. Now go to any other file (.txt works, other files too, if you choose *.* on the dropdown menu) and it goes away. #include <GUIConstants.au3> #include <EditConstants.au3> #include <StaticConstants.au3> #include <IE.au3> $IE = _IECreateEmbedded () #Region ### START Koda GUI section ### Form= $InputForm = GUICreate("Form1", 625, 212, 193, 128) $Label1 = GUICtrlCreateLabel("This is a test of the input system", 16, 8, 154, 17) $Input = GUICtrlCreateInput("Input file here...", 16, 48, 441, 21) $InputBrowse = GUICtrlCreateButton("Browse", 464, 48, 75, 25, 0) $Group1 = GUICtrlCreateGroup("", 469, 71, 134, 141) $TXMPrev = GUICtrlCreateObj($IE, 472, 80, 128, 128) GUICtrlSetState(-1, $GUI_HIDE) $Output = GUICtrlCreateInput("Output filename would go here", 16, 144, 433, 21, BitOR($ES_AUTOHSCROLL,$ES_READONLY)) $Execute = GUICtrlCreateButton("Do it!", 184, 104, 75, 25, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### ; $IE.navigate("about:blank") ; $IE.document.Write(GetPng("C:\Users\Jay Geise\Pictures\sfu semifinal.png")) $IE.document.body.scroll = "no" $IE.navigate("about:blank") $InputPath = "C:\none" While 1 $nMsg = GUIGetMsg() Select Case $nMsg = $GUI_EVENT_CLOSE Exit Case $nMsg = $InputBrowse $InputPath = FileOpenDialog("Select file:", $InputPath, "Onisplit Compatible Files (*.aif;*.dae;*.dds;*.obj;*.png;*.tga;*.txt;*.wav;*.xml;*.xmp)|M3GM\TRBS (*.obj;*.dae)|ONCC\TRAC\TRAM (*.xml)|SNDD (*.wav;*.aif)|SUBT (.txt)|TXMP (*.dds;*.xmp;*.png;*.tga)|(*.*)") If @error Then ContinueLoop GUICtrlSetData($Input, $InputPath) Case $nMsg = $Execute filetypechange() EndSelect WEnd Func GetPng($file) ;this is really only necessary for transparent images. IE has to use a filter to display them. Local $temp If FileExists($file) Then Local $s_html = "" $temp = "file:///" & StringReplace($file, "\", "/") $temp = StringReplace($temp, " ", "%20") $s_html=$s_html&'<?xml version="1.0" encoding="UTF-8"?><html><head></head><body scroll="no">' $s_html=$s_html&'<!--[if gte IE 5.5]><![if lt IE 7]><style type="text/css">' $s_html=$s_html&'#Image1 img{ filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0); }#Image1 { display: inline-block; }' $s_html=$s_html&'#Image1 { filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' & $temp & '"); }' $s_html=$s_html&'</style><![endif]><![endif]-->' $s_html=$s_html& '<img id="Image1" style="position:absolute;top:0;left:0;" src="' & $temp & '" left="0" top="0" width="128" /></body></html>' Return $s_html EndIf EndFunc Func filetypechange() $PathArray = StringSplit($InputPath, "\") $InputFile = $PathArray[$PathArray[0]] $InputExt = StringRight($InputFile,3) Switch $InputExt Case "txt" $OniType = "SUBT" Case "xml" $OniType = "ONCC\TRAC\TRAM" Case "obj" $OniType = "M3GM\TRBS" Case "dae" $OniType = "M3GM\TRBS" Case "DDS" $OniType = "TXMP" Case "XMP" $OniType = "TXMP" Case "PNG" $OniType = "TXMP" Case "TGA" $OniType = "TXMP" Case "wav" $OniType = "SNDD" Case "aif" $OniType = "SNDD" Case Else $OniType = "Null" EndSwitch If $OniType = "TXMP" Then $IE.document.Write(GetPng($InputPath)) GUICtrlSetState($TXMPrev, $GUI_SHOW) Else GUICtrlSetState($TXMPrev, $GUI_HIDE) EndIf If NOT($OniType = "Null") Then GUICtrlSetData($Output, $OniType) Else GUICtrlSetData($Output, "You can't input this type of file!" & " (." & $InputExt & ")"); EndIf EndFunc
  12. $PathArray = StringSplit($InputPath, "\") $Filename = $PathArray[$PathArray[0]] muttley
  13. Hey, I'm back. I'm trying to have there be a preview window for images in my GUI. Unfortunately, PNG support is a must, and that is exactly what AutoIt does not want to do, I know there is some way using the GDIPlus library, but everything I do seems to fail. Could someone help me? (If you are curious, this GUI will eventually be outputting commands to another program, but for now it just says what the converted filetype will be muttley. ) #include <GUIConstants.au3> #include <EditConstants.au3> #include <StaticConstants.au3> #Region ### START Koda GUI section ### Form= $InputForm = GUICreate("Form1", 625, 212, 193, 128) $Label1 = GUICtrlCreateLabel("This is a test of the input system", 16, 8, 154, 17) $Input = GUICtrlCreateInput("Input file here...", 16, 48, 441, 21) $InputBrowse = GUICtrlCreateButton("Browse", 464, 48, 75, 25, 0) $Group1 = GUICtrlCreateGroup("", 469, 71, 134, 141) $TXMPrev = GUICtrlCreatePic("", 472, 80, 128, 128) $Output = GUICtrlCreateInput("Output filename would go here", 16, 144, 433, 21, BitOR($ES_AUTOHSCROLL,$ES_READONLY)) $Execute = GUICtrlCreateButton("Do it!", 184, 104, 75, 25, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### $InputPath = "C:\none" While 1 $nMsg = GUIGetMsg() Select Case $nMsg = $GUI_EVENT_CLOSE Exit Case $nMsg = $InputBrowse $InputPath = FileOpenDialog("Select file:", $InputPath, "Onisplit Compatible Files (*.aif;*.dae;*.dds;*.obj;*.png;*.tga;*.txt;*.wav;*.xml;*.xmp)|M3GM\TRBS (*.obj;*.dae)|ONCC\TRAC\TRAM (*.xml)|SNDD (*.wav;*.aif)|SUBT (.txt)|TXMP (*.dds;*.xmp;*.png;*.tga)|(*.*)") If @error Then ContinueLoop GUICtrlSetData($Input, $InputPath) Case $nMsg = $Execute filetypechange() EndSelect WEnd Func filetypechange() $PathArray = StringSplit($InputPath, "\") $InputFile = $PathArray[$PathArray[0]] $InputExt = StringRight($InputFile,3) Switch $InputExt Case "txt" $OniType = "SUBT" Case "xml" $OniType = "ONCC\TRAC\TRAM" Case "obj" $OniType = "M3GM\TRBS" Case "dae" $OniType = "M3GM\TRBS" Case "DDS" $OniType = "TXMP" Case "XMP" $OniType = "TXMP" Case "PNG" $OniType = "TXMP" Case "TGA" $OniType = "TXMP" Case "wav" $OniType = "SNDD" Case "aif" $OniType = "SNDD" Case Else $OniType = "Null" EndSwitch If $OniType = "TXMP" Then If $InputExt = "png" Then ;What goes here? Else GUICtrlSetImage($TXMPrev, $InputPath) EndIf EndIf If NOT($OniType = "Null") Then GUICtrlSetData($Output, $OniType) Else GUICtrlSetData($Output, "You can't input this type of file!" & " (." & $InputExt & ")"); EndIf EndFunc
  14. Many thanks. I must have missed that part. I knew it had to be in there somewhere...muttley
  15. I am making a nice GUI for a command line run program, and I need some help. I cannot find any option to open a dialog to select a path, much like you would select a file with FileOpenDialog. Can anyone help me?
×
×
  • Create New...