Jump to content

pacman1176

Active Members
  • Posts

    45
  • Joined

  • Last visited

About pacman1176

  • Birthday 10/17/1987

Profile Information

  • Location
    Erie, PA, US

pacman1176's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. I'm doing a senior project, and we'd really like to find out what type of software tools AutoIt uses to create their helpfile. It is the cleanest, most awesome helpfile I've probably ever read. Does anybody here know?
  2. Ah, yes! Of course, I can't find it because it's pinned as a topic on the top of the list of example scripts. Ok, solved thanks!
  3. I've used AutoIt on and off for the past 6 years, and I'm returning the favor by getting the word out (a little bit) about AutoIt to my programming class in the form of a presentation. I want to do a cool demonstration on what autoit can do, and I remember a forum topic that loaded an IE frame into a GUI and played a flash game that required looking at the pixels to move the mouse for a pong-like game (I think). Does anyone remember what this was called, or if it's still around if someone can help me by linking me to it? Or, if you have other ideas of little demonstration scripts that would appeal to a bunch of Software/Computer college seniors, that would be awesome! Thanks!
  4. I'm not sure why your code doesn't function properly (aside from the above comment), but this is another way to achieve the same goal using some different concepts. I didn't run this, but you get the idea. This code will run indefinitely. When a user presses F9, it will click once and pause for 9 minutes. How it's written, if they press F11 then F9 again while in the 9 minute wait, it will not respond to anything until the wait is up. If you want it to be able to stop its wait and restart, consider using a for loop that sleeps for the same amount of time, each iteration should check if your shared $click is changing. MsgBox(0, "", "information here...") ;shared variable Global $click = false HotKeySet("{F9}", "startclick") HotkeySet("{F11}", "HK_STOP") ; functia click Func startclick() $click = true EndFunc ; stop click Func HK_STOP() $click = false EndFunc ; keep the program running while(1) sleep(50) While ($click=true) mouseclick("left") sleep(9*60*1000) WEnd WEnd
  5. You won't find support for malicious programming here.
  6. Fullscreen games are often difficult to simulate mouse clicks with. Especially ones that have special controls to prevent simulation. If it's a full screen game, see if it has a 'windowed' option where you can play it in a window. It might help telling us what the game is too. Also, a question, are you sure this is what you want your program to do? MouseClick("right") MouseMove(640, 512) MouseMove(1280, 512, 100) MouseMove(0, 512, 100) MouseMove(640, 512) MouseClick("left") You know that it doesn't click in between those moves. If you want a function that moves the mouse to a location then clicks it, you can use MouseClick but add the x, y coordinates such as this example: Here is the documentation on the function and its parameters: MouseClick ( "button" [, x, y [, clicks [, speed ]]] ) As you can see, "Right" is the first parameter, 200 is x coordinate, 500 is y coordinate, 1 is the number of clicks, and 0 is the speed (which we will call just about instant)
  7. Nice idea. Seems fun too. In that case, others can do some fixing together without the need of constant file transfer. That means, the server hosting this chat room or something has to have an autoit compiler installed for checking and etc. It seems pretty distant, but I'd like to eventually make it like a SciTe plugin or something like that where everyone can compile/beta run the code. This is a great idea. It would be much more stable (and easier to code, perhaps even more conventional too) than seeing the changes other users are typing as they are being typed. Plus I can see line insertions made similarly, perhaps have buttons similar to the break point buttons in compilers, one for editing, one for making a line insertion. There's a lot of things that can be done with this, I suppose. I also planned to make a chat for all active users. This is actually where I decided to start, and I've got the GUI started for just making a chat program (mostly for the learning experience). It's included on the first post.
  8. You forgot the square root, plus it's good practice to have it return value rather than perform that operation in the function. I would do it like this: While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 GuiCtrlSetData($results,WinHypotenuse($WinWidth, $WinHeight)); Calcualte button pressed and the hypo is calculated [...] Func WinHypotenuse($WinWidth, $WinHeight) $WinHyp = $WinWidth*$WinWidth+$WinHeight*$WinHeight; return sqrt($WinHyp); Endfunc edit: forgot code tags
  9. MsgBox(1,"",Chr(Number('\2'))) Returns a whole lotta nothin. MsgBox(1,"",Number("/2")) Returns zero. Is this the output you wished to have? And it's kind of hard to tell, but what are you trying to replace exactly. I think Armand meant $str = "'HTMLtextHERE'</a> (1993)" but a simple typo or overlook, just using an example.
  10. Does anyone know of a website to test certain port numbers such as http://www.emule-project.net/home/perl/gen...ng=1033&l=1 but more like this (this is IP) ckip.dyndns.org -OR- an easy way/function to test if ports are open and able -OR- a way to transmit data for a chat-like program without using TCP/UDP ports? Please and thank you
  11. I have almost no experience with autoit and the internet, except downloading files and pinging But I hope to implement the chat first, as I figure others have done that, I can learn the basics for development.
  12. The PixelSearch has 4 parameters that define the rectangle area which you would like to search for the specific pixel. $coord = PixelSearch( 0, 0, 1280, 1024, 0xFF0000 ) The first two are the (x,y) of the upper left corner of the rectangle. In your example, (0, 0) - or the very top left of the screen. The second two are the (x,y) of the bottom right corner of the rectangle. In your example, (1280, 1024) - or the very bottom right of the screen (if you are using 1280 x 1024 resolution). If you want to make the box smaller, i.e. if there are a lot of places where the one color is and you have a better idea of where it is close to, then change the parameters. $coord = PixelSearch( 200, 200, 250, 750, 0xFF0000 ) (200,200) to (250,750) Would be roughly in the shape of this, consider the outer box your monitor and the inner box the pixel rectangle.... ------- (0,0)___________________________________________ |------------------------------------------------------------------------| |------------------------------------------------------------------------| |--------________----------------------------------------------------| |--------|----------|-----------------------------------------------------| |--------|----------|-----------------------------------------------------| |--------|----------|-----------------------------------------------------| |--------|----------|-----------------------------------------------------| |--------|----------|-----------------------------------------------------| |--------|----------|-----------------------------------------------------| |--------|----------|-----------------------------------------------------| |--------|----------|-----------------------------------------------------| |--------|----------|-----------------------------------------------------| |------------------------------------------------------------------------| |------------------------------------------------------------------------| |------------------------------------------------------------------------| |------------------------------------------------------------------------| |__________________________________(1280, 1024)_| I cannot believe i just did that. I sure hope this helps you understand ... lol
  13. What I'm looking to design is a server-based program where select users may log in and actively edit code where changes made on one users screen are instantly (well instant minus ping) shown on all users screens. Kind of like Wikipedia, but used for coding. It would likely have a chatroom of the users. The premise to the program would be a notepad-like editing program like SciTe (actually it would be nice to make this a plugin for SciTe), where a host can set options to lock code, accept incoming user connections.. a bunch of stuff like that. The idea would be to assist group programming projects on seperate computers. My question is.. has this ever been done in Autoit.. or even beyond Autoit? And, does this seem possible? I think it would be extremely useful Here's my start: codeTool_1_.au3
  14. for $i = 1 to 33000 beep($i,2) traytip("Beep",$i,1) next You can fool someone into thinking their computer is going to blow up if they have an onboard speaker. Kind of sounds like the olddddd Scorched Earth game.
×
×
  • Create New...