Search found 188 matches

by AviationGuy
18 Apr 2019, 07:14
Forum: Ask For Help
Topic: Remapping single keys to a Function Combo
Replies: 3
Views: 478

Re: Remapping single keys to a Function Combo

Hi there. I suggest using ImageSearch to search for the right package. After this: Click on the right of this image. Do this by adding 50px or so to the foundX coordinates Press ctrl a to select content in textbox (this will be more reliable, double click will only work when there is only one word i...
by AviationGuy
18 Apr 2019, 03:44
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

Oh well, here you have it :)
I'm still quite new to this... Thank you mr. Lexikos!
by AviationGuy
18 Apr 2019, 03:13
Forum: Gaming
Topic: key combo
Replies: 1
Views: 515

Re: key combo

hi, i play elite dangerous and would like to know how to turn spacebar+a into a hotkey that would press j four times. Hi there! Try the following. The first line is ensuring that 'space+a' will give 'jjjj' and the second line is to ensure that you are still able to use 'space' the normal way. space...
by AviationGuy
16 Apr 2019, 09:54
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

For some reason, ctrl+shift+b is now opening the course code for this page in a new tab! I think that's because your hotkey is interfering with FireFox. Even adding a ~ doesn't seem to do the trick... Try changing the hotkey, just for testing. ^4:: If !WinActive("ahk_exe firefox.exe") { WinActivate...
by AviationGuy
16 Apr 2019, 08:53
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

You could try this. I can't get it to work with 'alt' tho. Hope this works for you. ^+b:: If !WinActive("ahk_exe firefox.exe") { WinActivate ControlSend,,{f10}, ahk_class MozillaWindowClass sleep 10 ControlSend,,{v}, ahk_class MozillaWindowClass sleep 10 ControlSend,,{t}, ahk_class MozillaWindowClas...
by AviationGuy
16 Apr 2019, 08:17
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

Hi there,

Was wondering if the toolbar comes up when you use ControlSend.

Code: Select all

	ControlSend,,{f10}, ahk_class MozillaWindowClass
Let me know :)
by AviationGuy
15 Apr 2019, 02:51
Forum: Ask For Help
Topic: Ctrl key stuck pressed after using AltGR
Replies: 3
Views: 390

Re: Ctrl key stuck pressed after using AltGR

Hi there,

I don't have this problem, script works fine for me but you can add send {ctrl up} to your script. This will look as follows.

Code: Select all

^!a::
Send Hello World
Send {ctrl up}
return
Maybe you have other scripts running which are activating the ctrl key?
by AviationGuy
11 Apr 2019, 09:29
Forum: Ask For Help
Topic: If statement functions speedtest
Replies: 16
Views: 1570

Re: If statement functions speedtest

Ok, thanks. I don't actually want to use the variable so it isn't a problem if the msgbox is empty after the loop. I just wanted to know if it does actually assign the variable. I tested it with the msgbox within the 'x1' function and the '3' showed up so that means that it assigned the value to the...
by AviationGuy
11 Apr 2019, 09:02
Forum: Ask For Help
Topic: If statement functions speedtest
Replies: 16
Views: 1570

Re: If statement functions speedtest

Edited ^^^ Well, this shows a msgbox with 1. So I thought the script above will give a msgbox with 3. x:=1 Speed1() NextCol=0 Loop 1000000 ; loop 1.000.000 times { If (x=0){ ; if x has a value of 1 y=1 ; assign value } else if (x=1) ; else if x has a value of 2 y=1 ; assign variable else if (x=2) y=...
by AviationGuy
11 Apr 2019, 08:50
Forum: Ask For Help
Topic: If statement functions speedtest
Replies: 16
Views: 1570

Re: If statement functions speedtest

Atm, I'm testing the speed of assigning a value to q with the adaptable function method swagfag mentioned. I want to know the time it takes to do this a million times but I can't figure it out. I'm trying to do this, in the same way, as I did with the other functions. version:=Func("x1") Speed1() Ne...
by AviationGuy
10 Apr 2019, 06:30
Forum: Ask For Help
Topic: If statement functions speedtest
Replies: 16
Views: 1570

Re: If statement functions speedtest

jeeswg wrote:
10 Apr 2019, 06:08
IIRC:

Code: Select all

;slower:
version:="v2"
%version%()

;faster:
version:=Func("v2")
%version%()
If the idea of @swagfag turns out to be the solution for me I will definitely do it like this, thanks!
by AviationGuy
10 Apr 2019, 06:29
Forum: Ask For Help
Topic: If statement functions speedtest
Replies: 16
Views: 1570

Re: If statement functions speedtest

Haha, I like you sir. Q1 that aint how u do it. first ure doing string comparisons while in the benchmark u were benching numerical comparisons. second i dont even what u assume "untrue elseif statements aren't read" mean, cuz they totally are. if u define version := "v2 , if (version="basic") is ev...
by AviationGuy
10 Apr 2019, 04:18
Forum: Ask For Help
Topic: If statement functions speedtest
Replies: 16
Views: 1570

Re: If statement functions speedtest

Goal Ok, I will try explaining the reason why I want to test this: The reason why I'm testing this is because I want to be able to use different versions of functions. I added the version I want to use as the first parameter. I did it like this. ; ImageSearchFunction (ISF) version definition versio...
by AviationGuy
10 Apr 2019, 03:48
Forum: Offtopic
Topic: Test your Forum Posts
Replies: 391
Views: 143272

Re: Test your Forum Posts

Test sign

EDIT
:(
by AviationGuy
10 Apr 2019, 02:44
Forum: Ask For Help
Topic: If statement functions speedtest
Replies: 16
Views: 1570

Re: Strange function runtime behaviour

Well, that is actually not what I tried to test. Cases 2 & 3 are indeed slower for x=1 but when you change x=1 to x=4 and run case 2 & 3 again you'll see that the runtime will be equal. So in that case, the statement: "Untrue conditions won't be read and thus won't slow down runtime" will be true. *...
by AviationGuy
09 Apr 2019, 13:04
Forum: Ask For Help
Topic: If statement functions speedtest
Replies: 16
Views: 1570

Re: Strange function runtime behaviour

Yes, I was wrong indeed. Untrue statements are read and will actually slow down runtime. I modified the script some more and got some nice results. I loop each ‘function’ 1.000.000 times to get a clear view of the different runtimes and to easily tell the difference between them. Will post the resul...
by AviationGuy
08 Apr 2019, 05:02
Forum: Ask For Help
Topic: If statement functions speedtest
Replies: 16
Views: 1570

Re: Strange function runtime behaviour

Yeah well, I forgot to post the whole script, that should've been in the 'spoiler' part. Sorry, my bad. But when I wanted to add it I saw that I had a typo somewhere... It works as expected now and it seems that untrue if-statements aren't read and won't increase the runtime. This are the functions ...
by AviationGuy
08 Apr 2019, 03:25
Forum: Ask For Help
Topic: If statement functions speedtest
Replies: 16
Views: 1570

If statement functions speedtest

Hi there! I was trying to determine if stuff that happens after an untrue part of the if-statement, is still read and therefore slow down the runtime of a script. For example: x=1 if (x=1) y=a else if (x=2) ; not true, does this get read? y=b ; does this get read? The functions I test the runtime of...
by AviationGuy
01 Apr 2019, 10:00
Forum: Ask For Help
Topic: Conditional Color Picker That Runs Continuously
Replies: 2
Views: 502

Re: Conditional Color Picker That Runs Continuously

Hi there, welcome to the forum! Check out PixelSearch that's probably what you'll need. As a start, I suggest looking at the AHK tutorial itself. What you want isn't that complicated indeed. Think you are able to figure it out pretty quickly. Your final code could look something like this. f1:: togg...

Go to advanced search