Search found 73 matches

by Noo0B
26 Mar 2018, 01:28
Forum: Scripts and Functions
Topic: GUI Clipboard Editor
Replies: 0
Views: 394

GUI Clipboard Editor

Hello all, CoordMode, Mouse ScreenWidth:= A_ScreenWidth ScreenHeight:= A_ScreenHeight MouseGetPos, Xpos, Ypos GuiWidth:= 530 GuiHeight:= 100 X_Offset:= GuiWidth/2 Y_Offset:= GuiHeight/2 X_Limit:= ScreenWidth - X_Offset Y_Limit:= ScreenHeight - Y_Offset Mouse_X:= Xpos - X_Offset Mouse_Y:= Ypos - Y_Of...
by Noo0B
10 Mar 2018, 16:31
Forum: Ask For Help
Topic: Parenthesis Topic is solved
Replies: 3
Views: 296

Re: Parenthesis Topic is solved

Code: Select all

If (E2XHk != E3XHk) OR (E2YHk != E3YHk)
Worked, Thanks.
Regards!
by Noo0B
10 Mar 2018, 16:18
Forum: Ask For Help
Topic: Parenthesis Topic is solved
Replies: 3
Views: 296

Re: Parenthesis Topic is solved

Hi,
Thanks for the reply.
I´m trying to make the script proceed one argument only if one or both of the != statements is true.
Like so:

Code: Select all

E2XHK:= E2X%Hk%
E2YHK:= E2Y%Hk%
If %E2XHk% != %E3XHk% OR %E2YHk% != %E3YHk%
	MouseClick, , E2X%Hk%, E2Y%Hk%
by Noo0B
10 Mar 2018, 15:02
Forum: Ask For Help
Topic: Parenthesis Topic is solved
Replies: 3
Views: 296

Parenthesis Topic is solved

Hi,

Code: Select all

If (%E2XHk% != %E3XHk%) OR (%E2YHk% != %E3YHk%)
Works if both are true, but do not if one is false.

Code: Select all

If %E2XHk% != %E3XHk% OR %E2YHk% != %E3YHk%
Works if one is false, but does not if both are true.
Help please.
Thanks.
Edit
Corrected for typos in post.
by Noo0B
03 Mar 2018, 05:56
Forum: Ask For Help
Topic: ImageSearch Coords Offseting Near Line End On Notepad. Topic is solved
Replies: 1
Views: 214

ImageSearch Coords Offseting Near Line End On Notepad. Topic is solved

