Necromorph Posted March 10, 2011 Share Posted March 10, 2011 basically, here i need a way to get the current directory that is ACTIVE, i want to create a function/service/shortcut that is similar to the "CTRL+SHIFT+N" that exists in window 7 that makes a new folder, i want to make a new text document, when you "CTRL+SHIFT+T" i cannot get the @WorkingDir to work. any help would be appreciated. Link to comment Share on other sites More sharing options...
MvGulik Posted March 11, 2011 Share Posted March 11, 2011 (edited) http://www.autoitscript.com/autoit3/docs/macros.htmi cannot get the @WorkingDir to work. any help would be appreciated.? ... Just use it as you would use a variable. (more information -> more help.) Edited March 11, 2011 by iEvKI3gv9Wrkd41u "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... Link to comment Share on other sites More sharing options...
Necromorph Posted March 11, 2011 Author Share Posted March 11, 2011 (edited) well, im not sure the best way to do this, as a service or a shortcut, but for testing, i just need to make it work first, so i tired this #include<File.au3> HotKeySet("^+t", "_NewTextFile") Func _NewTextFile() _FileCreate(@WorkingDir & "\New Text File.txt") EndFunc While 1 Sleep(100) WEnd and i tried putting a msgbox in the "while" statement, but the while statement stays @ScriptDir, im sure im just misusing the @WorkingDir but, as i said, any help would be appreciated. Edited March 11, 2011 by redLabel Link to comment Share on other sites More sharing options...
MvGulik Posted March 11, 2011 Share Posted March 11, 2011 (edited) Every application keeps/has its own separate active working folder.And in general that working folder, when the application is started, is the location where the application executable exists. -> @ScriptDirSo until you actually change the active working folder, with FileChangeDir() for example, the @WorkingDir will be the same as @ScriptDir. Edited March 11, 2011 by iEvKI3gv9Wrkd41u "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted March 11, 2011 Share Posted March 11, 2011 I think Label wants the "current folder" from a explorer window. There has been examples on that, but I don't have one in front of me, so good luck searching! .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
KaFu Posted March 11, 2011 Share Posted March 11, 2011 Here's an example of how to obtain the OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-13) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
rafu5418 Posted May 16, 2011 Share Posted May 16, 2011 Here's an example of how to obtain the is there any short way? Link to comment Share on other sites More sharing options...
KaFu Posted May 16, 2011 Share Posted May 16, 2011 is there any short way? , that's a spoon-feed function, just copy&paste. What do you want more? OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-13) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Valik Posted May 16, 2011 Share Posted May 16, 2011 Thread locked to keep this moron from dragging this out. Do not help him any further on this subject. Link to comment Share on other sites More sharing options...
Recommended Posts