Search found 188 matches

by AviationGuy
01 Apr 2019, 08:20
Forum: Ask For Help
Topic: ImageSearch for Image1 OR Image2
Replies: 9
Views: 1176

Re: ImageSearch for Image1 OR Image2

@eitatetaata I modified the script and it performed better but it could only recognize the first image... I probably did something wrong here. However, I tried the script from @nnnik and it worked perfectly so I think I'll go with that and keep yours in case I can't work it out. @nnnik Your script i...
by AviationGuy
01 Apr 2019, 06:21
Forum: Ask For Help
Topic: ImageSearch for Image1 OR Image2
Replies: 9
Views: 1176

Re: ImageSearch for Image1 OR Image2

Hey @eitatetaata, thanks for your response. I don't mind the 100ms waiting time after one of the images is found so I tried modifying your script so it fits my needs. ImageSearch, Found_X, Found_Y, 0, 0, A_ScreenWidth, A_ScreenHeight, %PictureFile1% ER1 = %ErrorLevel% ImageSearch, Found_X, Found_Y, ...
by AviationGuy
01 Apr 2019, 06:06
Forum: Ask For Help
Topic: ImageSearch for Image1 OR Image2
Replies: 9
Views: 1176

Re: ImageSearch for Image1 OR Image2

Great idea! Using a while loop! I came up with the following but I keep getting an "Until with no matching Loop" error... If WinExist("ahk_exe chrome.exe") { WinActivate While (found != 1){ ImageSearch, FoundX, FoundY, 0, 0, A_Screenwidth, A_Screenheight, %PictureFile1% While (ErrorLevel=1){ ImageSe...
by AviationGuy
01 Apr 2019, 03:44
Forum: Ask For Help
Topic: ImageSearch for Image1 OR Image2
Replies: 9
Views: 1176

Re: ImageSearch for Image1 OR Image2

Hey @scriptors That will indeed work but it searches just 1 time for image1. Of course, I could add a loop and set it to loop 10 times or so but since I'm looking for images at Chrome and the page load time could differ I don't want to be stuck on a loop when the page loads more slowly than it norma...
by AviationGuy
01 Apr 2019, 03:01
Forum: Ask For Help
Topic: ImageSearch for Image1 OR Image2
Replies: 9
Views: 1176

ImageSearch for Image1 OR Image2

Hi there, Quick question. How to ImageSearch and continue if Image1 or Image2 is found? I tried 2 things that both don't seem to do the trick. Loop { ImageSearch, FoundX, FoundY, 0, 0, A_Screenwidth, A_Screenheight, %PictureFile1% Until !ErrorLevel Goto, GoFurther ImageSearch, FoundX, FoundY, 0, 0, ...
by AviationGuy
01 Apr 2019, 02:20
Forum: Ask For Help
Topic: Intercepting shortcut and resending conditionally Topic is solved
Replies: 20
Views: 2753

Re: Intercepting shortcut and resending conditionally Topic is solved

Thanks for the tip @A_AhkUser!
Well, changing send {alt} to send {f10} should do the trick then.
by AviationGuy
29 Mar 2019, 10:31
Forum: Ask For Help
Topic: Paste variables in a repeated cell pattern in Excel Topic is solved
Replies: 11
Views: 1512

Re: Paste variables in a repeated cell pattern in Excel Topic is solved

Wow! It really is much faster when you use SetBatchLines, -1.
ExcelTemp.PNG
ExcelTemp.PNG (3.94 KiB) Viewed 1369 times
It's 2 times faster, great!
by AviationGuy
29 Mar 2019, 09:16
Forum: Ask For Help
Topic: Paste variables in a repeated cell pattern in Excel Topic is solved
Replies: 11
Views: 1512

Re: Paste variables in a repeated cell pattern in Excel Topic is solved

Do it faster!!: SetBatchLines, -1 ; <~~ don't test speed performance without this up top, will dramatiicaly improve speeds Added it, thanks! Only one thing tho, which isn't a problem really but just for the sake of it... Cell 'A1' remains empty atm, which is obvious bcs cell 'A1' gets selected and ...
by AviationGuy
29 Mar 2019, 03:42
Forum: Ask For Help
Topic: Paste variables in a repeated cell pattern in Excel Topic is solved
Replies: 11
Views: 1512

Re: Paste variables in a repeated cell pattern in Excel Topic is solved

@Blue Bear No I haven't looked into those yet. I will do after I tried Tigerlily's solution! @Tigerlily Oh man, that's great! It's doing exactly what I want! :) I implemented your code in my script and it works perfectly! If someone is interested I posted my script below. The script measures the tim...
by AviationGuy
28 Mar 2019, 17:11
Forum: Ask For Help
Topic: Paste variables in a repeated cell pattern in Excel Topic is solved
Replies: 11
Views: 1512

Re: Paste variables in a repeated cell pattern in Excel Topic is solved

Yeah but that is the same problem as odlanir right? The value isn’t constant. I just put 1 there in the example. Each cell is going to have a different value. I had this script working with activate excel-click A1-ctrl v-arrow down-ctrl v-arrow down-ctrl v-arrow right-arrow up (2x), and loop this pr...
by AviationGuy
28 Mar 2019, 07:41
Forum: Ask For Help
Topic: Paste variables in a repeated cell pattern in Excel Topic is solved
Replies: 11
Views: 1512

Re: Paste variables in a repeated cell pattern in Excel Topic is solved

Got this now but this only pastes a 1 in 'A2' and 'B1'... TimeMS:=1 Xl := ComObjActive("Excel.Application") Xl.Range("A1").Select loop 6 { MyFunc(2) MyFunc(2) MyFunc(1) } MyFunc(var){ TimeMS:=1 Trigger:=var if (Trigger!=1){ Xl.ActiveCell.Offset(1, 0).Select Xl.ActiveCell.Value := TimeMS } else { x1....
by AviationGuy
28 Mar 2019, 07:02
Forum: Ask For Help
Topic: Paste variables in a repeated cell pattern in Excel Topic is solved
Replies: 11
Views: 1512

Re: Paste variables in a repeated cell pattern in Excel Topic is solved

Hi thanks for the reply. Unfortunately, I don't think this is an option because 'var' changes after it's placed in a cell. That's why I was using a loop. In the meantime, I tried things like this but this also won't work... 'TimeMS' is the variable that changes after each time a function gets run. l...
by AviationGuy
28 Mar 2019, 06:24
Forum: Gaming
Topic: Apex Legends Bhop
Replies: 4
Views: 5276

Re: Apex Legends Bhop

Code: Select all

ctrl::f1
?
by AviationGuy
28 Mar 2019, 05:12
Forum: Gaming
Topic: Apex Legends Bhop
Replies: 4
Views: 5276

Re: Apex Legends Bhop

Hi there,

Try this.

Code: Select all

$space::
loop
While GetKeyState("space","P")
{
	Send, {space}
	Sleep, 15 ; every 15 miliseconds
}
return
Use WinActive to only activate the script when Apex is running.

Change you get banned tho.
by AviationGuy
28 Mar 2019, 05:04
Forum: Ask For Help
Topic: Paste variables in a repeated cell pattern in Excel Topic is solved
Replies: 11
Views: 1512

Paste variables in a repeated cell pattern in Excel Topic is solved

Hi there! I want to paste a variable multiple times in the first (3) rows of Excel. The vars are obtained by a function It should look like this. ExcelExamplePost.PNG The code I'm using to try to achieve this is the following but it isn't working correctly atm. Var:=1 Myfunc(2) Myfunc(2) Myfunc(1) M...
by AviationGuy
28 Mar 2019, 03:32
Forum: Gaming
Topic: Need help with Minecraft inactive window!
Replies: 1
Views: 476

Re: Need help with Minecraft inactive window!

Hi and welcome!

Take a look at ControlSend.
Also, this post with some links might help you: link
by AviationGuy
27 Mar 2019, 13:32
Forum: Ask For Help
Topic: Change of conditions while looping Topic is solved
Replies: 5
Views: 741

Re: Change of conditions while looping Topic is solved

Makes sense now. Thanks for the explanation! What about AHK v2 tho. I’m pretty new to AHK and haven’t studied it yet. You think the beta will be released soon now Lexikos is back (at the forums) or doesn’t that depend on him? For now v1 is doing just fine for me, you think switching soon will be nec...
by AviationGuy
27 Mar 2019, 09:43
Forum: Ask For Help
Topic: Change of conditions while looping Topic is solved
Replies: 5
Views: 741

Re: Change of conditions while looping Topic is solved

And this doesn't error out directly? Function calls and defintions need a parameter list, even if empty, afaik : MyFunc () Yes it did, I made a quick example to show my problem but when testing this function I indeed got an error. Another thing is the wrong syntax of If WinActive, ahk_exe excel.exe...
by AviationGuy
27 Mar 2019, 09:09
Forum: Ask For Help
Topic: Change of conditions while looping Topic is solved
Replies: 5
Views: 741

Change of conditions while looping Topic is solved

Hi there! I'm struggling with looping a function. Let's say I loop 'MyFunc' 10 times. When Excel is already active it will send 'a'. When Excel isn't active it will activate Excel and send 'b'. loop 10 { MyFunc } MyFunc{ If WinActive, ahk_exe excel.exe { send a } else { WinActivate, ahk_exe excel.ex...
by AviationGuy
27 Mar 2019, 04:09
Forum: Gaming
Topic: Right click script
Replies: 1
Views: 521

Re: Right click script

Hi there and welcome to the forum!
Try something like this.

Code: Select all

RButton::
If WinActive("ahk_exe ProgramName.exe")
Send 1
Return
With Window Spy that comes with AHK you are able to get the ProgramName.exe you should change in the WinActive function.

Go to advanced search