naru Posted March 18, 2019 Share Posted March 18, 2019 (edited) How to generate Random key using autoit ? Create new txt file and Copy the generated key into txt file. The key includes with some capital letters and numbers. The generated key should not be generate again. Edited March 18, 2019 by naru Link to comment Share on other sites More sharing options...
water Posted March 18, 2019 Share Posted March 18, 2019 _WinAPI_CreateGUID Creates a globally unique identifier (GUID). My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
naru Posted March 18, 2019 Author Share Posted March 18, 2019 26 minutes ago, water said: _WinAPI_CreateGUID Creates a globally unique identifier (GUID). My english is not well, i am trying to this understand but cant understand how to use it ? Link to comment Share on other sites More sharing options...
water Posted March 18, 2019 Share Posted March 18, 2019 Did you try to run the example script provided with the link I posted above? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
naru Posted March 18, 2019 Author Share Posted March 18, 2019 Just now, water said: Did you try to run the example script provided with the link I posted above? Yes, Nothing happens when run it Link to comment Share on other sites More sharing options...
Developers Jos Posted March 18, 2019 Developers Share Posted March 18, 2019 (edited) 8 minutes ago, naru said: Yes, Nothing happens when run it A total meaningless statement! You really need to start kicking your brains in gear and think for yourself as I only see posts telling us that it doesn;t work and you don't understand. It feels pretty much like you are too lazy to do it yourself and expect other to do the coding for you. So please don't bother posting questions here when you aren't prepared to do anything yourself first. Jos Edited March 18, 2019 by Jos FrancescoDiMuro 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
naru Posted March 18, 2019 Author Share Posted March 18, 2019 1 minute ago, Jos said: A total meaningless statement! You really need to start kicking your brains in gear and think for yourself as I only see posts telling us that it doesn;t work and you don't understand. It feels pretty much like you are too lazy to do it yourself and expect other to do the coding for you. So please don't bother posting questions here when you aren't prepared to do anything yourself first. Jos @Jos i am trying this now, but how can i generate it i don't know Link to comment Share on other sites More sharing options...
Developers Jos Posted March 18, 2019 Developers Share Posted March 18, 2019 Still no information what you have done and what isn't working... I really can't be that hard ...can it? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
naru Posted March 18, 2019 Author Share Posted March 18, 2019 (edited) 1 minute ago, Jos said: Still no information what you have done and what isn't working... I really can't be that hard ...can it? Jos @Jos it is very hard for me, can you give me a little example with msgbox? Edited March 18, 2019 by naru need example Link to comment Share on other sites More sharing options...
water Posted March 18, 2019 Share Posted March 18, 2019 That's not so hard, so you should try it yourself Replace the ConsoleWrite function with MsgBox. BTW: The help file is your friend My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Developers Jos Posted March 18, 2019 Developers Share Posted March 18, 2019 32 minutes ago, naru said: @Jos it is very hard for me, can you give me a little example with msgbox? I hear an echo ... Though I was pretty clear. Provide proper information and show what you have tried, else don't bother asking questions. Jos FrancescoDiMuro 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
naru Posted March 18, 2019 Author Share Posted March 18, 2019 6 minutes ago, water said: That's not so hard, so you should try it yourself Replace the ConsoleWrite function with MsgBox. BTW: The help file is your friend It was generate the long key, I want generate 8 to 12 digit key. Link to comment Share on other sites More sharing options...
Developers Jos Posted March 18, 2019 Developers Share Posted March 18, 2019 Just now, naru said: It was generate the long key, I want generate 8 to 12 digit key. Not good enough! SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
water Posted March 18, 2019 Share Posted March 18, 2019 It would be great if you could provide more information: What have you tried so far? Please post your code. What do you need it for? Are you limited in length to 8 to 12 characters? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
naru Posted March 18, 2019 Author Share Posted March 18, 2019 1 minute ago, water said: It would be great if you could provide more information: What have you tried so far? Please post your code. What do you need it for? Are you limited in length to 8 to 12 characters? i am trying with this code : #include <WinAPICom.au3> MsgBox(0,"Key", _WinAPI_CreateGUID() & @CRLF) I am very poor and i want to sell my code. (I look about xprotec before but i don't understand it) i am generate key using autoit and then regwrite this key into their computer. I don't need more than 8 or 12 characters. Link to comment Share on other sites More sharing options...
Bilgus Posted March 18, 2019 Share Posted March 18, 2019 GUID's are not guaranteed to be COMPLETELY unique but would work pretty well Btw I get wanting to protect your work as a first time scripter but maybe bone up on your coding game and make something someone would actually want to steal first Link to comment Share on other sites More sharing options...
Developers Jos Posted March 18, 2019 Developers Share Posted March 18, 2019 1 minute ago, naru said: i am generate key using autoit and then regwrite this key into their computer. I don't need more than 8 or 12 characters. Yea, so? this is the standard length for a unique GUI code so when that doesn't fit your needs you need to make something else that does fit your needs. ... and just to be absolutely clear: your "Yes, Nothing happens when run it " was total bullshit since now suddenly you do get a code. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
naru Posted March 18, 2019 Author Share Posted March 18, 2019 @Bilgus, @Jos, My english is not well, so i can't understand you as well. How to do i next ? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 18, 2019 Moderators Share Posted March 18, 2019 Hi all, naru is no longer with us - so thread locked. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts