Search found 46 matches

by Dyson
16 Mar 2024, 19:57
Forum: Ask for Help (v1)
Topic: need help finishing click coords
Replies: 1
Views: 50

need help finishing click coords

hey guys so ive got a script but just have a little issue with a line of code any help would be much appreciated here is what i have: F2:: Loop { PixelSearch, X, Y, 0, 0, A_ScreenWidth, A_ScreenHeight, 0x84848D, , Fast If ErrorLevel { sleep 20000 } else { MouseMove, %X%, %y% ; example 900, 610 Click...
by Dyson
16 Jul 2019, 09:53
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

#NoEnv ; ------------------------------------------------------------------------------ ; Settings IniFile := "Menu.ini" BtnCount := 71 ; total number of buttons BtnsPerColumn := 10 ; buttons per column BtnW := 100 ; button width BtnH := 70 ; button height ; ----------------------------------------...
by Dyson
15 Jul 2019, 08:43
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

I like it! But instead of: MsgBox, 16, Payment, !!!%Given% £ is not enough!!! Can we just deduct ot from the total, some people may wish to pay part card and part cash etc, Other than that it looks good, here is the code I have for the Cash button if we can incorporate it into the script? Cash: if (...
by Dyson
14 Jul 2019, 08:01
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

Next phase of my script, after using gui5 to place your order and you press the payment option, it flicks to this screen: Untitled.png if the customer hands me a £5 note i press the £5 button (same if they hand me a 10 or a 20 note) What i need to happen is for it to deduct 5.00 from the total secti...
by Dyson
14 Jul 2019, 07:39
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

I have played around with it now and it works perfectly :D ClockIn: Gui, Submit, NoHide IniRead, IsClerkNumExist, Clerk.ini, Clerk, %ClerkNumIn% if (IsClerkNumExist == "ERROR") { GuiControl,, ClerkNumIn MsgBox, 262192,Attention ,No Such Clerk.,2 return } if (ClerkNumIn == "") { GuiControl,, ClerkNum...
by Dyson
13 Jul 2019, 12:39
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

I will play around with it some more after work and see if I can resolve it
by Dyson
13 Jul 2019, 12:38
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

Yes it requires clerk.ini to determine if the person is already clocked in or not, to stop multiple clockin times, so if you are already clocked in it will tell you already clocked in, if not already clocked in then it will clock you in etc
by Dyson
13 Jul 2019, 05:41
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

Hi, it took some time but you might want to try: #NoEnv SetWorkingDir, %A_ScriptDir% ClerkInName := "Dyson" ; Testing ------------------------------------------------ IniRead, Ini, Hours.ini, Dyson GuiControl, , IniContent, %Ini% ; Testing ------------------------------------------------ Gui, Add, ...
by Dyson
10 Jul 2019, 09:16
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

... so like adding a total clocked in time to the section? Why don't you want to add a Total key to the section? (IMO, it would be the easiest way.) [Dyson] Total=21 10/07/2019 - 09:51:34 Clocked=In 10/07/2019 - 09:51:55 Clocked=Out (21 Seconds) Yea that’s how i mean but more like Total=00:00:21
by Dyson
10 Jul 2019, 04:38
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

with my clocking in system, the ini file layout it: [Dyson] 10/07/2019 - 09:51:34 Clocked=In 10/07/2019 - 09:51:55 Clocked=Out (21 Seconds) How would I make it so the 21 seconds can accumulate each time I clock out, so like adding a total clocked in time to the section? ClockIn: Gui, Submit, NoHide ...
by Dyson
09 Jul 2019, 12:07
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

Fab knew I messed up somewhere thanks just me.
by Dyson
09 Jul 2019, 02:48
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

this is from the order screen where it calculates the total, works fine: Untitled.png then once pressed payment it goes here but the total is 2x the price, if i added something else it changes to the correct total Plus the last item entered x2 Untitled2.png if you notice the total is actually 0.40 m...
by Dyson
09 Jul 2019, 02:32
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

Gui, 8:Font, s12 Gui, 8:Add, Edit, x1200 y10 w300 h370 vMenu2 hwndHMENU2 Gui, 8:Add, Edit, x1400 y380 w100 h30 vTotal2 Right2, 0.00 Gui, 8:Add, text, x1350 y385, Total: Gui, 8:Font, s26 Gui, 8:Add, text, x750 y10, %ClerkName% Gui, 8:Font, s12 gui, 8:Add, button, gmenu w100 h100, Take Away Gui, 8:Ad...
by Dyson
08 Jul 2019, 08:28
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

AddToOrder: BtnNumber := SubStr(A_GuiControl, 4) Menu := Menus[BtnNumber, "Name"] If (Menu = BtnNumber) { MsgBox, 16, Error!, No menu stored for button %BtnNumber%! Return } Price := Menus[BtnNumber, "Price"] Options := Menus[BtnNumber, "Options"] OptNumber := 0 If (Options <> "") { Gui, Opts:New, ...
by Dyson
08 Jul 2019, 04:05
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

moving forward with the script I will be adding functionality to the Payment Button, but for now I need a way of voiding items? so maybr thinking is it possible that once a button is pressed (chips for example) I can press chips in the editbox and press void and it can remove it? and decuct the pric...
by Dyson
04 Jul 2019, 09:55
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

yes that looks fine, so we can add cheese and lettuce and ketchup (or) mayo

the colours needed are just the background of the buttons the text is fine as black will just need to make sure I use light colours lol, is there a list of colour numbers I can use as a refrence? I cant find one :(
by Dyson
04 Jul 2019, 04:08
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

but any chance we can make it appear in middle of screen? Edit: I also realised it doesn't add to the total on the buttons with options ; ############################################################################## AddToOrder: BtnNumber := SubStr(A_GuiControl, 4) Menu := Menus[BtnNumber, "Name"] ...
by Dyson
04 Jul 2019, 04:05
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

cheese lettuce and ketchup or same with mayo instead? etc Wouldn't that affect the price.[/quote] no as they are free add ons, but I like the way u think lol, Maybe being able to set a price on the options isn't such a bad idea, if no price is set then its a free add on, I would be able to merge al...
by Dyson
04 Jul 2019, 03:34
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

Ok this works, :dance: but any chance we can make it appear in middle of screen? I have a Drinks button near the bottom and it doesn't show all options :s is it also possible to make it so you can tick more than one? like on a burger for example what toppings do you want in? cheese lettuce and ketch...
by Dyson
03 Jul 2019, 11:32
Forum: Ask for Help (v1)
Topic: Lable buttons via Ini File
Replies: 53
Views: 7988

Re: Lable buttons via Ini File

says there is an error with this line:

Code: Select all

      GetCursorPos(GX, GY)

Go to advanced search