Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; show pc user full name
- #SingleInstance, Force
- f2::
- checkcount=0
- loop{
- checkcount++
- IniRead, usercheck, C:\Users\UserName\Desktop\ahk_stuff\ini_files\users.ini, approvedusers, user%checkcount%
- IniRead, usercheck1, C:\Users\UserName\Desktop\ahk_stuff\ini_files\users.ini, fullName, user%checkcount%
- ;MsgBox, %usercheck%
- ;MsgBox, %usercheck1%
- If usercheck =
- {
- Msgbox, User Not Approved
- Return
- }
- If a_username contains %usercheck%
- {
- break
- }
- }
- Gui, Destroy
- Gui, Add, Text, x22 y19 w100 h20 , Color
- Gui, Add, Text, x22 y79 w220 h150 , IG - danrim. Welcome approved user.`nHope you having a good day`n`n%usercheck1%
- Gui, Sho
- ; ini file must be created
- /*
- [approvedusers]
- user1=jack
- user2=joe
- [fullName]
- user1=Jack Jacksman
- user2=Joe Johnson
- */
Advertisement
Add Comment
Please, Sign In to add comment