diff --git a/src/main/java/com/melloware/jintellitype/JIntellitype.java b/src/main/java/com/melloware/jintellitype/JIntellitype.java index 06b0cf3..87d7068 100644 --- a/src/main/java/com/melloware/jintellitype/JIntellitype.java +++ b/src/main/java/com/melloware/jintellitype/JIntellitype.java @@ -383,6 +383,17 @@ public final class JIntellitype implements JIntellitypeConstants { } } + /** + * Sets the libraryLocation of the DLL using a File object. + *

+ * @param libraryFile the java.io.File representing the DLL + */ + public static void setLibraryLocation(File libraryFile) { + if (!libraryFile.isAbsolute()) { + JIntellitype.libraryLocation = libraryFile.getAbsolutePath(); + } + } + /** * Notifies all listeners that Hotkey was pressed. *