AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ISense 1.5.4
Goto page Previous  1, 2, 3 ... 15, 16, 17, 18  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
JoeSchmoe as guest
Guest





PostPosted: Fri Jul 11, 2008 5:23 am    Post subject: Reply with quote

Hi, J_P, I'm not a big fan of .rar either, but was able to open it without too much trouble using portable 7-zip:
http://portableapps.com/apps/utilities/7-zip_portable

You may have an app of your own, but in case you don't, I thought you might want to know about the program. I'm not a big fan of installing a million programs on my PC. That's why I like portable applications like the above.
http://en.wikipedia.org/wiki/Portable_application
Back to top
haichen



Joined: 05 Feb 2007
Posts: 110
Location: Osnabrück, Germany

PostPosted: Fri Jul 11, 2008 2:31 pm    Post subject: Added Isense to PSPad Reply with quote

You can add your own Vb- Perl- or JS-scripts to the PSPad menu scripts.
The following Vb-script adds an Isense menu to PSPad and starts Isense automatically if a AHK-script is startet with PSPad.

AHK.vbs
Code:
' it will start Script-library
const module_name  = "all my AHKscripts for PSPad"         '
const module_ver   = "11.07.2008"            'version

sub startIsense
Set objShell = CreateObject("WScript.Shell")
 ' change the path
 objShell.CurrentDirectory = "c:\programme\PsPad\AHKforPSPad\Isense"
 objShell.Run "ISense.ahk" 
end sub

Private Function GetFileName()
    On Error Resume Next
    Set editor = newEditor()
    editor.assignActiveEditor
    GetFileName = editor.fileName
End Function

sub RunIsenseIfAHK
  Set editor = NewEditor()
  Set tmpeditor = NewEditor()
  tmpeditor.assignActiveEditor
  tmpFileName = tmpeditor.fileName

  AHKexist = 0
  For i = 0 To editorsCount - 1
    editor.assignEditorByIndex(i)
    editor.activate
   
    Set FS     = CreateObject("Scripting.FileSystemObject")
    Set Shell  = CreateObject("Shell.Application")
    Set File   = FS.GetFile(GetFileName())
    Ext   = FS.GetExtensionName(file)
    if ext = "ahk" and AHKexist = 0 then
      AHKexist = 1
      startisense
      editor.assignEditorByName(tmpFileName)
      editor.activate
      Exit for
    End If
  next
end sub


' name "Init" is required, its called automatically during initialization to create menu items
sub Init
' comment RunIsenseIfAHK if you dont want autostart of Isense
  RunIsenseIfAHK
  addMenuItem "start Isense","Autohotkey", "startIsense"
' add more AHK menuitems
end sub

Of course you must change the path to Isense.
Then you've to put the script in \PSPad\Script\VBScript

You can recompilate the scripts ( you find it below menu scripts) or just restart PSPad.
If you don't want automatic start of Isense you can comment RunIsenseIfAHK in Sub Init.

Maybe this is useful for some.
Thanks for ISense Very Happy


Last edited by haichen on Fri Jul 11, 2008 3:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3626
Location: Belgrade

PostPosted: Fri Jul 11, 2008 3:17 pm    Post subject: Reply with quote

Quote:
you've to change all relative Paths in all Isense files to %a_scriptdir%\....

Or better, don't change IS but change your VB script so it sets correct working directory before starting ISense.

That way you don't have to change ISense each time we post new version.
_________________
Back to top
View user's profile Send private message MSN Messenger
haichen



Joined: 05 Feb 2007
Posts: 110
Location: Osnabrück, Germany

PostPosted: Fri Jul 11, 2008 3:48 pm    Post subject: changing working dir Reply with quote

Thanks, I added setting working directory in the above post.
Now it works without changing your code.
Back to top
View user's profile Send private message
daniel2



Joined: 23 Jul 2007
Posts: 41

PostPosted: Fri Jul 11, 2008 11:48 pm    Post subject: Reply with quote

Thanks for updating this! Having functions available makes this so much more useful!
Back to top
View user's profile Send private message
J_P
Guest





PostPosted: Sat Jul 12, 2008 4:06 pm    Post subject: Reply with quote

JoeSchmoe as guest wrote:
Hi, J_P, I'm not a big fan of .rar either,


Thanks,

