Jump to content

Recommended Posts

Posted (edited)

Hi ..

First! I started learning English in the past few months ... If there are some mistakes , Excuse me for this ...

Updated 19 September 2010

SciTE Hopper 0.1

SciTE Hopper make you can do more with less time , it's make you jump hundreds lines by one click , with convenient interface ,

SciTE Hopper can choose perfect positions on the screen !!

it refresh automatically ...

All functions and regions will be in the list ...

Just one click to jump !!

Features

It's Fast !!

--- Checked 6000 Line in 800 millisecond

Compatible with SciTE window !!

--- Measure the program window and show compatible Window with it

---And it can follow SciTE state .

Adjustable

---SciTE Hopper has many options..

One-Click to jump

Show anchor in the middle of the screen

---Version 0.1 show anchor in the middle of screen !!

Speed

The test was on file has 6005 line ,Checking took :

-- Version 0.1 (Newest Version).

------ 724.20636583522 milliseconds = 0.72 second !!

For test 2-3.

------ 823.192941227742 milliseconds = 0.82 second

For test 1.

------ 361073.553741173 milliseconds = 6 minutes ;) !!

What is New ?

-- Better GUI

-- Options

-- Automatic Position and Height value

-- Follow SciTE state .!!

-- You can set height

-- Go to line function

-- Removed Auto Anchors Sort

-- Hide Anchor by add //

-- Many bugs have been fixed -- See Changelog

-- More speed !!!!

-- Less wrongs

-- You can delete user anchors

Example Au3 script

You can test SciTE Hopper with this script

#Region == Anchors --[ Do not change any thing ]----
;0xDD48678F1B44555F7592262D34AF2BA3|Anchor 2 |This is Anchor 2
;0x870578CC6DD69E2E7A98190EC0D5C76B|Anchor 1|This is Anchor 1
#EndRegion == Anchors --[ Do not change any thing ]----












#Region Var //
$msg = 'Script for test'
#EndRegion Var




























;#---- Anchor (0x870578CC6DD69E2E7A98190EC0D5C76B) -----------------






















#Region msgbox
_msgbox($msg)
#EndRegion msgbox
























;#---- Anchor (0xDD48678F1B44555F7592262D34AF2BA3) -----------------


























Func _msgbox($msg)
    MsgBox(0, '', $msg)
    _msgbox1($msg & ' 1' )
EndFunc






























Func _msgbox1($msg) ;//
    MsgBox(0, '', $msg)
EndFunc

pic :-

Posted Image

New Help File !!

-- For Ver : Version 0.1

-- Language : English

-- Author : Ashalshaikh

-- Translator : Th3 MMA

-- Date : September 2010

pic :

Download :-

- Here

SciTE Hopper 0.1.rar

- Box.net

---- http://www.box.net/shared/caqxvzphb1

-------- au3 file + help file

ChangeLog

Change log of SciTE Hopper
Version 0.1 --> Date : 19 September 2010
    Improved : Refresh Button text to refresh
    Improved : checking the anchors to check all anchors in the same time 
    Improved : add every icon one time in the imagelist
    Improved : Change GUI Controls postions.
    Added : Go To Line
    Added : Delete User Anchor
    Added : Hide Anchors by add //
    Added : The options
    Added : Cleaning the list if the SciTE does not exist
    Added : Cleaning the list if you switch SciTE to Untitled file
    Fixed : User anchor is placed exactly at the cursor position - even if the cursor is in the middle of a line
    Fixed : Black background of the List Icons
        Thanks taiete
    Fixed : SciTE Hopper stops if you switch SciTE to file does not have any line
    Fixed : SciTE Hopper sometimes adds the anchor info outsid the User Anchors Region
    Fixed : SciTE Hopper stops working if ther is some empty line inside UserAnchors Region.
    Removed : Anchors automatic sorting
    
For test 3 --> Date : 12 September 2010 - 04:41 PM
    Fixed : SciTE Hopper stops working if you switch SciTE to file does not have User Anchors
        Thanks guinness
    Fixed : Jumping to User Anchors does not work
    Fixed : Searching.

