Search found 1191 matches

by Hellbent
23 Feb 2021, 01:53
Forum: Ask For Help
Topic: [solved] (simple) understanding the logic of OR operator Topic is solved
Replies: 14
Views: 304

Re: (simple) understanding the logic of OR operator Topic is solved

Xeo786 wrote:
23 Feb 2021, 01:49
should have I warp like this If (A = "1") and ((B = "1") or (C = "1")) ?
That would work, but it wouldn't be necessary to wrap B and C like this (B = "1")

Doing so only equates to something like B := B which is redundant. But if it is easier for you to understand I don't see the harm.
by Hellbent
23 Feb 2021, 01:37
Forum: Ask For Help
Topic: [solved] (simple) understanding the logic of OR operator Topic is solved
Replies: 14
Views: 304

Re: (simple) understanding the logic of OR operator Topic is solved

Its hard for me to understand logic with graphic what I simply assume it should be work like this If (A = "1") ; step one if (B = "1") or (C = "1") ; step 2 result = Bingo The way you had your logic is just like if you wrote it like this. Output1 := Input1 && Input2 if( Output1 || Input3 ){ ;Bingo ...
by Hellbent
23 Feb 2021, 01:22
Forum: Ask For Help
Topic: [solved] (simple) understanding the logic of OR operator Topic is solved
Replies: 14
Views: 304

Re: (simple) understanding the logic of OR operator Topic is solved

- But you've changed (B = "1" or C = "1") to (B = "1" ) or ( C = "1") ! yah both ways it will work according to my mind its better to wrap condition What you wrote works like this. . 20210223012049.png . Compare with the logic circuit I posted earlier. Truth Tables 20210223013007.png
by Hellbent
23 Feb 2021, 00:25
Forum: Ask For Help
Topic: [solved] (simple) understanding the logic of OR operator Topic is solved
Replies: 14
Views: 304

Re: (simple) understanding the logic of OR operator Topic is solved

I don't use that syntax for "If" and once I changed it, it worked fine. So it was a syntax error.


Works.

Code: Select all


Check:
If( A = "1" && (B = "1" || C = "1"))
      MsgBox % "BINGO!"
   else
      MsgBox % "ALAS!"
return	
20210223002324.png
20210223002324.png (7.62 KiB) Viewed 298 times
by Hellbent
22 Feb 2021, 14:24
Forum: Ask For Help
Topic: Defaulting Values (on missing object Key_ Topic is solved
Replies: 7
Views: 198

Re: Defaulting Values (on missing object Key_ Topic is solved

Can't speak much on this, but you might want to do it this way over the way you have it. o := {carmen: 0 } c := ( o.carmen ) ? ( o.carmen ) : ( "not found" ) ; Will miss the actual value 0 w := {wally: 0 } d := ( w.wally != "" ) ? ( w.wally ) : ( "not found" ) ;Will catch the 0 msgbox, % "c: " c "`n...
by Hellbent
22 Feb 2021, 13:44
Forum: Gaming
Topic: How to choose key from DropDownList and use it for turn on autoclicker?
Replies: 14
Views: 191

Re: How to choose key from DropDownList and use it for turn on autoclicker?

Before you activate the new hotkey you need to disable the last one that was used or you will end up with multiple hotkeys active at the same time. #SingleInstance, Force LastKey := "" Gui, Font, s12 Gui, Add, Text,, Choose a button. Gui, Add, DropDownList, vkey, Numpad1|Numpad2 Gui, Add, Button, De...
by Hellbent
22 Feb 2021, 13:10
Forum: Gaming
Topic: Code Follow up before(ImageSearch) Found the image Topic is solved
Replies: 9
Views: 146

Re: Code Follow up before(ImageSearch) Found the image Topic is solved

@HiSoKa
Like @mikeyww said, your code will never hit the return. So what you have there will run forever, over and over again. If that isn't what you want, just remove the outer loop.

*EDIT* NP
by Hellbent
22 Feb 2021, 12:56
Forum: Gaming
Topic: Code Follow up before(ImageSearch) Found the image Topic is solved
Replies: 9
Views: 146

Re: Code Follow up before(ImageSearch) Found the image Topic is solved

Just a guess, but based on what you said I assume that this is what you are going for. CoordMode, Pixel CoordMode, Mouse GameTitle = img1.png CornerGameTitle = img2.png CoverCheck = img3.png DownloadButton = img4.png HarmCheck := { NoHarm: A_ScriptDir "\img5.png" , Harm: A_ScriptDir "\img6.png"} Fil...
by Hellbent
22 Feb 2021, 12:49
Forum: Gaming
Topic: Code Follow up before(ImageSearch) Found the image Topic is solved
Replies: 9
Views: 146

Re: Code Follow up before(ImageSearch) Found the image Topic is solved

HiSoKa wrote:
22 Feb 2021, 12:39
i added curly braces after if !errorlevel ,but problem still in the code ,
execute line number 50 before found image in previous section.
The second two image searches are outside the inner loop so it only checks them once before moving on.
by Hellbent
22 Feb 2021, 12:36
Forum: Ask For Help
Topic: GUI Listbox help
Replies: 62
Views: 999

Re: GUI Listbox help

1. It's scrolling here when the Gui isn't active. 2. It's only scrolling the control directly under the cursor. It doesn't need to have the focus. Ok, that isn't what I'm getting on my end. I have to active the gui to scroll and only the control that has focus changes (so I can hover over one contr...
by Hellbent
22 Feb 2021, 11:32
Forum: Ask For Help
Topic: GUI Listbox help
Replies: 62
Views: 999

Re: GUI Listbox help

@iilabs
Do you use windows 8+ and can be confident that you won't have to run on windows 7 or older?

There are a ton of tricks that I can do with gdip very easily if you are on windows 8+, older versions just make it more difficult but not even close to impossible.
by Hellbent
22 Feb 2021, 10:58
Forum: Ask For Help
Topic: Collapsible Gui Window
Replies: 9
Views: 201

Re: Collapsible Gui Window

You mean like this? *Assumes that your taskbar is at the bottom of your screen. #SingleInstance, force SetBatchLines, -1 SysGet, Prime, MonitorPrimary SysGet, Work , MonitorWorkArea , % Prime Gui, 1:Show, w300 h300 Gui, 1:Minimize SetTimer, WatchCursor, 300 return GuiClose: GuiContextMenu: *ESC::Exi...
by Hellbent
22 Feb 2021, 10:41
Forum: Ask For Help
Topic: GUI Listbox help
Replies: 62
Views: 999

Re: GUI Listbox help

just me I have this which does what I was asking about, but iilabs had mentioned that it sometime glitches the graphics for the control and I'm not sure if the code you have fixes any graphical glitches. . 20210222103852.png . #SingleInstance, force SetBatchLines, -1 global GuiHwnd Gui, 1: +AlwaysO...
by Hellbent
22 Feb 2021, 09:57
Forum: Gaming
Topic: wrong syntax in for loop Which reference to image object Topic is solved
Replies: 14
Views: 233

Re: wrong syntax in for loop Which reference to image object Topic is solved

just i thought there are easy way to fix my code as i needed. You can fix your code in a way that is almost exactly like you had it, but you would need to do a bunch of if statements and that isn't the best solution. For example. *Note: I'm only going to type out enough to show what I mean. ;Using ...
by Hellbent
22 Feb 2021, 09:45
Forum: Gaming
Topic: ControlClick not clicking in BlueStacks 5 Topic is solved
Replies: 14
Views: 304

Re: ControlClick not clicking in BlueStacks 5 Topic is solved

From a little bit of testing I did a few years ago I found that there are a large number of strange behaviors with controlclick. Sometimes the window can't be active, sometimes the window HAS to be hidden, and sometimes it will ONLY click where your cursor is REGARDLESS of where you tell it to click...
by Hellbent
22 Feb 2021, 09:21
Forum: Gaming
Topic: wrong syntax in for loop Which reference to image object Topic is solved
Replies: 14
Views: 233

Re: wrong syntax in for loop Which reference to image object Topic is solved

HiSoKa wrote:
22 Feb 2021, 09:15
i will do, It's the best way ;)

What you had is equivalent to

Code: Select all


Gosub, img5.png 


img5.png:  ;<------- So your labels would need these names and NOT "Harm" or "NoHarm"
	Tooltip, Hi
	return

by Hellbent
22 Feb 2021, 09:10
Forum: Gaming
Topic: wrong syntax in for loop Which reference to image object Topic is solved
Replies: 14
Views: 233

Re: wrong syntax in for loop Which reference to image object Topic is solved

Hellbent wrote:
22 Feb 2021, 04:05

Code: Select all


	Gosub, %v%  ;<----- v is equal to "img5.png" or "img6.png". There is no label called "img5.png" or "img6.png"

Use the first code I posted.
by Hellbent
22 Feb 2021, 09:03
Forum: Ask For Help
Topic: GUI Listbox help
Replies: 62
Views: 999

Re: GUI Listbox help

Rather late but nontheless: A proof of concept for common list boxes (seems to work stable here): That's very nice just me, works well as far as I can tell. Is there a way that it can: 1: Scroll when the gui isn't active. 2: Scroll the closest control to the cursor and not the control that has focu...
by Hellbent
22 Feb 2021, 05:46
Forum: Ask For Help
Topic: Hotkey Issue in Pacman Build Attempt Topic is solved
Replies: 17
Views: 369

Re: Hotkey Issue in Pacman Build Attempt Topic is solved

(but... Ternary is faster and more compact ). Choices, Choices... #SingleInstance, Force return *ESC::ExitApp Numpad1:: StartTime := A_TickCount Loop, 1000000 { ( CurrentDirection = "Up" )?( ( ( Player.Y -= Player.Speed ) < 0 ) ? ( Player.Y := 0 ) ) : (CurrentDirection = "Right" )?( ( ( Player.X +=...
by Hellbent
22 Feb 2021, 04:20
Forum: Gaming
Topic: wrong syntax in for loop Which reference to image object Topic is solved
Replies: 14
Views: 233

Re: wrong syntax in for loop Which reference to image object Topic is solved

HiSoKa wrote:
22 Feb 2021, 04:14
@Hellbent, sorry i deleted my reply by mistake, thx a lots for your time hellbent ..
Np, hope that helped.

Go to advanced search