DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: Copy and paste into new tab in NoteTab Light  (Read 6,020 times)

redstarnyc

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 33
IDEA: Copy and paste into new tab in NoteTab Light
« on: January 29, 2009, 01:44 AM »
This should be easy but I can never seem to get it to work.  I want to be able to highlight text on a web page, copy it and automatically copy it to a new tab in Notetab light.  I've taken a stab at it but I'm new to Autohotkey and can't get it to work.

This is what I tried:

;automatically send selected text to notetab in new tab
^#c::
SendInput, ^c
run c:\program files\notetab light\notetab.exe
winactivate, NoteTab Light
sendinput, ^n
sendinput, ^v
return

Can anyone help me with this script?  I know its simple, but I can't get it to work consistently.

Thanks
RedstarNYC

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: IDEA: Copy and paste into new tab in NoteTab Light
« Reply #1 on: January 29, 2009, 02:22 AM »
i don't have notetab to test but the following should work.

Code
#SingleInstance force
SendMode, Input
SetTitleMatchMode 2	; partial title match 
DetectHiddenWindows On

^#c::
SendInput, ^c
Run c:\program files\notetab light\notetab.exe
WinWaitActive, NoteTab Light
SendInput, ^n
SendInput, ^v
Return

redstarnyc

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 33
Re: IDEA: Copy and paste into new tab in NoteTab Light
« Reply #2 on: January 29, 2009, 02:25 AM »
Thank you, Thank you, Thank you!

This is why I love this site.  I can't tell you how much this helps me and how frustrated I was.
RedstarNYC
« Last Edit: January 29, 2009, 02:28 AM by redstarnyc »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: IDEA: Copy and paste into new tab in NoteTab Light
« Reply #3 on: January 29, 2009, 02:45 AM »
you're welcome.. i think the missing link was the "SetTitleMatchMode" command.

Original address: https://www.donationcoder.com/forum/index.php?topic=16798.0