For test 2 --> Date : 12 September 2010 - 02:51 PM
    improved: chenge FileReadLine to _FileReadToArray for more speed.
        Thanks Melba23
    improved : Changed jump to Func Anchors via FileReadLine To (SciTE Find) 
    Fixed : missing window if SciTE Hopper runing with SciTE minimized window.
        Thanks wakillon
    Added : Search Anchor box but it is not working.
    Added : Refresh Button (( R ))
    Added : List Icons 
For test 1 --> Date : 11 September 2010 - 03:18 PM
    First Version

To Do List

  • Make SciTE UDF !! --> Done . click here ;)
  • Make user can add types of anchors :)
  • Make HotKeys
  • Verify that options file exists
  • check the validity of the options file
  • check existing name & des before add new user anchor
  • check existing user Anchor before jump
  • Add auto sort option enable/disable
  • Add button to add Hopper to tools menu --> By : Melb32

Edit : 20 sept --> add link to SciTE UDF & write new item to to do list.

-----------------------------------

Old post

  Reveal hidden contents

if you work with large script .. now you can jump rapidly !!

SciTE Hopper ..

Now Movement is rapidly !!!Jump to Any line faster !! good Addition

Now it's just for test !!

Pic

Posted Image

There are three kinds of Anchors:-

1 ) User Anchor .

---------you can insert anchor on any line ..

---------How can i make one ?

------------------1) click on any line you want in SciTE.

------------------2) click on insert anchor.

------------------3) write the name and description for this anchor

------------------4) click on Ok !!

2) Functions Anchors !!

---------SciTE Hopper check 'Func'

2) Regions Anchors !!

---------SciTE Hopper check 'Regions'

How can I jump to Anchor ?

---------Just click on its name on list or select it and click on 'go there' button

*) SciTE Hopper recheck Anchors if :

---------size of au3 script changes .. so if you want to update lists just press Ctrl+s !

---------you add new User Anchor.

---------you change SciTe Tab

*) Do not use same name and description for two User Anchors !!

*) SciTE Hopper Window will be in the right side automatically !!

New Version !! Here

SciTE Hopper .. For test 3

click here to know new things in (for test 2)

SciTE Hopper for test 2

Code : (( Now just for test ))

You Can test it with Any Script .. !!

Thanks

Edited by Ashalshaikh
  • Replies 77
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

Thanks for sharing!

Normally I always list all my function names at the top of my scripts (one of my programs helps me do that), and use SciTE's Function Jump hotkey (usually via my Toolbar For Any button after highlighting the desired function name - either at the top, or from wherever I have it written). Your addon does more than that it seems, and sounds promising, so I'll check it out when I can.

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

  Reveal hidden contents

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Posted (edited)

  On 9/11/2010 at 11:34 PM, 'TheSaint said:

Thanks for sharing!

Normally I always list all my function names at the top of my scripts (one of my programs helps me do that), and use SciTE's Function Jump hotkey (usually via my Toolbar For Any button after highlighting the desired function name - either at the top, or from wherever I have it written). Your addon does more than that it seems, and sounds promising, so I'll check it out when I can.

Thank you ..

Yes , Now (SciTE Hopper) is very simple and has few functions .. As I said earlier it is now only for testing .. Later i'll add more functions , to become a very useful tool

Thanks again

Edited by Ashalshaikh
Posted (edited)

Great idea and works very well !

I will have rather called Scite Jumper ! Posted Image

very convenient for long script, I adopt it today !

Thanks a lot !

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Posted

Great work!

I find myself scrolling up and down between functions, all the time. This makes things a lot quicker and easier!

Pitty it can't be built into SciTE.

Thanks

John Morrison

AKA

Storm-E

Posted (edited)

  On 9/12/2010 at 6:54 AM, 'wakillon said:

Great idea and works very well !

I will have rather called Scite Jumper ! Posted Image

very convenient for long script, I adopt it today !

