Jump to content

.au3 For Inserting Two Lines


koolkid
 Share

Recommended Posts

i got help from CyberSlug and that worked in textpad, but somehow, i dont know why, the script as a shaky behaviour: sometimes runs, others no.

when i click the tool, the icon appears in the task bar and imediatly disapears, and rarely apears in the system tray, near the clok - that's when its working.

EDITED:

the icon apears "onmouseup", i mean, when i'm releasing the mouse, and then just vanishes...

how can i fix it?

i did everything you told me; tried using the tools, and alternatevly i run the autoit.exe to run the script but with no effect...

can you help again, pls?

thanks in advance

Edited by koolkid
Link to comment
Share on other sites

  • Developers

Guess you'r taking about AutoSense ?

Couple of questions:

- What is the exact title in Window of the editor you run ?

- What do you have as value for $TEXT_EDITOR = in the AutoSense.au3?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

its not that.

its this script:

; AutoIt 3.0.100 Script 
; When run, the Enter key in TextPad inserts two lines. 
; Script automatically terminates when TextPad is closed. 
; 
Opt("TrayIconHide", 0) ;0=show, 1=hide 
HotKeySet("{Enter}", "DoubleSpace") 
While WinExists("TextPad") 
   sleep(100) 
WEnd 
Exit 

Func DoubleSpace() 
   HotKeySet("{Enter}") ;unregister hotkey to avoid infinite loop! 
   Send("{Enter}") 
   If WinActive("TextPad") Then ;then send Enter again 
      Send("{Enter}") 
   EndIf 
   HotKeySet("{Enter}", "DoubleSpace") ;re-register hotkey 
EndFunc
Link to comment
Share on other sites

  • Developers

Works like a charm for me....

The SYSTEMtray ICON stays always active till i close TextPad.

Isn't your systemtray collapsed? (in other words : left of the system tray: click on the <)

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

i did discover something!!!!:

the script runs ok IF i have no workarea opened!

If i save a workarea and then open tp and open that workarea, no script.

If i open tp AND CLOSE the workarea, yes!, i get to the script.

Can someone fix it, or is it impossible to fix?

thanks in advance

Link to comment
Share on other sites

  • Developers

ok that explains it... the start of the windows title changes...

just change the title match mode to 2 ...... :whistle:

; AutoIt 3.0.100 Script 
; When run, the Enter key in TextPad inserts two lines. 
; Script automatically terminates when TextPad is closed. 
; 
Opt("TrayIconHide", 0);0=show, 1=hide 
Opt("WinTitleMatchMode", 2)
HotKeySet("{Enter}", "DoubleSpace") 
While WinExists("TextPad") 
  sleep(100) 
WEnd 
Exit 

Func DoubleSpace() 
  HotKeySet("{Enter}");unregister hotkey to avoid infinite loop! 
  Send("{Enter}") 
  If WinActive("TextPad") Then;then send Enter again 
     Send("{Enter}") 
  EndIf 
  HotKeySet("{Enter}", "DoubleSpace");re-register hotkey 
EndFunc

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...