Search found 62 matches
- 24 Feb 2022, 19:03
- Forum: Ask for Help (v1)
- Topic: how do you make && operator for pixelgetcolor? Topic is solved
- Replies: 7
- Views: 544
how do you make && operator for pixelgetcolor? Topic is solved
im little bit confused with && operator? can you guys help me? thanks square2() { PixelSearch, X, Y, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, 0x00ff00, 0, fast PixelGetColor, yellow, 25, 39, RGB if yellow = 0xFFFF63 && ErrorLevel=0 { MsgBox You found square2 sleep, 100 return } else { sleep, 500 ret...
- 24 Feb 2022, 09:38
- Forum: Ask for Help (v1)
- Topic: else with no matching if Topic is solved
- Replies: 7
- Views: 524
Re: else with no matching if Topic is solved
its driving me nuts i already remove the brace still same error
- 24 Feb 2022, 09:12
- Forum: Ask for Help (v1)
- Topic: else with no matching if Topic is solved
- Replies: 7
- Views: 524
else with no matching if Topic is solved
can someone help me? i dont know whats wrong it says else with no matching if pk() { Global PixelGetColor, yellow, 25, 39, RGB if (yellow = 0xFFFF63) { ControlSend, ahk_parent, {F9}, ahk_pid %AhkPID% sleep, 200 ControlSend, ahk_parent, {F9}, ahk_pid %AhkPID% sleep, 200 ControlSend, ahk_parent, {F9},...
- 13 Feb 2022, 20:27
- Forum: Ask for Help (v1)
- Topic: spam key until image appear
- Replies: 1
- Views: 254
spam key until image appear
i want to spam f2 while pressing it then stop if image appear, can you guys help me? thank you home:: WinGet, AhkPID, PID, A WinGetClass, ChoboboApp, ahk_pid %AhkPID% SplashTextOn,,, the PID:%AhkPID% ACTIVATED Sleep 2000 SplashTextOff F2:: While GetKeyState("F2","P") { ControlSend, ahk_parent, {F2},...
- 12 Feb 2022, 18:48
- Forum: Gaming Help (v1)
- Topic: WASD remapping?
- Replies: 1
- Views: 573
WASD remapping?
lost ark is currently top most played mmorpg at steam right now game is clunky and only use point to click so im trying to remap point to click to WASD movement, but i have some issues, sometimes mouse click is stucked and my character is still moving even im not pressing the key and sometimes it is...
- 06 Feb 2022, 05:22
- Forum: Ask for Help (v1)
- Topic: ahk pid not working inside a function?
- Replies: 1
- Views: 258
ahk pid not working inside a function?
im not sure whats wrong.. the generated pid works inside a loop but dont seem to work if i make it inside a function? #SingleInstance ,force CoordMode, Pixel, Screen CoordMode, Mouse, Screen SetTitleMatchMode RegEx mywinclass:="Chobobo App (^-_-^)" ^SHIFT:: WinGet, AhkPID, PID, A WinGetClass, mywinc...
- 05 Feb 2022, 17:24
- Forum: Ask for Help (v1)
- Topic: control send simultaneously?
- Replies: 6
- Views: 394
Re: control send simultaneously?
You might be right. Nonetheless, my feeling is that you will never prove that the script broke without knowing the ErrorLevel. Perhaps you already did that but simply did not show how your script reports it. script work 101% if 1 is running only i tried to debug it with one loop only no other condi...
- 05 Feb 2022, 13:47
- Forum: Ask for Help (v1)
- Topic: control send simultaneously?
- Replies: 6
- Views: 394
Re: control send simultaneously?
How do you know what the PID is? I'd probably use the process (ahk_exe...) instead, since it does not change with each computing session or run. Instead of starting with the key state, you could simply display the ErrorLevel from the search, so that you know what it is. That is a good starting poin...
- 05 Feb 2022, 13:37
- Forum: Ask for Help (v1)
- Topic: control send hold key not working?
- Replies: 7
- Views: 537
Re: control send hold key not working?
i dont really like to to make it focus sorry.. i woudn't use control send if i dont want it to work in background window I guess you even haven't given it a try. Am I right? Please, try. Does it interfere with your work in another window? yes i also tried control focus it is still holding ALT and a...
- 05 Feb 2022, 13:02
- Forum: Ask for Help (v1)
- Topic: control send simultaneously?
- Replies: 6
- Views: 394
Re: control send simultaneously?
Displaying the ErrorLevel might be easier. Here is an example of the key state: https://www.autohotkey.com/docs/commands/GetKeyState.htm#ExRemap You can omit the "P" parameter if you are checking the logical state. this is just scratch paper i still confused and dont know what im doing Loop, { Imag...
- 05 Feb 2022, 12:55
- Forum: Ask for Help (v1)
- Topic: control send hold key not working?
- Replies: 7
- Views: 537
Re: control send hold key not working?
SetKeyDelay, 0 doesnt work SetKeyDelay, 300 this works, but ALT key is affecting my whole pc and other programs i want to run the script in background while i multi task in my google chrome i dont really like to to make it focus sorry.. i woudn't use control send if i dont want it to work in backgro...
- 05 Feb 2022, 12:36
- Forum: Ask for Help (v1)
- Topic: control send simultaneously?
- Replies: 6
- Views: 394
control send simultaneously?
i'm running 2 script, but it broke whenever its trying to send 4 keys at a time in 2 window client, sometimes window1 does not send, and windows2 working fine, sometimes it doesnt send.. vice versa violet1.ahk SetKeyDelay, 300, 30 Loop, { ImageSearch,violetX, violetY, 248, 128, 939, 680, violet1.png...
- 03 Feb 2022, 14:21
- Forum: Ask for Help (v1)
- Topic: control send hold key not working?
- Replies: 7
- Views: 537
Re: control send hold key not working?
Try this: home:: SetKeyDelay, 300, 30 WinGet, AhkPID, PID, A WinGetClass, mywinclass, ahk_pid %AhkPID% SplashTextOn,,, the Process ID:%AhkPID% is saved Sleep 2000 SplashTextOff Loop, { ControlSend, ahk_parent, !9, ahk_pid %AhkPID% sleep, 3000 } return end::ExitApp it is working now. but i dont get ...
- 03 Feb 2022, 11:09
- Forum: Ask for Help (v1)
- Topic: control send hold key not working?
- Replies: 7
- Views: 537
control send hold key not working?
holding keys to inactive window dont seem to work any ideas? thank you #SingleInstance ,force CoordMode, Pixel, Screen SetKeyDelay, 0, 30 SetTitleMatchMode RegEx mywinclass:="Chobobo app (^-_-^)" home:: WinGet, AhkPID, PID, A WinGetClass, mywinclass, ahk_pid %AhkPID% SplashTextOn,,, the Process ID:%...
- 30 Jan 2022, 12:29
- Forum: Ask for Help (v1)
- Topic: matching && (and) expression Topic is solved
- Replies: 5
- Views: 400
Re: matching && (and) expression Topic is solved
Another one: image1 = pic1.png image2 = violet.png x1 = 362 y1 = 280 x2 = 657 y2 = 457 For each, image in [image1, image2] { ImageSearch,,, x1, y1, x2, y2, %image% pic%each% := !ErrorLevel } Switch { Case pic1 & pic2: MsgBox, Two were found! Case pic1 | pic2: MsgBox, One was found! Default : MsgBox...
- 30 Jan 2022, 11:06
- Forum: Ask for Help (v1)
- Topic: matching && (and) expression Topic is solved
- Replies: 5
- Views: 400
matching && (and) expression Topic is solved
hi can you guys help me how to trigger 2 images? is it possible? thank you pic1() { pic1 := ImageSearch, Pic1x, Pic1Y, 362, 280, 657, 457, pic1.png pic2 :=ImageSearch, Pic2x, Pic2Y, 362, 280, 657, 457, violet.png if(ErrorLevel) { balls() } else if (pic1 !ErrorLevel) && (pic2 ErrorLevel) { ;i'm not s...
- 29 Jan 2022, 03:53
- Forum: Gaming Help (v1)
- Topic: timer press key every xxx minutes inside loop?
- Replies: 12
- Views: 1529
Re: timer press key every xxx minutes inside loop?
I'd say that a single script can be readily made to meet your goal, but your goal is not clearly described yet. Your first description was, "I'm trying to priority to press key(buff skill) every 3 minutes before proceding to main attack loop". Your second description was, "check timer if it reach 3...
- 28 Jan 2022, 17:31
- Forum: Gaming Help (v1)
- Topic: timer press key every xxx minutes inside loop?
- Replies: 12
- Views: 1529
Re: timer press key every xxx minutes inside loop?
I thought that I provided all possible examples, but if none of them work, then I am out of ideas. Others may have additional suggestions for you. Setting a timer does not actually define a variable called "timer", but my last example shows how to execute a labeled subroutine when a timer expires. ...
- 28 Jan 2022, 15:10
- Forum: Gaming Help (v1)
- Topic: timer press key every xxx minutes inside loop?
- Replies: 12
- Views: 1529
Re: timer press key every xxx minutes inside loop?
I thought that I provided all possible examples, but if none of them work, then I am out of ideas. Others may have additional suggestions for you. Setting a timer does not actually define a variable called "timer", but my last example shows how to execute a labeled subroutine when a timer expires. ...
- 28 Jan 2022, 14:57
- Forum: Gaming Help (v1)
- Topic: timer press key every xxx minutes inside loop?
- Replies: 12
- Views: 1529
Re: timer press key every xxx minutes inside loop?
An example is below. You don't need a function. You can use a simple labeled subroutine. Global start := A_TickCount Home:: SoundBeep, 1500 Loop { buff() Sleep, 200 } buff() { If (A_TickCount - start < 2000) Return MsgBox, Done! ExitApp } Or: Global start Home:: SoundBeep, 1500 start := A_TickCount...