AutoHotkey Community

It is currently May 27th, 2012, 10:49 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 323 posts ]  Go to page Previous  1 ... 18, 19, 20, 21, 22
Author Message
 Post subject:
PostPosted: February 27th, 2011, 8:27 am 
Offline

Joined: April 21st, 2007, 9:16 pm
Posts: 178
Thanks. Your fix works well for me too, and I've kept it, as it is less complex than mine. :-)

[EDIT] Correction: It works well to fix the coma bug, but unfortunately, it deletes too many character in other circumstances (for example when you type #Usehook at the beginning of a line). So, finally, I will keep my fix.

_________________
r0lZ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 27th, 2011, 6:24 pm 
Offline

Joined: July 31st, 2008, 10:27 pm
Posts: 336
I was having problems with it not deleting enough characters any other way. I think it has to do with the fact that I am using 'Smart' Tabs, And not 'Real' Tabs


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 23rd, 2011, 5:35 pm 
Offline

Joined: March 10th, 2011, 7:17 pm
Posts: 374
i need some help, i downloaded and ran ISense, but the tooltip isn't giving me the parameters. heres a screenshot:

Image

i tried with both notepad and notepad++

thanks


EDIT:

SOLUTION

the problem is due to using windows display setting of 120 dpi. the default is 96 dpi. using 120dpi changes the size of your fonts, and ISense is having trouble with that.

to fix: change the code in ToolTip_Create() function

old:
Code:
      sWidth := StrLen(str) * 8 + 8


new:
Code:
      sWidth := StrLen(str) * 10 + 10



if you wanted a solution do handle both, i THINK you could do something like this:

Code:
   RegRead, LogPixels, HKEY_LOCAL_MACHINE, SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontDPI, LogPixels

   if (LogPixels=120)
   {
      sWidth := StrLen(str) * 10 + 10
   }
   else if (LogPixels=96)
   {
      sWidth := StrLen(str) * 8 + 8
   }


i'm not sure if there are other problems elsewhere, there probably is, but this was enough to fix. i have not bothered to fix the setup gui, but there is obvious overlapping on the controls there as well


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 21st, 2011, 7:12 pm 
r0lZ: I used your fix and now it doesnt insert the command twice but the command is shifted to the left..like this
Code:

  if pseudocode()
  {
      MsgBoxBox, ;looked liked this at first
  }

  if pseudocode()
  {
  MsgBox, ;shifted to left ..???
  } 


do you know what might be causing this behaviour?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 21st, 2011, 7:15 pm 
just noticed.. its shifted the command to the left from one space and a coma where the cursor was initially ..or something like that


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 28th, 2011, 3:16 am 
Is this compatible with _L?

I just downloaded an run v1.5.4 and got the following error.
Quote:
---------------------------
ISense.ahk
---------------------------
Error at line 161 in #include file "...\ISense_1.5.4\includes\ie.ahk".

Line Text: .htm#%A_LoopField%
Error: Unsupported use of "."

The program will exit.
---------------------------
OK
---------------------------


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 28th, 2011, 8:02 am 
No that means it isn't. It also has other issues that won't work with _L like using variables with [] in their names. Just download the ZIP file of AutoHotkey basic and run it using that and it will work.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 7th, 2011, 3:42 am 
Offline

Joined: July 10th, 2011, 5:03 am
Posts: 272
this is awesome!! so glad I found this.


Mak is there a way u know of to get this to work with HiEdit?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 323 posts ]  Go to page Previous  1 ... 18, 19, 20, 21, 22

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 38 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group