|01-09-2014, 03:23 PM||#1|
Join Date: Feb 2006
WC3 map loader for advanced customized WE settings
type of loader: vbscript__________________
required OS: windows
hint: copy code only from this post as vbscripts are very powerful & quickly can harm your system if this is the intention of the author!
1 vbscript (*.vbs file) runs 1 map with desired editor settings automatically. You can setup every editor setting which you can reach through shortcuts. This script sends the keys: "g" 3 times, "l" & "p" 1 time. "g" sets small grid size, "l" disables light & "p" enables path.
the road so far...:
I could no longer stand the missing feature of saved customized editor settings like desired grid size, light, path or grid size or grid size! So I searched through all the MPQs in every UI file. I wasnt able to find any key responsible for grid size, even after like 8 hours of exploration! After that time consuming task I gave up & dropped into another unbelievable task of time consumption. As Im on windows I tried to use a batch file to load my map & send the key strokes automatically. After some hours I realised that BAT files cannot send keys without 3rd party tools. So I tried on VBS files. A few couples of hours later - the war between wscript & cscript was decided - I finally made some useful progress.
Before running the VBS file, at least you have to adjust the absolute path to your desired map file! The appropriate line which has to be rewritten is marked in red in the code at the bottom. Another not minor important thing which has to be taken into account is the delay after which the keys are sent. I customized it for my own loading time for warcraft 3 map editor. If your editor gets loaded faster than mine theres no problem (although I think it will take longer as I have a SSD ). So if your editor takes longer to load, you have to increase the delay a bit. The simplest way of doing so, is increasing the orange colorized number in the code at the bottom. Note that the number's format is in milliseconds. To increase the delay by 1 second, you have to increase the number by 1000. And one last note: While the script is active, especially when the keys are sent, you have to keep your mouse pointer within the WE GUI (=Graphical User Interface)!
instructions for copying & using the above code:
As the final vbscript is still a text file you can just copy & paste the code into an empty TXT file & rename the extension from TXT to VBS & save. After that, perform the changes I talked about under 'Important instructions'. You can name the file however you want as long as it has the VBS extension. Simply run the file by double clicking it.
Last edited by MasterofSickness : 01-10-2014 at 05:30 AM.
|Sponsored Links - Login to hide this ad!|
|Thread Tools||Search this Thread|