| Author |
Message |
Topic: While/Keystate statement........Need Help |
Jex
Replies: 4
Views: 98
|
Forum: Ask for Help Posted: Sun Jan 10, 2010 8:55 am Subject: While/Keystate statement........Need Help |
i havn't used the while loop yet, but if we look at your code there was one thing that i noticed.
while statetrb=U ;here, you use 'statetrb' and not staterb
{
MsgBox, %staterb%
... |
Topic: While/Keystate statement........Need Help |
Jex
Replies: 4
Views: 98
|
Forum: Ask for Help Posted: Sun Jan 10, 2010 6:31 am Subject: While/Keystate statement........Need Help |
| check your variable names... |
Topic: block the computer from siblings |
Jex
Replies: 6
Views: 1064
|
Forum: Scripts & Functions Posted: Sun Oct 11, 2009 9:24 pm Subject: block the computer from siblings |
here's the full example...i havn't tested it.
Sleep, 2000
SetKeyDelay -1
SetMouseDelay -1
Run, notepad.exe
WinWait, Untitled - Notepad
WinMaximize
Send {Enter 4}{Space 5 ... |
Topic: Bot |
Jex
Replies: 3
Views: 253
|
Forum: Ask for Help Posted: Fri Oct 09, 2009 4:34 am Subject: Bot |
I have no idea...here's general trouble shooting:
It could be the .dll, have you updated it?
Improper calling of the dll? (ahk syntax or dll function)
Updated Ahk version? |
Topic: block the computer from siblings |
Jex
Replies: 6
Views: 1064
|
Forum: Scripts & Functions Posted: Fri Oct 09, 2009 4:21 am Subject: block the computer from siblings |
| if you had it check all input at once it would be harder to get into, instead of 1 key at a time... the current method could be spammed with keys, and as long as i press the keys 379 in that order, wi ... |
Topic: Thought for the week {A.I.}... |
Jex
Replies: 25
Views: 2563
|
Forum: General Chat Posted: Tue Jun 16, 2009 4:41 pm Subject: Thought for the week {A.I.}... |
I don't think it really matters how you would store extensions onto the main script. Though it would probably be easier to have separate files from a human stand point.
In my opinion depending on t ... |
Topic: GoSub error |
Jex
Replies: 3
Views: 275
|
Forum: Ask for Help Posted: Sun May 31, 2009 9:15 pm Subject: GoSub error |
I think I've found your problem.
You can't put the label 'MainLoop' within an if statement.
Here's a simple example of what your doing:
Var = 1
;Problematic piece statrs
if (var == 1& ... |
Topic: you know what AHK needs???!!!!!!!! |
Jex
Replies: 13
Views: 721
|
Forum: Ask for Help Posted: Mon May 18, 2009 5:54 pm Subject: you know what AHK needs???!!!!!!!! |
| Search Sparrow, it's something DerRaphael has been working on. It could do that. But sinkfaze is right, it does put many opportunities for malicious code. |
Topic: Faster than "sleep 1"? |
Jex
Replies: 5
Views: 347
|
Forum: Ask for Help Posted: Sun May 10, 2009 6:47 pm Subject: Faster than "sleep 1"? |
"Sleep 0" is faster then "Sleep 1"
And removing Sleep altogether is fastest. |
Topic: bubble sort an array? |
Jex
Replies: 4
Views: 270
|
Forum: Ask for Help Posted: Wed Mar 04, 2009 1:13 am Subject: bubble sort an array? |
Yes, you just need to remember there are no arrays. Just variables that look like arrays.
Ex:
var_1
var_2
var_3
var_4
var_5
var_6
So this is possible. |
Topic: AHK executing a command in the wrong way? |
Jex
Replies: 9
Views: 454
|
Forum: Ask for Help Posted: Tue Mar 03, 2009 12:58 am Subject: AHK executing a command in the wrong way? |
Why not just use:
#Persistent
#f::
run, C:\Program Files\Locate\Locate32.exe -i
return
if that doesn't work, try putting quotes around it:
"C:\Program Files\Locate\Locate3 ... |
Topic: About functions |
Jex
Replies: 4
Views: 431
|
Forum: Ask for Help Posted: Sun Mar 01, 2009 9:44 pm Subject: About functions |
the variable answer isn't global, meaning the variable doesn't exist out side of the function.
One option:
msgbox, % add(2,2)
Add(x, y)
{
return x+y
}
Or you cou ... |
Topic: Passing a variable to another script |
Jex
Replies: 2
Views: 164
|
Forum: Ask for Help Posted: Sun Mar 01, 2009 9:28 pm Subject: Passing a variable to another script |
| [url=http://www.autohotkey.com/docs/Scripts.htm#cmd]Command Line Paramaters, or if you need to send it half way through executing [url=http://www.autohotkey.com/docs/commands/PostMessage.htm]Post/Send ... |
Topic: Color clicker |
Jex
Replies: 4
Views: 227
|
Forum: Ask for Help Posted: Sun Mar 01, 2009 5:40 am Subject: Color clicker |
Change the range of pixels your searching. It will cut down the time.
I don't think the pixel search can go any faster...but there may be a way... |
Topic: Arrays... |
Jex
Replies: 2
Views: 216
|
Forum: Ask for Help Posted: Sat Feb 21, 2009 11:14 pm Subject: Arrays... |
There are no arrays in AHK.
But, there are ways to simulate arrays.
For example, consider the following variables:
Item_0
Item_1
Item_2
Item_3
Item_4
In AHK, they can be referred to like ... |
| |