Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drag and drop trigger (not of files)
#2
This is what I have been playing with so far. I set the the trigger to left mouse click (uncheck the "when release" check box)
 
Code:
Copy      Help
int  hwnd=id(15 "Notepad")
str s
s.getsel

rep
   ifk-((1))
      if ifa(hwnd)
         key {s} 
      ret


Two problems with this code: 1) it must have notepad the active window as apposed to the window under the mouse position at drop. 2) it spits out the letter "s" as apposed to the selected text on drag action.

Any suggestions are welcome
Cuitino


Messages In This Thread
Drag and drop trigger (not of files) - by cuitino - 10-02-2019, 05:18 PM
RE: Drag and drop trigger (not of files) - by cuitino - 10-04-2019, 01:29 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)