Hi, I wrote this script to substitute the letter "N" with a clipboard capture: SetWorkingdir C:\Users\FX-8120\Desktop CoordMode, Screen F12:: exitapp F11:: pause F10:: reload F9:: Loop { ImageSearch, MovX, MovY, 0, 0, 1920, 1080, *2 N.png MovX2:= MovX + 4 If ErrorLevel = 0 { MouseMove, movX, movY Mo...
by Noo0B
25 Feb 2018, 13:47
Forum: Ask For Help
Topic: Why would this code send random Left Clicks?
Replies: 4
Views: 404

Re: Why would this code send random Left Clicks?

Apparently Its reevaluating this out of place:

Code: Select all


													If LButtonstate = D
														Mouseclick, , , , , , D
by Noo0B
25 Feb 2018, 03:44
Forum: Ask For Help
Topic: Why would this code send random Left Clicks?
Replies: 4
Views: 404

Re: Why would this code send random Left Clicks?

It only works if I add If (ErrorLevel = 0) { GetKeyState, LButtonstate, LButton if LButtonstate = D Mouseclick, , , , , , U Send, {%HKeyHkKeyT1%} If LButtonstate = D Mouseclick, , , , , , D } But I don't want to bloat the script. Any Ideas why this is happening? Regards!
by Noo0B
25 Feb 2018, 02:58
Forum: Ask For Help
Topic: Why would this code send random Left Clicks?
Replies: 4
Views: 404

Why would this code send random Left Clicks?

Hello, Here is the code: %HKeyHkKeyT1%toggle := !%HKeyHkKeyT1%toggle If %HKeyHkKeyT1%toggle { While %HKeyHkKeyT1%toggle { ImageSearch, , , 0, 0, 1000, 80, % "*10 " HKeyHkS1T1 "Timer.png" If ErrorLevel = 1 ImageSearch, , , 0, 0, 1000, 80, % "*10 " HKeyHkS1T1 "Timer3.png" if ErrorLevel = 0 SetEnv, %HK...
by Noo0B
25 Feb 2018, 02:38
Forum: Ask For Help
Topic: ImageSearch With concatenated Variable
Replies: 2
Views: 238

Re: ImageSearch With concatenated Variable

Thanks for the reply! I'm not using output variables because they wont be used anywhere, the ImageSearch is a triggerer not a locator. What I was trying to know was how to use concatenated variables on the click coordinates parameters. HkeyHkS would be a literal string and HkeyHKKey a single letter....
by Noo0B
22 Feb 2018, 18:04
Forum: Ask For Help
Topic: ImageSearch With concatenated Variable
Replies: 2
Views: 238

ImageSearch With concatenated Variable

Hi there! I tried all these syntaxes but they didn't seem to work and I ran out of options :angel: : MouseClick, , % "HKeyHkS" XTrig2 "X", % "HKeyHkS" XTrig2 "Y" MouseClick, , % HKeyHkS%Trig2%X, % HKeyHkS%XTrig2%Y MouseClick, , HKeyHkS%Trig2%X, HKeyHkS%XTrig2%Y ImageSearch, , , 1575, 1020, 1630, 107...
by Noo0B
22 Feb 2018, 17:44
Forum: Gaming
Topic: Help With Caveman loop stop Topic is solved
Replies: 2
Views: 278

Re: Help With Caveman loop stop Topic is solved

Hey! Thanks for the reply! Yeah I forgot to remove the messageboxes! I was using them to try to stop the loop but I found another solution. I realized there could be only one type per hotkey so I used the first sub to Break, then the last sub of the sub sequence add index to the loop count variable ...
by Noo0B
21 Feb 2018, 17:05
Forum: Ask For Help
Topic: Very Strange Error Topic is solved
Replies: 4
Views: 322

Re: Very Strange Error Topic is solved

Thanks Garry and Jeeswg! I´m so relieved it worked. What made me give up was that the code without the quotes worked before and works on a test script. I still have no idea why it behaves like that. I´m glad its working and I´m putting a large stone on top of It. I´m not Lexikos to worry about it. T...
by Noo0B
21 Feb 2018, 15:14
Forum: Ask For Help
Topic: Very Strange Error Topic is solved
Replies: 4
Views: 322

Re: Very Strange Error Topic is solved

I´m just trying to humor it because its very disappointing to finish everything after a month and then figure out something like that wrecked me.
by Noo0B
21 Feb 2018, 15:03
Forum: Ask For Help
Topic: Very Strange Error Topic is solved
Replies: 4
Views: 322

Very Strange Error Topic is solved

I have this code:

Code: Select all

If ( Var = W) {
Var2:= 123
Var3:= 456
} Else {
MsgBox %Var%
}
And I keep getting the MsgBox With W.
Should I record it and make it a Gif?
by Noo0B
21 Feb 2018, 14:59
Forum: Ask For Help
Topic: Stop a specific loop Topic is solved
Replies: 3
Views: 409

Re: Stop a specific loop Topic is solved

Thanks for the reply! Although that was not exactly what I wanted I can see that you have great knowledge of AHK. I have no idea what ( ) does for example. I actually got it fixed by doing the break after calling the sub and the index add at the end of the sub before recalling the loop. Only problem...
by Noo0B
21 Feb 2018, 12:48
Forum: Ask For Help
Topic: Stop a specific loop Topic is solved
Replies: 3
Views: 409

Re: Stop a specific loop Topic is solved

It can be only 1 type (subroutine) per loop index. I could try breaking the loop After the gosub, and adding the index and calling the loop again at the end of the last subroutine called by the initial subroutine for all types .
by Noo0B
21 Feb 2018, 12:35
Forum: Ask For Help
Topic: Stop a specific loop Topic is solved
Replies: 3
Views: 409

Stop a specific loop Topic is solved

Hello everyone, I have a script with a loop that launches several subroutines, some with other subroutines with another loops inside, some launching other subroutines without loops. I tried everything to stop the initial loop from launching them all at once. I managed to stop the A_Index variable ju...
by Noo0B
21 Feb 2018, 05:54
Forum: Gaming
Topic: Help With Caveman loop stop Topic is solved
Replies: 2
Views: 278

Help With Caveman loop stop Topic is solved

I´m trying to stop a loop from jumbling variable indexes and running while its subs do not finish. I fixed the variable problem with a variable translation. I partially fixed the subs running over each other with a msgbox. Wouldn´t help with subsequent subs called by the sub. Those would jumble with...
by Noo0B
21 Feb 2018, 05:29
Forum: Ask For Help
Topic: Not so Difficult Logic Question Topic is solved
Replies: 2
Views: 333

Re: Difficult Logic Question Topic is solved

I probably Surfed Through the solution somewhere without being able to understand and recognize it.
I also found this but couldn't get the file append to work:
https://autohotkey.com/board/topic/38482-dynamic-label/
I really don´t know much!
Thanks and regards!
by Noo0B
19 Feb 2018, 19:17
Forum: Ask For Help
Topic: Read Write syntax with concatenated Variable Inside Topic is solved
Replies: 4
Views: 391

Re: Read Write syntax with concatenated Variable Inside Topic is solved

Thanks for the reply! I have it fixed actually. Sorry for not updating the post. The problem was with the original loop calling a sub that when finished, both called another sub and continued the loop. The loop added +=1 to a variable used by the loop, that sub and the next at the loop end. That off...

Go to advanced search