ImageName$ = InputBox("Provide filename") 'Enter filename for the imageįilePath$ = App.Path + "\" 'Save the image to the current App.Path root Picture1.Picture = Clipboard.GetData 'Grab image from the clipboard 'since we only want to drop a file that has an appropriate filename. 'The inputbox is required to enter a filename for this image. 'Placeholder: a button so i can control when the file is grabbed from My form (updated 27, January 2020): Option Explicit The hotkey is working 'Asynchronous' without my app having the focus ( as intended ) but now i'm stuck at actually dropping this file when the hotkey is pressed. But now i want to grab this image and drop it at mousepos when the hotkey is pressed. I've written code to grab an image from the clipboard and save it. (this is primarily meant for pasting into wordpress, and doesn't have a plugin available to do this) This way i can paste an image i just 'snipped' and paste it as if it were a file with the appropriate filename. With 'Drop' i mean the same type of functionality as if you were to click and hold an image, then drop it at another location when the hotkey is pressed. ![]() I'm trying to 'Drop' an image file at the current mouse location, FileType PNG (always).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |