Search found 110 matches

by ahcahc
16 Dec 2016, 18:52
Forum: Gaming Help (v1)
Topic: Script for handicap gaming Topic is solved
Replies: 13
Views: 3171

Re: Script for handicap gaming Topic is solved

Using the script from my first answer try replacing

Code: Select all

if count = 1
	send, {Space}
with

Code: Select all

if count = 1
	send, {Space Down}{Space Up}
or with

Code: Select all

if count = 1
{
	Send, {Space Down}
	sleep, 100
	Send, {Space Up}
}
by ahcahc
16 Dec 2016, 10:58
Forum: Gaming Help (v1)
Topic: Script for handicap gaming Topic is solved
Replies: 13
Views: 3171

Re: Script for handicap gaming Topic is solved

it seems like the only problem is that space is not working. First, what do you mean by space is not working? Did it not send space after single right-click? Or sending space send, {space} has no effect ingame? Have you tried replacing send, {space} with send, %A_Space% , sendevent, %A_Space% or se...
by ahcahc
16 Dec 2016, 04:24
Forum: Gaming Help (v1)
Topic: Script for handicap gaming Topic is solved
Replies: 13
Views: 3171

Re: Script for handicap gaming Topic is solved

You want single right click to repeatedly press spacebar and also stop it with a single right click? count:=b:=c:=d:=0 SetTimer, check, 20 SetTimer, check_space, 100 *^!x:: ;ctrl alt x Send, {w up} Send, {LShift Up} ExitApp ;#IfWinActive <insert game title here> *RButton:: txt:=A_TimeSincePriorHotke...
by ahcahc
16 Dec 2016, 03:41
Forum: Gaming Help (v1)
Topic: Script for handicap gaming Topic is solved
Replies: 13
Views: 3171

Re: Script for handicap gaming Topic is solved

So it looks like "ctrl alt x" would end the script once I'm done playing? I also see that I need to insert the game title. How specific of titles need to be used? If I took away that hotkey, would the script continue to run regardless of the program or game until I ended it? You can exit the script...
by ahcahc
16 Dec 2016, 00:40
Forum: Gaming Help (v1)
Topic: Script for handicap gaming Topic is solved
Replies: 13
Views: 3171

Re: Script for handicap gaming Topic is solved

count:=b:=c:=0 SetTimer, check, 20 *^!x:: ;ctrl alt x Send, {w up} Send, {LShift Up} ExitApp ;#IfWinActive <insert game title here> *RButton:: txt:=A_TimeSincePriorHotkey if (A_TimeSincePriorHotkey <= 500) ;maximum of 500ms between rclicks to inrease the count count++ else count=1 if count > 3 coun...
by ahcahc
28 Nov 2016, 22:36
Forum: Ask for Help (v1)
Topic: Looking for help simplifying and getting an imagesearch script to work Topic is solved
Replies: 13
Views: 3321

Re: Looking for help simplifying and getting an imagesearch script to work Topic is solved

Check out how functions work. https://autohotkey.com/docs/Functions.htm img = the image file x1, y1 = upper left corner x2, y2 = lower right corner timeout = how long to keep on searching for the image click = to click(1) or not to click (0) the image variation = variation offset_x, offset_y = image...
by ahcahc
23 Nov 2016, 12:04
Forum: Ask for Help (v1)
Topic: Simplify these RegEx !? Topic is solved
Replies: 23
Views: 4926

Re: Simplify these RegEx !? Topic is solved

try RegExMatch(text,"`a)\* Contact\(s\) :.*?(\r\n|\n|\r)\K.*?(?=(\r\n|\n|\r)\*{78})",m).
by ahcahc
23 Nov 2016, 09:45
Forum: Ask for Help (v1)
Topic: Simplify these RegEx !? Topic is solved
Replies: 23
Views: 4926

Re: Simplify these RegEx !? Topic is solved

You need to escape the *. Try \* Contact(s) :
by ahcahc
22 Nov 2016, 08:16
Forum: Ask for Help (v1)
Topic: Simplify these RegEx !? Topic is solved
Replies: 23
Views: 4926

Re: Simplify these RegEx !? Topic is solved

I don't quite get what you wanted to say. But my answer was missing the `a) at the beginning of the regex to make it work the way I intended it to. text= ( line1 line2 line3 Look Down: ResultLine ResultLine2 ResultLine3 ****************************************************************************** )...
by ahcahc
22 Nov 2016, 04:15
Forum: Ask for Help (v1)
Topic: Looking for help simplifying and getting an imagesearch script to work Topic is solved
Replies: 13
Views: 3321

Re: Looking for help simplifying and getting an imagesearch script to work Topic is solved

All the imagesearches work. For example in my script when it finds 5starblue, it then finds sell and clicks it, but it will not click YES. I think it has to do with how the script was written and not the actual image search. Try changing the click to mousemove with a speed of 30 MouseMove, X, Y, 30...
by ahcahc
21 Nov 2016, 08:19
Forum: Ask for Help (v1)
Topic: Simplify these RegEx !? Topic is solved
Replies: 23
Views: 4926

Re: Simplify these RegEx !? Topic is solved

From what I understood, you only want to get the contents of the line in between Look Down: and 78 asterisk and it must be a single line. ;MsgBox % StrLen("******************************************************************************") text= ( line1 line2 line3 Look Down: ResultLine ***************...
by ahcahc
19 Nov 2016, 22:56
Forum: Ask for Help (v1)
Topic: Looking for help simplifying and getting an imagesearch script to work Topic is solved
Replies: 13
Views: 3321

Re: Looking for help simplifying and getting an imagesearch script to work Topic is solved

This WinWait, BlueStacks App Player, _ctl.Window IfWinNotActive, BlueStacks App Player, _ctl.Window, WinActivate, BlueStacks App Player, _ctl.Window WinWaitActive, BlueStacks App Player, _ctl.Window CoordMode, Pixel, client Coordmode, Mouse, client Loop { ImageSearch, FoundX, FoundY, 75, 45, 1239, 6...
by ahcahc
19 Nov 2016, 19:13
Forum: Ask for Help (v1)
Topic: Looking for help simplifying and getting an imagesearch script to work Topic is solved
Replies: 13
Views: 3321

Re: Looking for help simplifying and getting an imagesearch script to work Topic is solved

Try adding sleep before every imagesearch (except the first one). Here is what I use when doing imagesearch. if (imgSearchWait("1.bmp", 0, 0, A_ScreenWidth, A_ScreenHeight, 5) and imgSearchWait("2.bmp", 0, 0, A_ScreenWidth, A_ScreenHeight, 5, 1)) msgbox found 1.bmp and then found & clicked 2.bmp. el...
by ahcahc
14 Nov 2016, 00:13
Forum: Ask for Help (v1)
Topic: Remove everything before https
Replies: 8
Views: 1983

Re: Remove everything before https

@garry text:=" (Ltrim Join`r`n this is my webpage https://www.mywebpage2.com aaaa https://www.mywebpage4.com bbbb xxx http://www.mywebpage3.com cccc yyy https://www.mywebpage5.com dddd zzz https://www.mywebpage1.com eee " ) text2 := trim(RegExReplace(text,"s).*?(https?:\/\/\w+?(?:\.\w+)+).*?|.*","$1...
by ahcahc
13 Nov 2016, 06:33
Forum: Ask for Help (v1)
Topic: Remove everything before https
Replies: 8
Views: 1983

Re: Remove everything before https

you can use RegExReplace.

Code: Select all

text = this is my webpage https://www.mywebpage.com 
text := RegExReplace(text,".*?(?=https)")
MsgBox % text
You wan't to remove everything before https or you just want to get the webpage address?
by ahcahc
13 Nov 2016, 03:21
Forum: Ask for Help (v1)
Topic: Delete Files except last 5 latest files Topic is solved
Replies: 5
Views: 1666

Re: Delete Files except last 5 latest files Topic is solved

Code: Select all

Loop, Files, c:\temp\*.*
	list .= A_LoopFileTimeModified ":" A_LoopFileFullPath "`n"
Sort, list, NR
list := RegExReplace(list,"^(.*?\n){5}|\d+?:")

loop, parse, list, `n
	if A_LoopField
		FileDelete, %A_LoopField%
by ahcahc
08 Nov 2016, 08:00
Forum: Ask for Help (v1)
Topic: How you'd setup multiple key triggers for different tasks? Topic is solved
Replies: 4
Views: 3392

Re: How you'd setup multiple key triggers for different tasks? Topic is solved

Return marks the end of the hotkey. #If is for context sensitive hotkeys, it enables the hotkeys if the conditions were met. #if without parameters marks the end of the conditional hotkeys. https://autohotkey.com/docs/commands/Return.htm https://autohotkey.com/docs/commands/_If.htm https://autohotke...
by ahcahc
08 Nov 2016, 05:01
Forum: Ask for Help (v1)
Topic: How you'd setup multiple key triggers for different tasks? Topic is solved
Replies: 4
Views: 3392

Re: How you'd setup multiple key triggers for different tasks? Topic is solved

Code: Select all

^q::
task1 := !task1
task2 := 0
return

^e::
task2 := !task2
task1 := 0
return

#if task1
1:: Send "one"
2:: Send "two"
3:: Send "three"
4:: Send "four"
5:: Send "five"
#If
	

#if task2
1:: Send "six"
2:: Send "seven"
3:: Send "eight"
4:: Send "nine"
5:: Send "ten"
#if
by ahcahc
06 Nov 2016, 10:32
Forum: Ask for Help (v1)
Topic: Batch comparing variables Topic is solved
Replies: 3
Views: 1166

Re: Batch comparing variables Topic is solved

Code: Select all

downloadall:
list =
loop, 6
	list .= (list?"`n":"") name%a_index%
sort, list, U		;removes duplicate items
loop, parse, list, `n
{
	currentname := A_LoopField
	gosub, downloader
}
return

Go to advanced search