topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday December 12, 2024, 4:42 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

redstarnyc

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 33
    • View Profile
    • Read more about this member.
    • Donate to Member
IDEA: Copy and paste into new tab in NoteTab Light
« on: January 28, 2009, 07:44 PM »
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
    • View Profile
    • Donate to Member
Re: IDEA: Copy and paste into new tab in NoteTab Light
« Reply #1 on: January 28, 2009, 08:22 PM »
i don't have notetab to test but the following should work.

#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
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Copy and paste into new tab in NoteTab Light
« Reply #2 on: January 28, 2009, 08:25 PM »
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 28, 2009, 08:28 PM by redstarnyc »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: IDEA: Copy and paste into new tab in NoteTab Light
« Reply #3 on: January 28, 2009, 08:45 PM »
you're welcome.. i think the missing link was the "SetTitleMatchMode" command.