
Loraik
Members-
Posts
12 -
Joined
-
Last visited
Everything posted by Loraik
-
Reading .ini files that update for text
Loraik replied to Loraik's topic in AutoIt General Help and Support
Thanks for your help I really appreciate it. The string of text I am searching for in the .ini file is actually "coded-". I wasn't exactly sure how to go about reconfiguring the example so I did a bunch of trial and error thus confusing the heck out of myself. We are not entering any text but rather our inhouse software is spitting code with a number into this .ini file everytime there is a misalignment so we need to recalibrate when that code is generated. There is always different stuff being pumped into this .ini file (updated every 30 seconds I think) so it has to beable to keep reading that .ini in the background until that "coded-" string pops up. A example of how it would appear in the .ini file would be 3459d,coded-00012,3460d,3461d,ect,ect. -
Reading .ini files that update for text
Loraik replied to Loraik's topic in AutoIt General Help and Support
Please don't laugh, I am not the best at this stuff. What I tried to do is take the example given on the AutoIt page and apply it to my solution. The goal is to search the file "optionalstacks.ini" located in our C:\semi\coded\a\ directory looking for the code "coded-". When found it displays a msg box saying "Channel Found!" then hits the "Pause" key on the keyboard. At this point pressing the PAUSE key stops our system software and allows us to adjust. Then we click "OK" on the msg. box and it hits pause again and our software starts again reading the .ini file. Not sure how to tie the second PAUSE hit to the msg box. -
Hi I am trying to get a small script working for here at work. What I am trying to do is have a AutoIt script read a .ini file for certain words that might be entered and press the "Pause" keyboard key and issue a msg. box that says "This word has been found". The .ini file is always being updated so it needs to be looking through it all the time. I just can't grasp how to use IniRead to get this done. After several days of looking at examples I am breaking down and asking for help. If anyone could toss me some bones on how to get this to work I would appreciate it so very much. I did a search here on the forums but didn't see anything that fit what I was tryig to do. Thanks in advance!
-
I am not sure what SCIte is. Sorry to be the newbie about this, I just like to tinker with AutoIT am not a master by any means. Please fill me in if there is something out there already. I did a search for mouse odometer but not getting anything near what I am looking for.
-
Hey guys I am trying to write a script that is going to require alot of mouse clicking and KB input and was wondering if anyone has a recorder of types that could help me cut down on all the typing/x,y input I am going to have to do. I did a search for recorders but didn't see anything off hand. Again just thought there might be something out there that could save me some finger skin.
-
Is there a way to pause a running script via hitting a key and allowing you to let it pickup where it left off by hitting another key? Is that some major coding feat or is there a simple pause cmd that I am just not seeing in the docs. Thanks Loraik
-
Hehe because I am learning and didn't think of that.
-
There are some shareware programs that will log it all to a .txt file. "IF" you can gain access to the computer while it is logged in as Admin to install it. Just search the web. I found a bunch of them for my boss awhile back when he was wanting to know what his son was doing on the puter (in forums)when he wasn't around. Loraik
-
Quick question. If I wanted the script to then close after the camping procedure would I add this: WinClose("Name of running script here") right under: Send("{enter}");Press enter on keyboard so it looks like: Send("{enter}");Press enter on keyboard Send("/camp");Camps Character Send("{enter}");Press enter on keyboard WinClose("Name of running script here") EndIf EndIf EndFunc Just want to make sure I am understanding the format correct. Loraik
-
UMMM WTH am I thinking... Scratch my question.. Pure unrestricted stupidity.. I had thought you said variable names not Func variable names... Loraik
-
AHHHHHH thanks Zed... I didn't quite understand how to properly format that. I had been researching through others finished scripts but wasn't able to understand the exact method of the madness. Also you say shorten the variable function names. Can you explain why please? I am still learning. OH and is there any AutoIT for Dummy's books? Since I started messing with AutoIT I am finding it is quite fun to work with but I would like to see something with working examples and explanations to how/what/why. I have gone thru the doc's onsite but for a novice (newbie) learner IMO they are not real friendly. Thanks again. Loraik
-
I am trying to modify a script that I use to also log my char. out in a game I play when anyone of 3 spots equal a certain color however I am comming up short. I am very very new to coding but am trying to do this. Anyone tell me what I am doing wrong? ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;; Check Resource 1-3;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; $colorBehindEvents = --------; if this color is seen in any one of 3 locations then ; start camp sequence Func ResourceCheckingProcedure() $Resource1x = --- $Resource1y = --- $Resource2x = --- $Resource2y = --- $Resource3x = --- $Resource3y = --- $ResourceCheck1 = PixelGetColor($Resource1x, $Resource1y) $ResourceCheck2 = PixelGetColor($Resource2x, $Resource2y) $ResourceCheck3 = PixelGetColor($Resource3x, $Resource3y) MsgBox(64,"Resource Listings", "Pixel color at location for resource 1" & @CRLF & "Pixel Colour for resource 1: " & $ResourceCheck1 & " x:" & $Resource1x & " y:" & $Resource1y _ & @CRLF & "Pixel color at location for resource 2" & @CRLF & "Pixel Colour for resource 2: " & $ResourceCheck2 & " x:" & $Resource2x & " y:" & $Resource2y _ & @CRLF & "Pixel color at location for resource 3" & @CRLF & "Pixel Colour for resource 3: " & $ResourceCheck3 & " x:" & $Resource3x & " y:" & $Resource3y) EndFunc Func CheckIfEventColorsIsDefault() If ($ResourceCheck1= $colorBehindEvents) OR ($ResourceCheck2= $colorBehindEvents) OR ($ResourceCheck3= $colorBehindEvents) Then MsgBox(3, "Out of Resources", "You have 60 sec. to press ABORT or you will camp to the Character Selection Screen" [, 60000]) If 3 Then Exit(0) Else Send("{enter}");Press enter on keyboard Send("/camp") ;Camps Character Send("{enter}");Press enter on keyboard Here is what I am trying to do. Read in the color of each resource (3 spots they are shown on screen). When the resource equals the color of "$colorBehindEvents" then it will bring up a window that will basicly say "Press the button to stay playing" and then will basicly allow you to keep playing OR if nothing is is done in 60 seconds then it will type "/camp" and you're character is camped out of game. If there is anyone out there that can help me get this to work I would greatly appreciate it. Loraik