Search found 45 matches

by Dyson
01 Jul 2019, 02:17
Forum: Ask For Help
Topic: Lable buttons via Ini File
Replies: 53
Views: 5637

Re: Lable buttons via Ini File

ok so, today im thinking about adding thos extra options I was talking about, WriteIni: Gui, Submit, NoHide ; MsgBox, 0, New Values, Name:`t%NewName%`n`nPrice:`t%NewPrice GuiControl, 6:, Btn%BtnNumber%, %NewName% Iniwrite, %NewName%, %IniFile%, %BtnNumber%, Menu Iniwrite, %NewPrice%, %IniFile%, %Btn...
by Dyson
30 Jun 2019, 05:10
Forum: Ask For Help
Topic: Lable buttons via Ini File
Replies: 53
Views: 5637

Re: Lable buttons via Ini File

I missed the quotes around the ‘n ( am using phone does t have the right quotes lol)
by Dyson
29 Jun 2019, 09:38
Forum: Ask For Help
Topic: Lable buttons via Ini File
Replies: 53
Views: 5637

Re: Lable buttons via Ini File

this is almost perfect to what I need it to be, ive been playing around trying to add a new line each time the buttons are pressed, for example with this code: AddToOrder: BtnNumber := SubStr(A_GuiControl, 4) Menu := Menus[BtnNumber, "Name"] If (Menu = BtnNumber) { MsgBox, 16, Error!, No menu stored...
by Dyson
28 Jun 2019, 09:36
Forum: Ask For Help
Topic: Lable buttons via Ini File
Replies: 53
Views: 5637

Re: Lable buttons via Ini File

Hi Dyson, the AddToOrder subroutine is missing in your code. In the meantime, I played with the INI file. I tried a new design using on section for each button (number) holding two entries Menu and Price . [1] Menu=Chips Price=1.50 [2] Menu=Cod Price=7.50 ... [60] Menu=60 Price= I read this INI int...
by Dyson
28 Jun 2019, 08:18
Forum: Ask For Help
Topic: Lable buttons via Ini File
Replies: 53
Views: 5637

Re: Lable buttons via Ini File

ok so ive played around a little bit, and this is the code I have got: gui, 5:Font, s12 Gui, 5:add, Edit, x1200 y10 w300 h370 vMenu Gui, 5:add, Edit, x1400 y380 w100 h30 vTotal Gui, 5:add, text, x1350 y385, Total: gui, 5:Font, s26 Gui, 5:add, text, x750 y10, Clerk gui, 5:Font, s12 Gui, 5:add, button...
by Dyson
27 Jun 2019, 12:08
Forum: Ask For Help
Topic: Lable buttons via Ini File
Replies: 53
Views: 5637

Re: Lable buttons via Ini File

Hi Dyson, I tried to adjust the script. Most important changes: Moved settings to the top of the script. Added missing adjustments for GUI 6. Changed SetBtns GUI to number 7 and adjusted the code. #NoEnv ; ------------------------------------------------------------------------------ ; Settings Ini...
by Dyson
27 Jun 2019, 08:50
Forum: Ask For Help
Topic: Lable buttons via Ini File
Replies: 53
Views: 5637

Re: Lable buttons via Ini File

ok so I added it to my main script: once I have clicked on a button to set the name and price, the whole script goes dead, I cant even close it (have to right click the task bar and close that way) here is the whole script if you wanted to have a little play with it, to get to programming: Home>Mana...
by Dyson
27 Jun 2019, 06:39
Forum: Ask For Help
Topic: Lable buttons via Ini File
Replies: 53
Views: 5637

Re: Lable buttons via Ini File

#NoEnv ; ------------------------------------------------------------------------------ ; Settings IniFile := "Menu.ini" BtnCount := 60 ; total number of buttons BtnsPerColumn := 10 ; buttons per column BtnW := 140 ; button width BtnH := 70 ; button height ; ----------------------------------------...
by Dyson
26 Jun 2019, 18:32
Forum: Ask For Help
Topic: Lable buttons via Ini File
Replies: 53
Views: 5637

Re: Lable buttons via Ini File

layout.jpg so the buttons look like this This is my original script, so at the moment the buttons are just dead buttons, Gui, 6:Show , w1540 h805, Programming Gui, 6:add, button, gSet1 x10 y30 w70 h70, 1 Gui, 6:add, button, x10 y100 w70 h70, 2 Gui, 6:add, button, x10 y170 w70 h70, 3 Gui, 6:add, but...
by Dyson
26 Jun 2019, 14:11
Forum: Ask For Help
Topic: Lable buttons via Ini File
Replies: 53
Views: 5637

Re: Lable buttons via Ini File

How would I change it to add more buttons? So the next 10 go to the side as they just go underneath but it’s off the screen
by Dyson
26 Jun 2019, 09:09
Forum: Ask For Help
Topic: Lable buttons via Ini File
Replies: 53
Views: 5637

Re: Lable buttons via Ini File

yes amazing! Thank you!!
by Dyson
26 Jun 2019, 08:29
Forum: Ask For Help
Topic: Lable buttons via Ini File
Replies: 53
Views: 5637

Re: Lable buttons via Ini File

I mean if its even possible?
by Dyson
25 Jun 2019, 18:39
Forum: Ask For Help
Topic: Lable buttons via Ini File
Replies: 53
Views: 5637

Lable buttons via Ini File

hi guys im trying to lable buttons via an ini file, struggling, I have the basic code to write the ini files for the name and the value of it but done quite know how to finish it off, if anyone can help would be much appreciated here is what I have so far: Gui, 6:Show , w1540 h805, Programming Gui, ...
by Dyson
10 Jun 2019, 08:51
Forum: Ask For Help
Topic: ini reads
Replies: 13
Views: 1334

Re: ini reads

if I type the clerk number in and press clock in it executes this: GuiControl,, MyVar, % MyVar := "" msgbox, 262208,Attention ,%ClerkIn% Clocked In.,2 iniwrite Yes, Online.ini, Clocked In:, %ClerkIn% iniwrite In, Hours.ini, %ClerkIn% - %DateIn%, %TimeIn% Clocked AND: GuiControl,, MyVar, % MyVar := "...
by Dyson
10 Jun 2019, 07:39
Forum: Ask For Help
Topic: ini reads
Replies: 13
Views: 1334

Re: ini reads

would it be more benificial for you to see the whole script? Yes, that would be great. Sales: Gui, 1:Destroy Gui, 2:Show , w1540 h805, Sign On gui, 2:add, edit, x1100 y10 w400 h100 vMyVar Gui, 2:Add, Button, gHome x10 y10 w100 h100, Home gui, 2:add, button, gClear x10 y113 w85 h85, C Gui, 2:Add, Bu...
by Dyson
10 Jun 2019, 02:10
Forum: Ask For Help
Topic: ini reads
Replies: 13
Views: 1334

Re: ini reads

Try this: MyVar := 1 ; <<< changed, needed ClockIn: FormatTime, TimeIn,, HH:mm:ss FormatTime, DateIn,, ShortDate iniread, ClerkIn, Clerk.ini, Clerk, %MyVar% IniRead Value, Online.ini, Clocked In:, %ClerkIn% if (Value = "No") { ; <<< changed, syntax GuiControl,, MyVar, % MyVar := "" msgbox, 262208,A...
by Dyson
09 Jun 2019, 21:56
Forum: Ask For Help
Topic: ini reads
Replies: 13
Views: 1334

Re: ini reads

Try this: MyVar := 1 ; <<< needed ClockIn: FormatTime, TimeIn,, HH:mm:ss FormatTime, DateIn,, ShortDate iniread, ClerkIn, Clerk.ini, Clerk, %MyVar% IniRead Value, Online.ini, Clocked In:, %ClerkIn% ; <<< changed if Value = No ; <<< changed MsgBox, %Value% Else msgbox false return I hope that helps....
by Dyson
09 Jun 2019, 21:16
Forum: Ask For Help
Topic: ini reads
Replies: 13
Views: 1334

Re: ini reads

ClockIn: FormatTime, TimeIn,, HH:mm:ss FormatTime, DateIn,, ShortDate iniread, ClerkIn, Clerk.ini, Clerk, %MyVar% IniRead Value, Online.ini, Clocked In:, ClerkIn if %Value% = No MsgBox, %Value% Else msgbox false return it keeps returning False, Maybe I have the syntax wrong on the if line? here is ...
by Dyson
09 Jun 2019, 20:33
Forum: Ask For Help
Topic: ini reads
Replies: 13
Views: 1334

Re: ini reads

Here try to follow this example Online.ini [Settings] IsActive=1 q:: if IniRead("Online.ini", "Settings", "IsActive") MsgBox, True else MsgBox, False return ; Function IniRead(File, Section, key) { IniRead, var, % File, % Section, % key return, var } So this gets me to the right path, but I don't q...
by Dyson
09 Jun 2019, 10:09
Forum: Ask For Help
Topic: time stamping Topic is solved
Replies: 2
Views: 371

Re: time stamping Topic is solved

The sleep part of the code is only because im trying to figure out how to close the message box without having to click ok msgbox-creator from user 'Thalon' : https://www.autohotkey.com/boards/viewtopic.php?t=6928 just short an example show msgbox for 2 seconds ;https://www.autohotkey.com/boards/vi...

Go to advanced search