Search found 2738 matches

by Xtra
22 Apr 2016, 14:16
Forum: Ask for Help (v1)
Topic: [Newbie] Question Regarding PixelGetColor!
Replies: 4
Views: 1092

Re: [Newbie] Question Regarding PixelGetColor!

try:

Code: Select all

if Color_1 = 0x0000FF    ; traditional syntax
or:

Code: Select all

if (Color_1 = 0x0000FF)    ; expression syntax
by Xtra
22 Apr 2016, 13:15
Forum: Gaming Help (v1)
Topic: 'Random' function help for sleep times
Replies: 5
Views: 1993

Re: 'Random' function help for sleep times

Code: Select all

sleep rand()
Sleep command accepts expressions no need to use %.


Parameters

Delay
The amount of time to pause (in milliseconds) between 0 and 2147483647 (24 days), which can be an expression.
by Xtra
22 Apr 2016, 00:24
Forum: Ask for Help (v1)
Topic: How to monitor the current state of keys
Replies: 2
Views: 1309

Re: How to monitor the current state of keys

#Persistent SetTimer, watchkeys, 10 watchkeys: ToolTip % "key a is: " (GetKeyState("a") = 1 ? "Down" : "Up") . "`rkey b is: " (GetKeyState("b") = 1 ? "Down" : "Up") . "`rkey c is: " (GetKeyState("c") = 1 ? "Down" : "Up") . "`rLButton is: " (GetKeyState("LButton") = 1 ? "Down" : "Up") return
by Xtra
21 Apr 2016, 15:49
Forum: Ask for Help (v1)
Topic: Copy/transform/paste isn't working
Replies: 11
Views: 1992

Re: Copy/transform/paste isn't working

Code: Select all

OutputVar := StrReplace(Haystack, SearchText [, ReplaceText, OutputVarCount, Limit := -1])  ; v1.1.21+
looks like a typo problem.
by Xtra
21 Apr 2016, 02:54
Forum: Ask for Help (v1)
Topic: Hotstring mysteriously triggered twice... sometimes
Replies: 7
Views: 1821

Re: Hotstring mysteriously triggered twice... sometimes

Z: This rarely-used option resets the hotstring recognizer after each triggering of the hotstring. In other words, the script will begin waiting for an entirely new hotstring, eliminating from consideration anything you previously typed. This can prevent unwanted triggerings of hotstrings. :z:tstn::...
by Xtra
20 Apr 2016, 20:07
Forum: Ask for Help (v1)
Topic: Want to permit re-mapping when suspended (VERY NEW TO AHK)
Replies: 5
Views: 1260

Re: Want to permit re-mapping when suspended (VERY NEW TO AHK)

Code: Select all

^t::SendRaw, ^R5-6^

^r::SendRaw, ^R3-4^

^w::SendRaw, ^R8^

^+d::SendRaw, ^D11111^

NumPadDot::,

NumPadMult::^

MButton::
    Suspend, Permit
    Send, {Del}
return

^+z::Suspend
by Xtra
18 Apr 2016, 23:26
Forum: Gaming Help (v1)
Topic: Trying to figure out how to add a minute after each Loop
Replies: 2
Views: 974

Re: Trying to figure out how to add a minute after each Loop

Code: Select all

PgDn::
count := 2700000      ; Set the initial time to sleep here.
Loop,
{
   MouseMove, 315, 751
   Sleep, 500
   Click
   Sleep, 1000
   MouseMove, 852, 436
   Click
   Sleep, count      ; Sleep the current variable amount.
   count += 60000    ; Increment variable by 60000ms aka 1min.
}
return
by Xtra
17 Apr 2016, 23:24
Forum: Forum Issues
Topic: >>> ASK FOR HELP - RESTRUCTURE <<<
Replies: 16
Views: 6055

Re: >>> ASK FOR HELP - RESTRUCTURE <<<

As for why the old forum is still available, Because there is a lot of information to be found there that's why! Not everyone uses the latest version of ahk are you going to find alot of ahk v 1.0 info on ahk.org? No, I don't care where i find info at... just the fact that i find it and i always fi...
by Xtra
10 Apr 2016, 18:57
Forum: Gaming Help (v1)
Topic: a script that makes me stop shooting
Replies: 9
Views: 3155

Re: a script that makes me stop shooting

Code: Select all

LButton::
    Time := A_TickCount
    while GetKeyState("LButton","P") && (A_TickCount-Time < 1500)
		Click
    KeyWait, LButton
