Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Ante0
  • Content: Threads
  • Order by date
  1. Ante0

    Asus M2N-MX stuck at Post screen

    Something is wrong with my computer, again... About a year ago it would start to randomly hang/reboot, that was because I had put the "reset button" cable incorrectly on the mb. So I simply just removed it and problem was solved. Now it's starting again, but this time it wont even boot. It just...
  2. Ante0

    Drawing in a game using DirectDraw

    Hi, I'm trying to figure out how to use DirectDraw (Maybe using Delphi X) to Draw text inside a game. Like the program Fraps does when it displays your FPS ingame. I would like to make a Clock, as the game I play doesn't have any ingame Clock and it's a pain to Alt+Tab each time :) Also, I would...
  3. Ante0

    Php upload: Return Code 6

    What does this mean? I have this upload page where I can upload files of all sorts to my server, but all of a sudden it just says Return Code: 6. Here's my code: <?php if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } else {...
  4. Ante0

    Random &quot;Can't view this page&quot; IE and firefox errors.

    Ever since I installed Vista I've gotten alot of random "Cannot view this page" errors on IE and FF. But if I refresh the page it views it just fine... Has anyone else encountered this? I think I remembered seeing a thread about this before here, but I can't find it now. Either it's Vista or...
  5. Ante0

    fopen fwrite help!

    I need some help with this... Well, I'm currently just testing some things with writing and reading files on my website, so far it's been good. But I'm kinda stuck right now. Here's my code: <?php $ipi = getenv("REMOTE_ADDR"); $counter = "test.txt"; $fd =...
  6. Ante0

    I want to make a file undeletable

    Yes, I need to make a file "used by Windows". That fun message you receive when the Exe is "locked" into Explorer.exe at boot. The reason I need this is because I need to test a program I made. It will end Explorer.exe, delete the file, start Explorer.exe. But since I have no file to test it on...
  7. Ante0

    validation to send email/message

    Hi, I'm using this php script I made myself... On my website I have a page called Contact, so you can send an email to me using a simple form. To decrease spam messages I added a simple validation script: contact.php $num1 = rand(1,20); $num2 = rand(1,20); <input type="hidden" name="numb1"...
  8. Ante0

    How to extract image from a header and display in a TImage?

    Is it possible to extract an image(Icon) from a Header in an exe and place it in a TImage in your application? I know the image is located at 0x68, but I have no idea how to go any further... Thanks for any help :)
  9. Ante0

    Using a Listbox to copy Text into an Edit, and Digits into a Memo?

    I'm working on a cheat list program. But now I'm kinda stuck. What it does is pretty simple, and makes it easier for me... I insert "Cheat Name" into an Edit, and the code(s) into a Memo. Then click on a button and it goes to a ListBox. Here's an example: Edit: Cheat1 Memo: 1234 1234 1234 1234...
  10. Ante0

    Need someone to test this for me.

    ... var UnlockKey: integer; PassKey: integer; ... procedure CheckKey; begin PassKey:= StrToInt(Edit1.Text); UnlockKey:= ((((PassKey*2)+435)*4)+56); if (Edit1.Text <> '') and (Edit2.text = IntToStr(UnlockKey)) then begin ShowMessage('Code Accepted!') end else ShowMessage('Wrong code!') end...
  11. Ante0

    Making external program stay on top?

    Is it possible to send stayontop to another program using FindWindow and that? It's a game, and I play it in windowed mode and I dont like when it gets minimized when clicking outside of the window. It has no -stayontop parameter or anything like that.
  12. Ante0

    Reading a Executable offset -&gt; Ascii

    How would you do to read some bytes at a offset then converting the information into Ascii. I tried with this: var fb: file of byte; b: byte; offset: string; begin fb := Edit1.text; //Path to exe. offset := '$'+Edit2.text; //Offset b:= $90; Seek(fb,Offset); Read(b); Edit3.text := b; end...
  13. Ante0

    Adding your program to open specific .ext

    This has been bugging me for a long time now, but I can't figure out how to do it... I just made a simple image viewing program, like the one that comes with Windows for previewing images. So I thought, I'll add .gif to be opened with my prog. But when I click any .gif my program opens, but the...
  14. Ante0

    Need some DLL explanations :)

    Hi, I made a plugin for a mp3 player that I made. the dll code looks like this: library CallMSNDLL; uses SysUtils, Classes, Windows, Messages, uFMOD; {$R *.res} function CurrentPlay(ARTIST:string) : string; Export; var handleMSN:THandle; structCopy:TCopyDataStruct...
  15. Ante0

    Autosave Image and autoname

    Hi, I made this screenshot program that takes a screenshot of desktop. And I use shortcut Ctrl+s to save it to a file with (ExtractFilePath(ParamStr(0))+'Image.bmp'); Now, If I want to autoname the Image.bmp with numbers 01-99 like this: Image[number].bmp How should I go forward with this? I'm...
  16. Ante0

    Listbox, select item by code?

    Is there any way to select an item in a listbox by code? I have this playlist for an mp3 player that I've made, but when a song is playing it doesn't select the item in the listbox. If I for example doubleclick on any item in the list, it plays in the mediaplayer component, but when it changes...
  17. Ante0

    Load Random Image and Text OnCreate

    Hi, I just made this code, but it doesn't really work ok. Memo2.Lines.LoadFromFile(ExtractFilePath(ParamStr(0))+'names.txt'); MonName.Caption := Memo2.Lines.Strings[Random(75)]; FileListBox1.Directory := ExtractFilePath(ParamStr(0))+'\pictures\mobs\'; ListBox1.Items := FileListBox1.Items...
  18. Ante0

    OpenDialog filename to Editbox

    Hi, is there a way to get a OpenDialog Filename to show in an Edit or ListBox, but not show Fullpath, only the FileName in Delphi 7. I.e. Instead of D:\Folder\Bla.file it should only show as Bla.file. I'm making an Mp3 player, and the ListBox I'm using as a Playlist doesn't "show" the filename...
  19. Ante0

    OpenDialog on cancel

    Hi, I'm pretty new at this, but I need some help :) I just made an MP3 player that runs off the system tray. It's pretty simple, just open a song, then it automatically plays it. My question is, when I open a song and then click on Cancel in the Openfile Dialog, I get an error. Since no song is...

Part and Inventory Search

Back
Top