beep ... will only work if it is marked the checkbox!

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
bittencourt318
Posts: 90
Joined: 16 Apr 2020, 10:57

beep ... will only work if it is marked the checkbox!

10 Jul 2022, 10:37

people need a help need to put this beep at the end of this script but it will only work if it is marked the checkbox! tried a few ways but the script works but the beep could not someone help me?


Code: Select all

Play:
loop , 3
{
	PixelSearch, FoundX, FoundY, 182, 684, 986, 700, 0x00B4F0, 30, Fast 
	if (ErrorLevel = 0){

    Click, Right, 606, 286	
    Sleep, 5
    Click, Right, 640, 289		
    Sleep, 5	

GuiControlGet, BipLoot

If(BipLoot)
{	
IfWinExist, XXXXXXXX
{
    SoundBeep, 2000, 1000
	sleep, 800
	    SoundBeep, 3000, 1000
	sleep, 800
	    SoundBeep, 4000, 1000
	sleep, 800
}

Else
{
	return		
}
}
}
}
return
Last edited by BoBo on 10 Jul 2022, 10:58, edited 1 time in total.
Reason: Changed subject line from "help me?" to a more specific "beep ...will only work if it is marked the checkbox!". HTH
User avatar
boiler
Posts: 17404
Joined: 21 Dec 2014, 02:44

Re: help me?

10 Jul 2022, 10:46

Since you haven’t shown the rest of your script, I can only assume BipLoot contains the value of the checkbox. Are you asking why it only beeps when it’s checked?
bittencourt318
Posts: 90
Joined: 16 Apr 2020, 10:57

Re: help me?

10 Jul 2022, 10:51

boiler wrote:
10 Jul 2022, 10:46
Since you haven’t shown the rest of your script, I can only assume BipLoot contains the value of the checkbox. Are you asking why it only beeps when it’s checked?
this script has many lines so i didn't put all i'll explain it
the script is looking for a color in a certain area of the screen as soon as it finds it clicks on another part of the screen! I wanted to put a bit with checkbox for when I did not have on the computer and when i had I would not use!

only he's not beeping he does the clicks but not the beep
User avatar
boiler
Posts: 17404
Joined: 21 Dec 2014, 02:44

Re: help me?

10 Jul 2022, 10:56

Are you sure whatever you put in for XXXXXXXX is a valid window title and it exists when you want it to beep?
bittencourt318
Posts: 90
Joined: 16 Apr 2020, 10:57

Re: help me?

10 Jul 2022, 11:01

boiler wrote:
10 Jul 2022, 10:56
Are you sure whatever you put in for XXXXXXXX is a valid window title and it exists when you want it to beep?
kkkk was that I forgot to por! thank you very much again!
:monkeysee: :lol: :thumbup:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Lpanatt, Marium0505 and 326 guests