AutoHotkey Community

It is currently May 25th, 2012, 6:51 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 240 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 16  Next

Do you want HiEdit internaly
Yes
No, I like Edit control
Other (please explain)
You may select 1 option

View results
Author Message
 Post subject:
PostPosted: May 22nd, 2007, 8:55 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
It doesn't exist. AniGif has this.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 22nd, 2007, 10:16 pm 
Offline

Joined: October 28th, 2006, 2:14 am
Posts: 297
Location: US
majkinetor
Thanks much I haven't tried it yet because the newest version of the program using this control is at my grandparent's house. Its going to hopefully be a much improved program from my preview HTML Notepad I had made, its almost ready for release but I need a friend to implement the ftp upload stuff because I can't get ftp to work on... Wait a minute I can just do that at grandparent's house *hits self*...

Anyways thanks.

_________________
Changed siggy at request of ahklerner :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 26th, 2007, 2:40 pm 
Offline

Joined: October 28th, 2006, 2:14 am
Posts: 297
Location: US
majkinetor how did you figure this stuff out? I can't even find out what functions in this other dll are called or what parameters it accepts, how did you find out?

_________________
Changed siggy at request of ahklerner :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 26th, 2007, 5:49 pm 
Offline

Joined: March 15th, 2007, 4:10 am
Posts: 70
I am also curious regarding Elevator_Hazard's post. I've begun what I hope will soon be a feature-rich ahk editor in HiEdit....referenced here: http://www.autohotkey.com/forum/viewtopic.php?t=19529. I'm definitely curious as to what else I can do with that dll.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 26th, 2007, 7:46 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Quote:
majkinetor how did you figure this stuff out?

THe HiEditor is open source so you can read its code (its ASM code, so you have to know it). HiEditor is done by acyprian, Jupiter and some other guys from WinAsm forum and it is using HiEdit, of course.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 2nd, 2007, 3:16 am 
Offline

Joined: March 15th, 2007, 4:10 am
Posts: 70
OK....I'm new to this whole dll call, send message craziness, but I'm trying to emulate find and find/replace functionality for HiEdit, and I can't seem to figure it out. I have written the below code a hundred ways and I can't seem to get the function to work. It always returns ErrorLevel as FAIL.

Code:
HE_FindText(hEdit, w="", l="") {

   static EM_FINDTEXT := 1080

   l = 0|-1%l%
   SendMessage, EM_FINDTEXT, w, l,, ahk_id %hEdit%
   Return ErrorLevel
}


According to the HiEdit.inc file, the return value is supposed to be either the character position of the next match in the control, or -1 if it's not found. i've written the line
l = 0|-1%l% as:
l = 0|-1"%l%"
l := "0|-1" . l
there are a couple of more, but I don't remember them. No matter what I do, ErrorLevel is always FAIL. What stupid thing am I missing?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 2nd, 2007, 1:49 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Quote:
lParam = lpFindText :Pointer to a FINDTEXT structure containing information about the find operation.

U didn't fill any structure.

Quote:
EM_FINDTEXT EQU WM_USER + 56
wParam = fuFlags :Zero or more of the FT_MATCHCASE, FT_WHOLEWORD, FR_NOTNULLTERMINATED values.
lParam = lpFindText :Pointer to a FINDTEXT structure containing information about the find operation.
FINDTEXT STRUCT
chrg CHARRANGE <> Range to search
lpstrText DWORD ? If FR_NOTNULLTERMINATED is used, the first 4 bytes
is the length of the string to find followed by the
actual (not null-termianated) string to find.
Otherwise, Null terminated string to find
FINDTEXT ENDS


Custom controls are not trivial to wrap. It may seem so if you watch finshed code, but I have lot of experience and know pretty much about architechture of Windows NT OS family.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 2nd, 2007, 3:19 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
v0.1

Code:
;Styles: HSCROLL ,VSCROLL, TABBED, HILIGHT, TABBEDBTOP, TABBEDHRZSB ,TABBEDBOTTOM
HE_Add(hwnd,x,y,w,h,style="HSCROLL VSCROLL"){

;flags: WHOLEWORD MATCHCASE NOTNULLTERMINATED
HE_FindText(hEdit, sText, cpMin=0, cpMax=-1, flags="")

HE_SetSel(hEdit, nStart=0, nEnd=-1)

HE_Redo(hEdit)

HE_Undo(hEdit)


The new features are added into Features menu.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 3rd, 2007, 4:16 am 
Offline

Joined: October 28th, 2006, 2:14 am
Posts: 297
Location: US
Hmmm... I am really bored on the linux compy and I love how easy FTP things are on this so...

Image

Congrats :D I set up a small little system 8)

_________________
Changed siggy at request of ahklerner :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 3rd, 2007, 9:48 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
ROFL.

:D

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 4th, 2007, 5:17 pm 
HiEditor V2.0.0.6b is out. May be is it usefull for you, majkinetor.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 4th, 2007, 5:34 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
I know :D

Thx for the thought anyway

Its not useful btw.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 17th, 2007, 11:04 am 
Offline

Joined: August 13th, 2007, 12:00 am
Posts: 11
Nice work, dude. Couple questions:

1. How can I put this on multiples tabs in Gui, Tab?
2. When I do a Gui, Submit can I assign the contents of an hEdit box to a variable?

I'm considering using this in place of Edit because for some reason Edit envokes different ahk_ids everytime you input text to it. hEdit doesn't seem to do this.


Thanks in advance!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 9th, 2007, 12:56 am 
Offline

Joined: July 15th, 2007, 1:43 am
Posts: 1320
Is there a way of adjusting the LineNumbersBar text? Like to get it away from the code to reduce confusion?

_________________
Religion is false. >_>


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 9th, 2007, 12:14 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
no, i also asked author to support this.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 240 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 16  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Exabot [Bot], Google Feedfetcher, Leef_me, tkmmkt and 15 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