Search found 858 matches
- 01 Nov 2023, 16:48
- Forum: Ask for Help (v1)
- Topic: Incrementing Topic is solved
- Replies: 11
- Views: 901
Re: Incrementing Topic is solved
It's this code that is always putting the 1 and not incrementing. IF Number = ; if this number does not exist IniWrite, 1, %A_ScriptDir%\Data.ini, accounts ; initialize accounts Else ; write accounts new supplemented with the increment IniWrite,%accounts% "`n" ++Number, %A_ScriptDir%\Data.ini, accou...
- 01 Nov 2023, 16:08
- Forum: Ask for Help (v1)
- Topic: Incrementing Topic is solved
- Replies: 11
- Views: 901
Re: Incrementing Topic is solved
something like this:
I have the sections working, but can't get the auto increment numbers in the vehicle section up top.
Code: Select all
[vehicles]
1=car
2-Bike
3=Motorcycle
[car]
key=car
[Bike]
key=Bike
[Motorcycle]
key=Motorcycle
- 01 Nov 2023, 15:09
- Forum: Ask for Help (v1)
- Topic: Incrementing Topic is solved
- Replies: 11
- Views: 901
Re: Incrementing Topic is solved
An unusual way of using ini-files, but if you must have it, then: F1:: IniRead, Folders, %A_ScriptDir%\Data.ini, folders ; read folders IniDelete, %A_ScriptDir%\Data.ini, folders ; and delete it RegExMatch(Folders, "\d*$", Number) ; extract the last number IF Number = ; if this number does not exis...
- 01 Nov 2023, 13:31
- Forum: Ask for Help (v1)
- Topic: INI section to top?
- Replies: 1
- Views: 231
INI section to top?
Any idea how to move a section in an ini file to tne top?
- 01 Nov 2023, 01:59
- Forum: Ask for Help (v1)
- Topic: Recalling last number
- Replies: 3
- Views: 367
Re: Recalling last number
maybe something like this? IniRead, MyVar, %A_ScriptDir%\Data.ini, folders, LastNum MyVar := (MyVar=="ERROR") ? 1 : MyVar f1:: MyVar += 1 IniWrite, % MyVar, %A_ScriptDir%\Data.ini, folders, LastNum return Thank you.... been trying to figure out why it doesn't print out the lines like this: 1 2 3 4 ...
- 31 Oct 2023, 22:43
- Forum: Ask for Help (v1)
- Topic: Recalling last number
- Replies: 3
- Views: 367
Recalling last number
I am putting:
1
2
3
4
5
in my code. Is there a way to make it go to 6 the next time I run the code? Somehow either check the numbers existing, which hae looked into, or storing a value? Thank you!
1
2
3
4
5
in my code. Is there a way to make it go to 6 the next time I run the code? Somehow either check the numbers existing, which hae looked into, or storing a value? Thank you!
Code: Select all
f1::
MyVar += 1
IniWrite, A%MyVar%, %A_ScriptDir%\Data.ini, folders
Return
ESC::ExitApp
- 31 Oct 2023, 20:37
- Forum: Ask for Help (v1)
- Topic: Incrementing Topic is solved
- Replies: 11
- Views: 901
Re: Incrementing Topic is solved
okay, now I have this code, but can't figure out how to make it go backwards in an ini file.... f1:: ++number := 0 number IniWrite, %number%, %A_ScriptDir%\Data.ini, folders Return ESC::ExitApp instead of: 5 4 3 2 1 I could use it as 1 2 3 4 5 I've tried many different ways, but can't figiure it out...
- 31 Oct 2023, 12:19
- Forum: Ask for Help (v1)
- Topic: Incrementing Topic is solved
- Replies: 11
- Views: 901
Re: Incrementing Topic is solved
Code: Select all
f1::IniWrite,% ++number := 0 number, %A_ScriptDir%\Data.ini, folders
ESC::ExitApp
This worked... anyway to reverse the order in the ini? U're awesome, thank you so much.
- 31 Oct 2023, 12:15
- Forum: Ask for Help (v1)
- Topic: Incrementing Topic is solved
- Replies: 11
- Views: 901
Re: Incrementing Topic is solved
Only does 1 and nothing else.. no incrementRohwedder wrote: ↑31 Oct 2023, 12:12Hallo,
try:Code: Select all
number := 0 f1:: number := number + 1 IniWrite, %number%, %A_ScriptDir%\Data.ini, folders ESC::ExitApp
- 31 Oct 2023, 12:09
- Forum: Ask for Help (v1)
- Topic: Incrementing Topic is solved
- Replies: 11
- Views: 901
Incrementing Topic is solved
I have this code but it only goes to 2 and no higher. What is wrong here? f1:: number := 1 number := number + 1 IniWrite, %number%, %A_ScriptDir%\Data.ini, folders ESC::ExitApp I need it to write 1 on line one of Data.ini and then 2 on line 2 and 3 on line 3 and so on. Thanks for any help I've also ...
- 24 Aug 2023, 13:35
- Forum: Ask for Help (v1)
- Topic: Still INI issue
- Replies: 14
- Views: 651
Re: Still INI issue
If you are seeing a message or error, post a screenshot. it won't let me screenshot, as soon as I push any buttons, it goes away. It's basically a tooltip and it does show username and email and it does paste, but gives ERROR when trying to paste the password. I've tried my own screenshot and windo...
- 24 Aug 2023, 13:26
- Forum: Ask for Help (v1)
- Topic: Still INI issue
- Replies: 14
- Views: 651
Re: Still INI issue
If you are seeing a message or error, post a screenshot. it won't let me screenshot, as soon as I push any buttons, it goes away. It's basically a tooltip and it does show username and email and it does paste, but gives ERROR when trying to paste the password. I've tried my own screenshot and windo...
- 24 Aug 2023, 08:40
- Forum: Ask for Help (v1)
- Topic: Still INI issue
- Replies: 14
- Views: 651
Re: Still INI issue
You have indicated neither what the script does, nor what it should do, so I will be forced to guess for both. You have referred to a variable called section . Is it defined? It is a password manager. Should be able to click on appropriate section and have it have the username, email, and "hidden" ...
- 24 Aug 2023, 07:42
- Forum: Ask for Help (v1)
- Topic: Still INI issue
- Replies: 14
- Views: 651
Re: Still INI issue
Global ini := A_ScriptDir "\passwords.ini" IniRead website, % ini Gui Font, s10 Gui, +AlwaysOnTop Sort website, CL A| Gui Add, DDL , w400 Choose1 vsection, % StrReplace(website, "`n", "|" ) Gui Add, Button, wp vwebopen Default, Open gui, font, bold gui, add, edit, center vwebadd w400 hwndadd1 disab...
- 24 Aug 2023, 07:03
- Forum: Ask for Help (v1)
- Topic: Still INI issue
- Replies: 14
- Views: 651
Re: Still INI issue
well it all works and pastes but it runs them altogether and password says ERROR. up all night trying to figure out, and sure so simple.
- 24 Aug 2023, 01:55
- Forum: Ask for Help (v1)
- Topic: Still INI issue
- Replies: 14
- Views: 651
Re: Still INI issue
YAY, I have that part fixed.... now to work on the password and username thing... where they email, uername, and password show but the password just says password and not shows the actual password. Thank you. You had helped me with this at one time, but shows only the first one Global ini := A_Scrip...
- 24 Aug 2023, 01:29
- Forum: Ask for Help (v1)
- Topic: Still INI issue
- Replies: 14
- Views: 651
Re: Still INI issue
msgbox says section := Websitemikeyww wrote: ↑24 Aug 2023, 01:18Explained: viewtopic.php?p=528301#p528301
When you investigated the value of section in your script, what did you find?
When I click a link it just shows error/ when trying to open Chrome Page
The dropdown works fine.
- 24 Aug 2023, 01:16
- Forum: Ask for Help (v1)
- Topic: Still INI issue
- Replies: 14
- Views: 651
Re: Still INI issue
There is no need to assume what a value is. You can use your script to identify the value for you. Show it, or investigate it. #Requires AutoHotkey v1.1.33 ;OPTIMIZATIONS START #NoEnv #MaxHotkeysPerInterval 99000000 #HotkeyInterval 99000000 #KeyHistory 0 #SingleInstance Force ListLines Off Process,...
- 24 Aug 2023, 01:13
- Forum: Ask for Help (v1)
- Topic: Still INI issue
- Replies: 14
- Views: 651
- 24 Aug 2023, 01:01
- Forum: Ask for Help (v1)
- Topic: Still INI issue
- Replies: 14
- Views: 651
Still INI issue
What is wrong with this? I just don't see it. Global ini := A_ScriptDir "\passwords.ini" Gui Submit IniRead website, % ini, % section, Url Run, Chrome.exe "%website%" INI FILE [yahoo] key=yahoo Url=yahoo.com Username=toes Email=toes Password=toewa [ahk] key=ahk Url=autohotkey.com Username=fjdk;lsa E...