return
by Xtra
10 Apr 2016, 18:44
Forum: Gaming Help (v1)
Topic: Need a script that will add key presses after each press Topic is solved
Replies: 2
Views: 1008

Re: Need a script that will add key presses after each press Topic is solved

Code: Select all

cnt := 0    ; Counter variable



Numpad5::
    if (cnt = 0)
	{
        Send, /cctv
	    Sleep 500
	    Send, {Enter}
		cnt++
    }
	else
	{
        Send, /cctv
	    Sleep 500
	    Send, {Down %cnt%}{Enter}
		cnt++
	}
    if (cnt = 26)
		cnt := 0    ; Reset
return
by Xtra
08 Apr 2016, 14:40
Forum: Gaming Help (v1)
Topic: Send {click} help
Replies: 1
Views: 891

Re: Send {click} help

Look up Coordmode.

Example usage:

Code: Select all

Coordmode, Mouse, Screen
by Xtra
06 Apr 2016, 04:12
Forum: Ask for Help (v1)
Topic: Problem with PixelGetColor
Replies: 5
Views: 1433

Re: Problem with PixelGetColor

It's because you didn't put in any logic for the script to do something if the color 0xF5F5F5 is the same 2+ times in a row.-->(countdown will be 0)<--

Make sense?
by Xtra
05 Apr 2016, 19:01
Forum: Ask for Help (v1)
Topic: CDO Email
Replies: 3
Views: 1253

Re: CDO Email

I have seen that same error recently i assumed it was caused by something other than ahk like a firewall etc.
by Xtra
02 Apr 2016, 18:54
Forum: Ask for Help (v1)
Topic: Trouble with Down setting on KeyPress..
Replies: 4
Views: 961

Re: Trouble with Down setting on KeyPress..

Code: Select all

Toggle:=1

*F4::Send % Toggle?("{LShift Down}{w Down}",Toggle:=0):("{LShift Up}{w Up}",Toggle:=1)

*a::
*s::
*d::Send % !Toggle?("{LShift Up}{W Up}",Toggle:=1):SubStr(A_ThisHotkey,0)

Esc::ExitApp
by Xtra
02 Apr 2016, 16:25
Forum: Gaming Help (v1)
Topic: Button Unsuspend timer to suspend Topic is solved
Replies: 2
Views: 1162

Re: Button Unsuspend timer to suspend Topic is solved

Code: Select all

XButton1::
    Suspend, Permit
	SetTimer, Suspend, -20000
	Suspend, Off
return


RButton::d


Suspend:
    Suspend, On
return
by Xtra
02 Apr 2016, 16:10
Forum: Gaming Help (v1)
Topic: Mouse Button 4, Diablo 3 Topic is solved
Replies: 1
Views: 1003

Re: Mouse Button 4, Diablo 3 Topic is solved

Code: Select all

~xbutton1::suspend
rbutton::d
by Xtra
30 Mar 2016, 19:44
Forum: Ask for Help (v1)
Topic: How to make a loop stop after a certain amount of times
Replies: 3
Views: 853

Re: How to make a loop stop after a certain amount of times

Code: Select all

#Persistent
SetTimer, PressTheKey, 100
cnt := 0
Return
 
PressTheKey:
cnt++
Send, ^{tab}
Send, EXAMPLEOFTEXT
if (cnt = 20)
	ExitApp
return
 
Escape::
ExitApp
Return
by Xtra
26 Mar 2016, 17:53
Forum: Ask for Help (v1)
Topic: Press key when mouse position = x,y
Replies: 8
Views: 1940

Re: Press key when mouse position = x,y

Your 1st 5 if statements could be put into another if block:

Code: Select all

if (flag)
{
    1st 5 ifs here...
}
No need to process the 1st 5 ifs when the flag variable is blank.
by Xtra
26 Mar 2016, 14:59
Forum: Ask for Help (v1)
Topic: Press key when mouse position = x,y
Replies: 8
Views: 1940

Re: Press key when mouse position = x,y

Try using setkeydelay: #NoEnv #Persistent CoordMode, Mouse, Screen SetKeyDelay, 20, 50 E:= 10 W:= A_ScreenWidth H:= A_ScreenHeight T:= "W" B:= "S" L:= "A" R:= "D" SetTimer, EdgeCheck, 10 EdgeCheck: MouseGetPos, X, Y Send % X>E&&X<W-E?(Y<=E?T:Y>=H-E?B:""):Y>E&&Y<H-E?(X<=E?L:X>=W-E?R:""):"" return Als...

Go to advanced search