How to Automate Tally Drive Login Using TDL | TallyPrime Automation
TallyPrime में Tally Drive का उपयोग Company Data Backup और Data Management के लिए किया जाता है। लेकिन हर बार Tally Drive में Login करने के लिए Username और Password manually enter करना पड़ सकता है।
अगर आप Tally Developer हैं और इस login process को automate करना चाहते हैं, तो TDL (Tally Definition Language) की मदद से यह काम आसानी से किया जा सकता है।
इस article में हम एक ऐसा TDL Code समझेंगे, जिसकी मदद से Gateway of Tally पर Tally Drive Login नाम का एक नया button add किया जाता है। इस button को press करते ही Tally Drive Login की प्रक्रिया automatically शुरू हो जाती है।
1. Features of Tally Drive Login TDL
- Gateway of Tally पर Tally Drive Login button add करना।
- Button के लिए Ctrl+6 shortcut key निर्धारित करना।
- Button click करने पर predefined TDL Function execute करना।
- Tally Drive Login screen पर keyboard shortcuts automatically trigger करना।
- Email ID और Password automatically enter करना।
2. Complete TDL Code
नीचे Tally Drive Login Automation का पूरा TDL Code दिया गया है:
[#Menu:Gatewayoftally]
Add:Button:logintallydrive
[Button:logintallydrive]
Key:Ctrl+6
Title:"Tally Drive Login"
Action:Call:LogIntoTallyDrive
[Function:LogIntoTallyDrive]
;0500:Call:CBManageTallyDrive:Yes
;1000:If:$$ContextKeyword="LogIntoTallyDrive"
;2000:Log:"yes"
;2000:Trigger Key:"Gargdistributors"
0001:Trigger Key:Alt+Y, Enter, M
3000:Trigger Key:"Gargdistributors007@yahoo.com"
5000:Trigger Key:Enter
6000:Trigger Key:"Company@1"
;7000:Trigger Key:Enter
;3000:End If
3. Code Explanation
अब इस TDL Code को एक-एक करके समझते हैं।
Step 1: Add Button in Gateway of Tally
[#Menu:Gatewayoftally]
Add:Button:logintallydrive
इस code की मदद से Gateway of Tally menu में एक नया button add किया गया है।
- [#Menu:Gatewayoftally] – Gateway of Tally menu को modify करता है।
- Add:Button:logintallydrive – इस menu में नया button add करता है।
Step 2: Create Button Definition
[Button:logintallydrive]
Key:Ctrl+6
Title:"Tally Drive Login"
Action:Call:LogIntoTallyDrive
यहाँ हमने button की properties define की हैं।
Key:Ctrl+6
इससे button के लिए Ctrl+6 keyboard shortcut निर्धारित किया गया है।
Title:"Tally Drive Login"
यह button पर दिखाई देने वाला नाम है।
Action:Call:LogIntoTallyDrive
जब user इस button को click करेगा या निर्धारित shortcut इस्तेमाल करेगा, तो LogIntoTallyDrive function execute होगा।
Step 3: Create Function
[Function:LogIntoTallyDrive]
इस statement से LogIntoTallyDrive नाम का function define किया गया है। इस function के अंदर हम keyboard automation के लिए Trigger Key action का इस्तेमाल कर रहे हैं।
Step 4: Trigger Keyboard Shortcut
0001:Trigger Key:Alt+Y, Enter, M
यह इस TDL का महत्वपूर्ण हिस्सा है। इस command के माध्यम से Tally में keyboard keys को automatically trigger किया जाता है।
यहाँ निम्नलिखित keys trigger होती हैं:
- Alt+Y
- Enter
- M
इनका उपयोग Tally Drive Login तक पहुँचने के लिए किया गया है। यह sequence TallyPrime version और वर्तमान screen के अनुसार काम करेगा।
Step 5: Automatically Enter Email ID
3000:Trigger Key:"Gargdistributors007@yahoo.com"
इस command से निर्धारित Email ID automatically type होती है। आप अपनी Email ID के अनुसार इसे बदल सकते हैं।
Step 6: Press Enter
5000:Trigger Key:Enter
यह command Enter key trigger करती है, जिससे login process अगले चरण पर पहुँचती है।
Step 7: Automatically Enter Password
6000:Trigger Key:"Company@1"
इस command से Password automatically enter किया जाता है। आपको "Company@1" की जगह अपना Tally Drive Password देना होगा।
4. How to Customize This TDL?
अगर आप इस TDL को किसी दूसरी company या user के लिए customize करना चाहते हैं, तो Email ID और Password बदल सकते हैं।
3000:Trigger Key:"your-email@example.com"
5000:Trigger Key:Enter
6000:Trigger Key:"YourPassword"
बाकी code को बदलने की जरूरत नहीं है, बशर्ते आपके TallyPrime में login navigation का keyboard sequence समान हो।
5. How to Use This TDL?
इस TDL को इस्तेमाल करने के लिए नीचे दिए गए steps follow करें:
- ऊपर दिया गया TDL Code copy करें।
- इसे Notepad में paste करें।
- File को .tdl extension के साथ save करें।
- TallyPrime में TDL Configuration के माध्यम से इस file को load करें।
- Gateway of Tally पर जाएँ।
- Tally Drive Login button पर click करें या Ctrl+6 press करें।
- Login automation शुरू हो जाएगी।
6. Important Security Note
इस उदाहरण में Email ID और Password TDL Code के अंदर लिखे गए हैं। इसलिए इस code को public रूप से share करना सुरक्षित नहीं है।
- अपना Password किसी दूसरे व्यक्ति के साथ share न करें।
- Public TDL file में personal credentials hardcode न करें।
- जरूरत पड़ने पर credentials को सुरक्षित configuration या user input के माध्यम से manage करें।
- Login automation को अपने authorized Tally Drive account पर ही इस्तेमाल करें।
Conclusion
इस TDL Code की मदद से TallyPrime में Tally Drive Login की प्रक्रिया को automate किया जा सकता है। इससे बार-बार manually Email ID और Password enter करने की जरूरत कम हो सकती है।
TDL Developers इस तरह के keyboard automation का उपयोग करके TallyPrime में repetitive tasks को आसान बना सकते हैं।
Happy TDL Coding!