Thanks a lot !

  On 9/12/2010 at 7:29 AM, 'storme said:

Great work!

I find myself scrolling up and down between functions, all the time. This makes things a lot quicker and easier!

Pitty it can't be built into SciTE.

Thanks

John Morrison

AKA

Storm-E

This makes me very happy .. ;)

Thank you for the test ..

I will start to fix some slow problems such as checking and jumping with the anchors function)

and add some of the other functions such as 'Delete Anchor' , 'find anchor' and other things.

Thanks again

((Finally, I wrote an useful tool)) :)

Edited by Ashalshaikh
  • Moderators
Posted (edited)

Ashalshaikh,

That is very nice and very useful script! ;)

Could I make a suggestion?

It currently takes 43 secs to read in a 4500 line script when I switch SciTE tabs. ;)

Rather than read the file 3 times when you are searching for the User, Function and Region anchors, why not read the file into an array with _FileReadIntoArray within the _Refresh function and then pass that array to the searching functions? That way you do not use FileReadLine (which is very slow), but only loop through the array elements. I am sure you will find that the process of reading in a new file when you change tabs will be much quicker if you do it that way. :P

Please ask if you need any help to implement this (although I am sure you will not!). :)

M23

Edit: The same is true for the other places in the script where you use FileReadLine. o:)

Edited by Melba23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted (edited)

I just try to run it compiled but it remains in the taskbar !

I don't see any compil conditions in script Posted Image

*Sorry i just understand scite should not be in taskbar too !

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Posted

  On 9/12/2010 at 10:02 AM, 'Melba23 said:

Ashalshaikh,

That is very nice and very useful script! ;)

Could I make a suggestion?

Thanks .. :)

Sure, I'll be happy with that, especially from someone like you

  On 9/12/2010 at 10:02 AM, 'Melba23 said:

It currently takes 43 secs to read in a 4500 line script when I switch SciTE tabs. o:)

Rather than read the file 3 times when you are searching for the User, Function and Region anchors, why not read the file into an array with _FileReadIntoArray within the _Refresh function and then pass that array to the searching functions? That way you do not use FileReadLine (which is very slow), but only loop through the array elements. I am sure you will find that the process of reading in a new file when you change tabs will be much quicker if you do it that way. :party:

That's what I really need, i know now why the problem of slow

Because the script file was read three times ;):P

This advice is very important ! . Thanks so much ز

  On 9/12/2010 at 10:02 AM, 'Melba23 said:

Please ask if you need any help to implement this (although I am sure you will not!). o:)

M23

Edit: The same is true for the other places in the script where you use FileReadLine. :D

thanks again

Posted

  On 9/12/2010 at 10:41 AM, 'wakillon said:

I just try to run it compiled but it remains in the taskbar !

I don't see any compile conditions in script Posted Image

*Sorry i just understand scite should not be in taskbar too !

If you intend to be 'SciTE Hopper' not in the taskbar, then this is something simple

But it seems to me that you talk about a problem .. I really do not understand exactly what you say .. :)

As I said before I started learning English a few months only ;)

Posted

  On 9/12/2010 at 12:29 PM, 'Ashalshaikh said:

If you intend to be 'SciTE Hopper' not in the taskbar, then this is something simple

But it seems to me that you talk about a problem .. I really do not understand exactly what you say .. :)

As I said before I started learning English a few months only ;)

I want to say that

if i run Scite Hopper compiled

and if scite editor is minimized

then scite hopper is blocked in taskbar...

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Posted (edited)

  On 9/12/2010 at 12:33 PM, 'wakillon said:

I want to say that

if i run Scite Hopper compiled

and if scite editor is minimized

then scite hopper is blocked in taskbar...

Yes, now I understand what you say

This is simple problem.

Problem because this code

$Pos = WinGetPos(WinGetHandle("[CLASS:SciTEWindow]"))
$MainGUI = GUICreate("SciTE Hopper By : Ashalshaikh", 216, 447)
If IsArray($Pos) Then WinMove($MainGUI, '', $Pos[0] + $Pos[2] - 250, $Pos[1] + 100)
WinSetOnTop($MainGUI, '', 1)