I guess majkinetor was having a bad day.
Back to top
dyuhas



Joined: 31 Dec 2007
Posts: 6

PostPosted: Mon Jul 14, 2008 4:44 am    Post subject: Can't run Isense Reply with quote

I'm new to autohotkey.

Whenever I try to run isense.ahk I get the error: #Include file "includes\Setup_GUI.ahk" cannot be opened. setup_gui.ahk is located in the same dir as isense.ahk.

I read the readme.txt. There are no instructions that I can find on what file to execute to start the script or where to install it.

How do I run isense?
Back to top
View user's profile Send private message
freakkk



Joined: 29 Jul 2005
Posts: 130

PostPosted: Mon Jul 14, 2008 4:55 am    Post subject: Re: Can't run Isense Reply with quote

dyuhas wrote:
..setup_gui.ahk is located in the same dir as isense.ahk
Well- that file should actually be in the 'includes' folder. Not quite sure how it got dumped into the same folder as isense.ahk, but you may want to retry extracting from the .rar, or possibly evan re-download .rar
_________________
.o0[ corey ]0o.
Back to top
View user's profile Send private message
J_P
Guest





PostPosted: Mon Jul 14, 2008 3:23 pm    Post subject: Reply with quote

the rar file seems to be all wrong ....
Back to top
dyuhas



Joined: 31 Dec 2007
Posts: 6

PostPosted: Mon Jul 14, 2008 8:11 pm    Post subject: Re: Can't run Isense Reply with quote

freakkk wrote:
dyuhas wrote:
..setup_gui.ahk is located in the same dir as isense.ahk
Well- that file should actually be in the 'includes' folder. Not quite sure how it got dumped into the same folder as isense.ahk, but you may want to retry extracting from the .rar, or possibly evan re-download .rar


No "includes" sub-folder and a re-download produces the same result.

Now what?
Back to top
View user's profile Send private message
freakkk



Joined: 29 Jul 2005
Posts: 130

PostPosted: Tue Jul 15, 2008 3:29 am    Post subject: Re: Can't run Isense Reply with quote

dyuhas wrote:
re-download produces the same result

That is strange. Not sure why it isn't working for you; I just downloaded .rar again, and everything extracted fine for me. Question
Regaurdless, I repackaged again, & hopefully this time it will work. Smile

There is now a .zip & .rar version availiable.

>> Download <<

dyuhas wrote:
There are no instructions that I can find on what file to execute to start the script or where to install it.

After you extract ISense to its own folder (anywhere you please..), you just run the ISense.ahk.
Requires Autohotkey 1.0.47.06+
_________________
.o0[ corey ]0o.


Last edited by freakkk on Wed Jul 16, 2008 3:37 am; edited 1 time in total
Back to top
View user's profile Send private message
J_P
Guest





PostPosted: Tue Jul 15, 2008 3:46 pm    Post subject: Reply with quote

thanks for the zip file - definitely different than the previous rar file.

However, can't seem to get version 153 working....

I noticed zip file didn't include folder for editors, has this been dropped ?
Back to top
freakkk as guest
Guest





PostPosted: Tue Jul 15, 2008 4:27 pm    Post subject: Reply with quote

Please elaborate on how it's not working for you, and what editor your using.

This version auto-detects the editor your currently using, and adjusts the method based on that. This would be the reason for editor folder to not exist now.
Back to top
HugoV



Joined: 27 May 2007
Posts: 499

PostPosted: Tue Jul 15, 2008 4:27 pm    Post subject: Reply with quote

J_P wrote:
I noticed zip file didn't include folder for editors, has this been dropped ?


From the post announcing 153:

Methods are now automatic. Isense automaticaly chooses method based on the editor you run atm (freakkk)
Back to top
View user's profile Send private message
J_P
Guest





PostPosted: Tue Jul 15, 2008 5:13 pm    Post subject: Reply with quote

freakkk as guest wrote:
Please elaborate on how it's not working for you, and what editor your using.

This version auto-detects the editor your currently using, and adjusts the method based on that. This would be the reason for editor folder to not exist now.


I'm using textpad, I start to type in a word, and nothing happens, I hit control space and i see the code tries to read the first three characters but then nothing else happens.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3 ... 15, 16, 17, 18  Next
Page 16 of 18

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group