@Naeksu you're using an assignment operator := in a conditional statement and trying to evaluate incorrectly.
Change: if toggle := !toggle to if ( !toggle ) or if ( toggle = 0 )
Search found 1460 matches
- 04 Feb 2022, 21:00
- Forum: Ask for Help (v1)
- Topic: Can't figure out what I'm doing wrong
- Replies: 3
- Views: 426
- 07 Jan 2022, 22:42
- Forum: Off-topic Discussion
- Topic: « What's on your mind? » Topic is solved
- Replies: 4900
- Views: 1415808
- 07 Jan 2022, 16:18
- Forum: Off-topic Discussion
- Topic: « What's on your mind? » Topic is solved
- Replies: 4900
- Views: 1415808
- 07 Jan 2022, 14:32
- Forum: Ask for Help (v1)
- Topic: [Solved] Why does my Modulo fail ?
- Replies: 4
- Views: 543
Re: Why does my Modulo fail ?
Ah I figured it out. Had to floor divide the dividend by the divisor ( dd := A_Index-1 )-( dd//dr*dr )+1
Thanks for responses tho guys
edit: @teadrinker must have got it while you were posting ty
Thanks for responses tho guys
edit: @teadrinker must have got it while you were posting ty
- 07 Jan 2022, 13:51
- Forum: Ask for Help (v1)
- Topic: [Solved] Why does my Modulo fail ?
- Replies: 4
- Views: 543
[Solved] Why does my Modulo fail ?
Anyone know why my Modulo formula isn't working
Result should be:
1 <> 1
2 <> 2
3 <> 3
4 <> 4
5 <> 5
6 <> 6
1 <> 1
2 <> 2
3 <> 3
4 <> 4
5 <> 5
6 <> 6
Code: Select all
Loop % ( dr := 6 ) * 2
res .= Mod( A_Index-1, dr )+1 " <> " ( dd := A_Index-1 )-( dd/dr*dr )+1 "`n"
msgbox % res
1 <> 1
2 <> 2
3 <> 3
4 <> 4
5 <> 5
6 <> 6
1 <> 1
2 <> 2
3 <> 3
4 <> 4
5 <> 5
6 <> 6
- 06 Jan 2022, 18:00
- Forum: Ask for Help (v1)
- Topic: Hello i want to read my email and passw from .txt
- Replies: 32
- Views: 3157
Re: Hello i want to read my email and passw from .txt
Sorry I forgot to add return:
Code: Select all
CredArr_Email := "email@abc.com"
CredArr_Password := "123456"
TrayTip,, % "Email: " CredArr_Email "`nPassword: " CredArr_Password, 2, 0x10
return
Esc::ExitApp ; <-- press escape to exit
- 06 Jan 2022, 17:31
- Forum: Ask for Help (v1)
- Topic: How can I insert regular time? Topic is solved
- Replies: 6
- Views: 889
Re: How can I insert regular time? Topic is solved
Here's a trick to get your abbreviated standard name: For Item in ComObjGet( "winmgmts:\\.\root\CIMV2" ).ExecQuery( "Select * from Win32_TimeZone" ) StandardName := Item.StandardName For Each, Word in ( StrSplit( StandardName, " " ), StandardAbrvName := "" ) StandardAbrvName .= SubStr( Word, 1, 1 ) ...
- 06 Jan 2022, 17:26
- Forum: Ask for Help (v1)
- Topic: Hello i want to read my email and passw from .txt
- Replies: 32
- Views: 3157
Re: Hello i want to read my email and passw from .txt
Blastoise465 let's take a step back. Please try running just this from a fresh script: CredArr_Email := "email@abc.com" CredArr_Password := "123456" TrayTip,, % "Email: " CredArr_Email "`nPassword: " CredArr_Password, 2, 0x10 Do you still not see a TrayTip pop up with the email and password values?
- 06 Jan 2022, 15:57
- Forum: Ask for Help (v1)
- Topic: Hello i want to read my email and passw from .txt
- Replies: 32
- Views: 3157
Re: Hello i want to read my email and passw from .txt
Email1@Email.com:Passw1 Email2@Email.com:Passw2 Email3@Email.com:Passw3 ...... And you're still trying to display only the 1st pair correct? I just noticed that you are using FileReadLine . In this case you don't even need to loop through each line value as there's only 1 line: FileReadLine, Email,...
- 06 Jan 2022, 15:39
- Forum: Ask for Help (v1)
- Topic: Hello i want to read my email and passw from .txt
- Replies: 32
- Views: 3157
Re: Hello i want to read my email and passw from .txt
Blastoise465 unlike MsgBox , TrayTip won't stop for your confirmation to continue. First off, this means that if you're reading more than one line of email:password pairs, the loop will proceed so fast that TrayTip will seem to only display the last set of values. Conversely, if the last line of va...
- 05 Jan 2022, 16:33
- Forum: Ask for Help (v1)
- Topic: Updating Variables With Control Things Topic is solved
- Replies: 2
- Views: 486
Re: Updating Variables With Control Things Topic is solved
Jeeez this script needs a seizure warning :crazy: :wtf: :lol: Try this: TextColorArr := [ "FF0000", "0000FF", "00FF00" ] GuiColorArr := [ "Orange", "Yellow", "Green", "Blue", "Purple" ] GuiColorCnt := TextColorCnt := 0 `:: if toggle := !toggle { SetTimer, Loop1, 12 goto timey } else SetTimer, Loop1,...
- 03 Jan 2022, 13:41
- Forum: Ask for Help (v1)
- Topic: Hello i want to read my email and passw from .txt
- Replies: 32
- Views: 3157
Re: Hello i want to read my email and passwfrom .txt
Awesome thank you so much so if i want to only read first row what would i change You can swap FileRead with FileReadLine : FileReadLine, Email, EmailPass.txt, 1 Cred := StrSplit( Email, [ ":", " " ] ) Msgbox % "1st Email: " Cred.1 "`n1st Password: " Cred.2 return Or use a fixed Array key instead o...
- 03 Jan 2022, 01:35
- Forum: Ask for Help (v1)
- Topic: Hello i want to read my email and passw from .txt
- Replies: 32
- Views: 3157
Re: Hello i want to read my email and passwfrom .txt
You can parse the email & password combinations all in one loop like this: fileread, Email, EmailPass.txt CredArr := { Email : [], Password : [] } ; <-- Credential array to store the emails & passwords For i, Row in StrSplit( Email, "`n", "`r" ) { Cred := StrSplit( Row, [ ":", " " ] ) CredArr.Email....
- 01 Jan 2022, 15:41
- Forum: Off-topic Discussion
- Topic: « What's on your mind? » Topic is solved
- Replies: 4900
- Views: 1415808
- 26 Dec 2021, 17:09
- Forum: Ask for Help (v1)
- Topic: CapsLock and ControlSend Topic is solved
- Replies: 3
- Views: 672
Re: CapsLock and ControlSend Topic is solved
would have to add some command so that if the capslock is turned on, not turn it off while running "ControlSend". ??? Try adding SetStoreCapsLockMode, Off before the ControlSend command. The only downside is your what ever you're sending to the control will now be affected by Capslock. In this case...
- 22 Dec 2021, 22:27
- Forum: Ask for Help (v1)
- Topic: How to count the files in a zip and judge that only one fold or a file or some files in it?
- Replies: 2
- Views: 549
Re: How to count the files in a zip and judge that only one fold or a file or some files in it?
1, I want to count the files in a zip, and judge that only one fold or a file or some files in it. The Namespace() Method has the Items property. Using it, you can loop through the compressed files and find out info on their contents. For instance: TempDir = D:\12 oShell := ComObjCreate("shell.appl...
- 15 Dec 2021, 21:34
- Forum: Ask for Help (v1)
- Topic: Run code once timer reaches X seconds.
- Replies: 4
- Views: 552
Re: Run code once timer reaches X seconds.
Please post some code you've tried and be very specific about what you're trying to do.
- 15 Dec 2021, 10:48
- Forum: Ask for Help (v1)
- Topic: In the menu handler, how do I get the ID of the Menu item
- Replies: 2
- Views: 797
Re: In the menu handler, how do I get the ID of the Menu item
If by "menu ID" you mean the menu handle, try this: GivePar(a, b, ItemName, ItemPos, MenuName) { MenuID := DllCall( "GetMenuItemID", "ptr", MenuGetHandle( "MyMenu" ), "int", ItemPos-1 ) MsgBox % "a:`t`t" a "`n" . "b:`t`t" b "`n" . "ItemName:`t" ItemName "`n" . "ItemPos:`t`t" ItemPos "`n" . "MenuName...
- 21 Feb 2021, 16:32
- Forum: Ask for Help (v1)
- Topic: Get multiple fields at end of line
- Replies: 6
- Views: 648
Re: Get multiple fields at end of line
...I would like to populate l4 with "everything after l3" as that part can be a free form string with many spaces in it. How could I do this? Based off of your specific question and to keep it simple, you could use a conditional statement like this: l1 := arrx.1 ; you don't need the %'s here l2 := ...
- 22 Nov 2020, 12:19
- Forum: Off-topic Discussion
- Topic: « What's on your mind? » Topic is solved
- Replies: 4900
- Views: 1415808
Re: « What's on your mind? » Topic is solved
omg omg omg O M F G omg omg omg