it makes window in the right side auto .. !! thanks so much for help .. i will fix it soon

Edited by Ashalshaikh
Posted (edited)

New SciTE Hopper : for test 2 !!

Changes :-

-------- it's much more faster !!

---------------- changed : method of reading au3 file

------------------------ Thanks Melba23

---------------- changed : method of jumping with Func Anchors

-------- Fixed : this problem #12 #13

---------------- now it checks SciTE Window State !!

------------------------ Thanks wakillon

-------- Added : Search box !!

---------------- search for Anchor !!

---------------- Auto Search.

---------------- Problem : with search results !! I will solve it with test 3 ;)

-------- Added : Refresh Button (( R ))

---------------- you can use it After searching

-------- Added : List Icons

---------------- I know it is ugly :) , but I will change it later

---------------- I will add enable/disable option

pics :

Posted Image

Posted Image

New SciTE Hopper : for test 3 !!

Major mistakes have been fixed

;=======================================================
;SciTE Hopper for test 2
;now you can jump to any line by 1 click !!
;By : Ashalshaikh : Ahmad Alshaikh"
;Thanks to :
;          CodeWizard Author : for SciTE Control Functions"
;          Koda(form designer) Authors
;          Melba23  :: now it's faster !!
;          wakillon
;tested with Autoit v3.3.6.1
;link : http://www.autoitscript.com/forum/index.php?showtopic=119544
;=======================================================

(( Now just for test ))

Deleted

Thanks .. !! ;)

Edited by Ashalshaikh
Posted (edited)

Excellent! But when I have more than 1 tab open and I moved to the second tab I receive Line 259: Subscript used with non-Array variable. So I put _ArrayDisplay()in the function _AnchorsGetUserAnc() and on initial start it worked fine, but once I moved to the second tab an array isn't declared again, as _ArrayDisplay() didn't show.

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

  On 9/12/2010 at 3:02 PM, 'guinness said:

Excellent! But when I have more than 1 tab open and I moved to the second tab I receive Line 259: Subscript used with non-Array variable. So I put _ArrayDisplay()in the function _AnchorsGetUserAnc() and on initial start it worked fine, but once I moved to the second tab an array isn't declared again, as _ArrayDisplay() didn't show.

thanks .. yes . it's Major error !!

I Fix it And two others ..Now I write the new version Reply

Thanks Again

Posted (edited)

SciTE Hopper .. For test 3

to see all features :

----SciTE Hopper .. For test 1

----SciTE Hopper .. For test 2

Major mistakes have been fixed :-

-------- This problem#15

---------------- Occur if there is no User Anchors

------------------------ Thanks guinness

-------- Jumping to User Anchors does not work

Now the search for anchors work very well ;)

(( Now just for test ))

;=======================================================
;SciTE Hopper  for test 3
;now you can jump to any line by 1 click !!
;By : Ashalshaikh : Ahmad Alshaikh"
;Thanks to :
;          CodeWizard Author : for SciTE Control Functions"
;          Koda(form designer) Authors
;          Melba23  :: now it's faster !!
;          wakillon
;          guinness
;tested with Autoit v3.3.6.1
;link : http://www.autoitscript.com/forum/index.php?showtopic=119544
;=======================================================

SciTE Hopper.au3

Edited by Ashalshaikh
Posted

Used the version in the first post and no problem so far!

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

  On 9/12/2010 at 3:49 PM, 'wakillon said:

ah yes it's better !

Thanks !

is it possible to save window position on exit ?

Of course .. Such a great idea

I will add this in the new version :)

  On 9/12/2010 at 3:49 PM, 'wakillon said:

yes i know, i abuse...Posted Image

;);)

  On 9/12/2010 at 4:04 PM, 'guinness said:

Used the version in the first post and no problem so far!

For test 3 is the best version until now

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
  • Recently Browsing   0 members

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