| Author |
Message |
Forum: Support Topic: Help with ImageSearch |
| tobadyurdead |
|
Posted: October 30th, 2011, 2:53 pm
|
|
Replies: 3 Views: 140
|
| I am having problems with ImageSearch and was wondering if someone could point me in the right direction. I have the following code in my script: SelectWindow(value); Is the stuff below supposed to be part of this function?Or are you calling it? You would need an opening curly bracket right... |
|
 |
Forum: Support Topic: Get Line Number where last return came from? |
| tobadyurdead |
|
Posted: October 26th, 2011, 8:23 am
|
|
Replies: 7 Views: 133
|
| i'm still a little lost as to what your trying to accomplish :P. however, i would just check what the variable "action" is equal to at any given time to see what was last executed. maybe thats not what you need, i'm not sure. Previously when i made a bot for a game (is that what your doing... |
|
 |
Forum: Support Topic: Get Line Number where last return came from? |
| tobadyurdead |
|
Posted: October 26th, 2011, 4:38 am
|
|
Replies: 7 Views: 133
|
| i'm very confused by this post. What i gather is... ;action determination GetAction: if attacks<4 && resources=low { action=mineore ; You want to see if it did this return } if health>300 && enemies>4 { action=attackenemies ; Or this. Correct? return } Also, the b... |
|
 |
Forum: Support Topic: help making SIMPLE macro |
| tobadyurdead |
|
Posted: October 26th, 2011, 4:32 am
|
|
Replies: 17 Views: 1027
|
| Ok it must be how im compling it then. 1. im using AHK basic 2. open Autoscript Writer ll 3. open AHK to Exe 4. record mouse + record & shrink is pressed NOT window text I copy and paste the code and convert it. is that right? Hmm. Try it un-compiled.. Copy the code, Paste it to a .txt file and... |
|
 |
Forum: Support Topic: Help!! Annoying Flink |
| tobadyurdead |
|
Posted: October 24th, 2011, 5:09 am
|
|
Replies: 10 Views: 256
|
What OS are you running? In XP SP3 I tried with
Code: Winset,Transparent,250,TEST And
Code: Winset,Transparent,200,TEST
And when switching between the 2 tabs i didn't see any blinking or anything abnormal. Perhaps i'm missing something? |
|
 |
Forum: Support Topic: help making SIMPLE macro |
| tobadyurdead |
|
Posted: October 24th, 2011, 5:02 am
|
|
Replies: 17 Views: 1027
|
Code: On=0 *x:: if(On=0){ SetTimer,Press,100 on=1 }else{ SetTimer,Press,off On=0 } Return Press: Sendplay,x return
|
|
 |
Forum: Support Topic: is it possible to Pause one script while doing another? |
| tobadyurdead |
|
Posted: October 24th, 2011, 4:52 am
|
|
Replies: 2 Views: 91
|
| This could probably be accomplished with some sort of PostMessage..however i'm not sure what would work or be appropriate. What i would do (it's a little less conventional) is when the image is found by script B, use IniWrite,1,Check.ini,Global,Found . Then, in Script A, do SetTimer,Check,1000 Check... |
|
 |
Forum: Support Topic: Help Parsing Html |
| tobadyurdead |
|
Posted: September 14th, 2011, 4:04 pm
|
|
Replies: 1 Views: 126
|
| Hey everyone! It's been awhile since i've posted.. been busy with school and stuff. Anyways, I'm trying to parse out all of the synonyms out of this url http://thesaurus.com/browse/Return . Which is simple enough.. but i'm not sure how to go about parsing all of the synonyms when the word "Retu... |
|
 |
Forum: Support Topic: run more than one loop at once |
| tobadyurdead |
|
Posted: August 30th, 2011, 2:56 am
|
|
Replies: 10 Views: 249
|
| The method i would use has already been stated.. Using SetTimer. However... From what you said you want too accomplish, using 1 loop would be appropriate, no? Loop { ImageSearch, OutputVarX, OutputVarY, X1, Y1, X2, Y2, ImageFile if Errorlevel = 0 { GoSub, Found1 } ImageSearch, OutputV... |
|
 |
Forum: Support Topic: SendInput doesn't like vars? |
| tobadyurdead |
|
Posted: August 27th, 2011, 4:45 am
|
|
Replies: 3 Views: 186
|
| SendInput, enscript.exe exportnotes /q notebook:%exportNotes_notebook_query% /f [color=red]%exportNotes_notebook_query%[/color] {Enter} SendInput, enscript.exe exportnotes /q notebook:MyNotebook /f [color=red]MyNotebook.enex[/color] {Enter} I'm not sure if this has anything to d... |
|
 |
Forum: Support Topic: No recoil script |
| tobadyurdead |
|
Posted: August 27th, 2011, 4:36 am
|
|
Replies: 3 Views: 572
|
| Use MouseGetPos to determine your mouses location in game. Move your mouse and then do it again. Compare the two results... if they are indifferent then accomplishing what you want is either very hard or impossible with AHK. |
|
 |
Forum: Support Topic: Show MsgBox Timeout |
| tobadyurdead |
|
Posted: August 27th, 2011, 4:29 am
|
|
Replies: 5 Views: 230
|
| Try this..However, this is not perfect by all means. Try to adapt this to your needs. #Persistent Found=0 Timer=5 SetTimer,Timeout,1000 Msgbox,,Timeout Test,This is a test.... SetTimer,Timeout,Off msgbox,The User hit okay before the Msgbox timed out. return End: Msgbox, The user timed out. return Ti... |
|
 |
Forum: Support Topic: Auto color clicker , please help. |
| tobadyurdead |
|
Posted: August 23rd, 2011, 7:44 pm
|
|
Replies: 6 Views: 361
|
If you post a coherent, honest attempt... that doesn't work. i will make it for you.  |
|
 |
Forum: Scripts Topic: I was bored... [ Game of Life ] |
| tobadyurdead |
|
Posted: August 23rd, 2011, 7:38 pm
|
|
Replies: 8 Views: 1214
|
Barney9 wrote: You could have mentioned that the user has to click a skull.
Good Point . I didn't think of that. Corrected. |
|
 |
Forum: Support Topic: Waiting for pixel color to change script |
| tobadyurdead |
|
Posted: August 23rd, 2011, 7:33 pm
|
|
Replies: 3 Views: 214
|
| #Persistent SetTimer,Check,1000 Found=0 Return Check: PixelGetColor, color, 27, 92 if color != 0xD6E6EF { if(Found = 0){ FirstFound := A_Tickcount } Found=1 }else{ Found=0 } Check := (A_Tickcount - FirstFound) if(Check >= 5000){ SetTimer,Ch... |
|
 |
| Sort by: |