
madScientist
Members-
Posts
17 -
Joined
-
Last visited
Profile Information
-
Interests
game ai
madScientist's Achievements

Seeker (1/7)
0
Reputation
-
Text editable GuiCtrlCreateInput
madScientist replied to madScientist's topic in AutoIt GUI Help and Support
In the tutorials i've read there was one mention of BitOr in the middle of a huge code block and i missed it. I'm now using a global variable for the styles to future-proof my code. Thank you, you're a lifesaver! -
This is my first time creating a GUI with autoit. I'm starting with with $ctrId=GUICtrlCreateInput( $ctrIdValue, 180, 20, 100, 10,$ES_AUTOHSCROLL & $ES_AUTOVSCROLL) but i can only type numbers in it. I figured out how to get/set the values from code (and use a ini file) but i can't seem to find out how to make an alpha-numeric editable input. Could someone point me in the right direction? Thank you
-
He did not say 'local network'. And ftp (or sftp for secure transfers) might sometimes be better than copying files from a share. And it's cross-platform, standardized and easy to set up.
-
Second thought... if the pc's aren't remotely conectable you could grab a file off a web server (local network or on the internet)... something like 1|c:\copy_here.txt|http://web/file.txt 2-10,15,22|c:\copy_here.txt|http://web/file_2_10.txt The above format has 3 parts: - number of pc - where to put the file - where to download the file from This would ensure that when the pc boots up it will download the files. You don't even need to have them all online at the same time. Just upload the file list and the files and your work is done. With a little php and mysql tinkering you could also build a log of what pc downloaded wich file and when (and so on). Can you give me more information about your network and other things that are closely related to what you're trying to do?
-
Why not use ftp?
-
Wow update saver \ distributor
madScientist replied to vtuls's topic in AutoIt General Help and Support
I usually map a ftp to a drive letter and use microsoft's synctoy for this, but I will test your script and see if it's a better solution. Haven't had the time to read all the posts but do you make sure wow.exe is not running before updating? -
MouseClick doesnt work on client
madScientist replied to hagaizenberg's topic in AutoIt General Help and Support
Using same OS on all pcs? And same browser? -
HotKeySet needs to be put BEFORE the loop if you want to use it inside the loop.
-
Application to detect activity
madScientist replied to madScientist's topic in AutoIt General Help and Support
Thank you both for your solutions, they work like a charm. -
Firstly, this is not a keylogger request, read carefully please. Secondly, if it can't be done in any way except with a keylogger I'm not interested in doing it. I work on various projects and have my own little ajax-driven web app on wich i can start/stop a timer when i start working and when i'm done, so i can count how much time i spent on doing something. What i thought about integrating (it's similar to the odesk software) is an autoit script that gets * the current window name [done] * mouse position for detecting movement (don't care about the clicking part) [done] * the number of keys pressed while the window was active (i don't care what keys are pressed) * (haven't decided on this yet but maybe also) a screenshot of the active app [easily done] Is there any way to check if a key is pressed (or, speaking in general, if someone is using the keyboard) in autoit? I'm trying to do this using windows api's or dll's and without installing a keylogger and checking the log or stuff like that (i can do it that way but i don't want to). Thank you kindly for any advice
-
It's illegal and you'll probably get caught. I'd recommend you don't do it.
-
FileWriteLine question (noob here)
madScientist replied to WilliamWhite's topic in AutoIt General Help and Support
I use it like this $file=FileOpen("log.txt",1) if($file<>-1)then FileWriteLine($file,$logtext) FileClose($file) endif And never had any problems. I also have an else in there wich sleeps for 10 miliseconds and tries to re-open the file depending on other options.. ---Edit1 You have if $fileHandler=0 In the autoit help file it says that on failure it returns -1, not zero -
Send a click when position = Color
madScientist replied to Kingy's topic in AutoIt General Help and Support
You need to have everything repeated untill you stop the script... While 1 $var = PixelGetColor (300,100) If $var = 0xFF0404 Then MouseClick ( "left" ) EndIf WEnd Next... if the leftclick needs to be at 300, 100 you have to change the MouseClick into MouseClick("left", 300, 100, 1, 5) - click left at 300, 100, once, and move the mouse there with the speed of 5 (1 is almost instant, 10 is slower, etc) and if the pixel isn't the right color let's click at the usual spot While 1 $var = PixelGetColor (300,100) If $var = 0xFF0404 Then MouseClick("left", 300, 100, 1, 5) else MouseClick("left") EndIf WEnd Now the main issue is that it will click VERY fast - a few hundred times per second posibly so.. at the end of the loop lets wait 0,5 (to only click twice per second). We're gonna do that with sleep(500) Last thing... if the pixel is the right color it will move the mouse and the mouse will remain there and keep clicking. But if you want the mouse to go to the position it was before the click to 300, 10 you need to save it's position While 1 $var = PixelGetColor (300,100) If $var = 0xFF0404 Then $before=MouseGetPos() MouseClick("left", 300, 100, 1, 2) MouseMove(300,100,2) else MouseClick("left") EndIf sleep(500) sleep WEnd I hope you get the general idea, i haven't tested the code (don't have autoit on this pc) but it should work as it is. Good luck! -
Can you give some image examples? I played with it for a little while and got it working ok in the end. I just finished a small event-driven AI to play a game (i had a choice between wow, one with planes, and fifa 2009) - you can see at that i have managed to read the player's mana and hit points and other demo's coming soon (really want to get A+ on this.. it's my final project) - As a side-note, on a Core2Duo @ 2,3, running at 95% load, reading a few lines with Tesseract every second barely makes a dent in the cpu graph. Impressive!
-
Prevent script process ending
madScientist replied to JonnyThunder's topic in AutoIt General Help and Support
Have you tried SC(.exe) ? http://support.microsoft.com/kb/251192