Search found 62 matches
- 21 Aug 2023, 07:30
- Forum: Ask for Help (v1)
- Topic: multiple hotkeys wont work?
- Replies: 1
- Views: 136
multiple hotkeys wont work?
help please im having issue running multiple hotkey in one script so i had to make seperate script from it is there any way to make it work in one script?? 1:: blooming() return 2:: divider() return 3:: cyclone() return blooming() { Send, {w Down}{RButton Down} sleep, 20 Send, {w up}{RButton up} sle...
- 04 Jun 2023, 22:42
- Forum: Ask for Help (v1)
- Topic: change countdown timer text color when reaches zero Topic is solved
- Replies: 2
- Views: 446
change countdown timer text color when reaches zero Topic is solved
this script count to 5 everytime i press f3 how can i make countdown timer text color to red when reaches zero? ;On-screen display (OSD) CustomColor = 99AA55 ; Can be any RGB color (it will be made transparent below). Gui +LastFound +AlwaysOnTop -Caption +ToolWindow ; +ToolWindow avoids a taskbar bu...
- 18 Mar 2023, 02:41
- Forum: Ask for Help (v1)
- Topic: bracket/parenthesis help
- Replies: 1
- Views: 213
bracket/parenthesis help
my brain is throbbing i dont know how to properly put bracket to my conditions can you guys help me? basically i wanna pixelsearch two colors, if no green or violet appears then press f9 f1:: loop { loot() teleport() attack() } Return end::ExitApp ;===== my other functions loot() and attack() is 100...
- 18 Mar 2023, 01:45
- Forum: Ask for Help (v1)
- Topic: matching two error level with OR condition?
- Replies: 4
- Views: 372
Re: matching two error level with OR condition?
i cant seem make it work, how about adding flags will it work? main() { Global pixelSearch, greenX, greenY, 30, 51, 759, 592, 0x21C642, 0, Fast RGB if (ErrorLevel = 0) green := ok pixelSearch, violetX, violetY, 139, 182, 865, 643, 0x6B29A5, 0, Fast RGB if (ErrorLevel = 0) violet := ok If( green = "o...
- 17 Mar 2023, 22:45
- Forum: Ask for Help (v1)
- Topic: matching two error level with OR condition?
- Replies: 4
- Views: 372
matching two error level with OR condition?
help please i want to double pixelsearch, and then press enter if it cannot find green or violet i hope you can help me, thank you so much :) main() { Global pixelSearch, greenX, greenY, 30, 51, 759, 592, 0x21C642, 0, Fast RGB pixelSearch, violetX, violetY, 139, 182, 865, 643, 0x6B29A5, 0, Fast RGB ...
- 23 Dec 2022, 11:52
- Forum: Gaming Help (v1)
- Topic: how to post message with keystrokes?
- Replies: 1
- Views: 300
how to post message with keystrokes?
for unknown reason the game is blocking control send but post message works left clicking works PostMessage, 0x201,1,,,ahk_pid %PID% ;this is left click down Sleep, 100 PostMessage, 0x202,0,,,ahk_pid %PID% ;this is click up any idea how to postMessage code for keystroke like f1-f12 or qwerty keys? t...
- 16 Apr 2022, 03:27
- Forum: Ask for Help (v1)
- Topic: ini read help Topic is solved
- Replies: 6
- Views: 364
Re: ini read help Topic is solved
omg im so dumb thank you so much from the buttom of my heartgregster wrote: ↑16 Apr 2022, 03:25var contains the output, so you should check it:Code: Select all
if(var = 12)
- 16 Apr 2022, 03:25
- Forum: Ask for Help (v1)
- Topic: ini read help Topic is solved
- Replies: 6
- Views: 364
Re: ini read help Topic is solved
still no luck
Code: Select all
Global id:= 0
IniRead, var, myini.ini, section, id
Newid:= %id%
if (Newid = 12) {
msgbox, found
- 16 Apr 2022, 03:20
- Forum: Ask for Help (v1)
- Topic: ini read help Topic is solved
- Replies: 6
- Views: 364
Re: ini read help Topic is solved
i tried but still cant match the value of 12AHKStudent wrote: ↑16 Apr 2022, 03:08and the codeCode: Select all
[section] id=12
Code: Select all
IniRead, var, myini.ini, section, id
do you think there is something wrong with this??
Code: Select all
if(id = 12) {
msgbox, found it
- 16 Apr 2022, 02:49
- Forum: Ask for Help (v1)
- Topic: ini read help Topic is solved
- Replies: 6
- Views: 364
ini read help Topic is solved
im so confused so much, how do i check if my ini file value is 12? it does not seem to detect the 12 value in my ini file i hope you guys can enlighten me, thank you numpad1:: loop, { check_id() sleep 30 } check_id() { Global apple:= 0 IniRead, var, myini.ini, id, apple if(apple = 12) { msgbox, foun...
- 15 Apr 2022, 13:16
- Forum: Ask for Help (v1)
- Topic: WinExist cant detect title with spaces
- Replies: 4
- Views: 371
Re: WinExist cant detect title with spaces
I don't see a reason for RegEx mode here, but if you are using a variable in an expression , you shouldn't put quotes around them: if winExist(mywinclass) For a conditional hotkey, I would rather use a directive: #if winExist(mywinclass) Home:: i already tried both with quote and without quote if w...
- 15 Apr 2022, 13:04
- Forum: Ask for Help (v1)
- Topic: WinExist cant detect title with spaces
- Replies: 4
- Views: 371
WinExist cant detect title with spaces
help please winexist cant seem to detect titles with spaces
here is windows spy
Code: Select all
SetTitleMatchMode RegEx
mywinclass:="Gravity(tm) Error Handler"
home::
if winExist("mywinclass")
msgbox, found
here is windows spy
- 25 Mar 2022, 14:53
- Forum: Gaming Help (v1)
- Topic: how to properly fill the control click coords?
- Replies: 6
- Views: 980
Re: how to properly fill the control click coords?
any idea how to find the coord of button? its driving me nuts
- 25 Mar 2022, 08:59
- Forum: Gaming Help (v1)
- Topic: how to properly fill the control click coords?
- Replies: 6
- Views: 980
Re: how to properly fill the control click coords?
as you can see im using the coord shown in ahk window spy, but it is not clicking the button so i assume the coords is incorrect or did i missed something?
- 25 Mar 2022, 08:47
- Forum: Gaming Help (v1)
- Topic: how to properly fill the control click coords?
- Replies: 6
- Views: 980
how to properly fill the control click coords?
i wanna make the script works even inactive/background and click the stop button in the app... as you can see im using the coord client from ahk window spy, but its not clicking it, how do i fill the x and y coords correctly? do i need to use client coord from ahk window spy? SetTitleMatchMode RegEx...
- 06 Mar 2022, 08:17
- Forum: Ask for Help (v1)
- Topic: make macro work only when window is active? Topic is solved
- Replies: 2
- Views: 288
make macro work only when window is active? Topic is solved
hi how to make my macro works only if a specified pid window is active? thank you! #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% SetKeyDelay, 0, 15 SetMouseDelay, 30 #SingleInstance ,force home:: WinGet, AhkPID, PID, A WinGetClass, Chobobo, ahk_pid %AhkPID% SplashTextOn,,, PID:%AhkPID% ACTIVATED...
- 01 Mar 2022, 16:06
- Forum: Ask for Help (v1)
- Topic: only use macro when window is active?
- Replies: 1
- Views: 226
only use macro when window is active?
i want my macro to trigger only if the window is active/focus.. how to do that? thank you #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% SetKeyDelay, 0, 15 SetMouseDelay, 30 #SingleInstance ,force home:: WinGet, AhkPID, PID, A WinGetClass, Chobobo, ahk_pid %AhkPID% SplashTextOn,,, chobobo PID:%Ah...
- 28 Feb 2022, 05:38
- Forum: Ask for Help (v1)
- Topic: how do you make && operator for pixelgetcolor? Topic is solved
- Replies: 7
- Views: 538
Re: how do you make && operator for pixelgetcolor? Topic is solved
By assigning ErrorLevel to err after the PixelGetColor, it is always going to be 0 because PixelGetColor sets it (and almost never has an error), so it has nothing to do with the result of the PixelSearch. Move the assignment after the PixelSearch and prior to PixelGetColor, or put the order of the...
- 28 Feb 2022, 05:24
- Forum: Ask for Help (v1)
- Topic: how do you make && operator for pixelgetcolor? Topic is solved
- Replies: 7
- Views: 538
Re: how do you make && operator for pixelgetcolor? Topic is solved
i have wierd issue i try to debug it yellow = 0xFFFF63 works fine but !err did not work and it seems ignores it completely funny thing is i even hide the color from pixelsearch and only yellow from pixelgetcolor visible to my screen but still it says found :lol: err := ErrorLevel if !err && yellow =...
- 27 Feb 2022, 14:57
- Forum: Ask for Help (v1)
- Topic: how do you make && operator for pixelgetcolor? Topic is solved
- Replies: 7
- Views: 538
Re: how do you make && operator for pixelgetcolor? Topic is solved
will this be fine? square2() { Global PixelSearch, X, Y, 66, 65, 120, 106, 0xF90200, 0, fast PixelGetColor, yellow, 25, 39, RGB err := ErrorLevel if !err && yellow = 0xFFFF63 { ControlSend, ahk_parent, !0, ahk_pid %AhkPID% sleep, 200 ControlSend, ahk_parent, {F9}, ahk_pid %AhkPID% soundbeep, 750, 25...