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 

AutoHotkey_L : Arrays, Debugger, #If expression, etc.
Goto page Previous  1, 2, 3 ... 25, 26, 27, 28, 29, 30  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Lexikos



Joined: 17 Oct 2006
Posts: 4471
Location: Qld, Australia

PostPosted: Tue Feb 09, 2010 12:44 pm    Post subject: Reply with quote

twhyman wrote:
How can i change the ahk_class of the GUI window from AutoHotkeyGUI to a string I like,
What for?

You can get the source and a compiler (such as VC++), open defines.h, change the definition of WINDOW_CLASS_GUI and rebuild.
Quote:
In the regular AHK I did that by Hex editing the SC bin file, Now I cannot find that string anymore.
Does your hex editor support Unicode? Wink I suppose "Au" in hex would be 41 75 (ANSI) or 41 00 75 00 (Unicode). You can figure out the rest...
Back to top
View user's profile Send private message Visit poster's website
majkinetor



Joined: 24 May 2006
Posts: 4116
Location: Belgrade

PostPosted: Tue Feb 09, 2010 2:53 pm    Post subject: Reply with quote

Quote:
What for?

What do you mean what for ?
It looks way cooler in WinSpector that way Confused
_________________
Back to top
View user's profile Send private message
twhyman



Joined: 07 Dec 2005
Posts: 310

PostPosted: Tue Feb 09, 2010 6:22 pm    Post subject: Reply with quote

[Moderator's note: When bottom-posting, please trim the original message to its relevant parts.]
Lexikos wrote:
Does your hex editor support Unicode? Wink I suppose "Au" in hex would be 41 75 (ANSI) or 41 00 75 00 (Unicode). You can figure out the rest...

Thanks for the tip I managed to change through the hex editor Smile

majkinetor wrote:
Quote:
What for?

What do you mean what for ?
It looks way cooler in WinSpector that way Confused

I got my own special reasons I cannot reveal Twisted Evil if i tell i will have to kill you Wink, I don't want to kill you, I love the stuff you make for AHK and I am terrified that the bear in your sig will come after me Surprised
_________________
(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 4471
Location: Qld, Australia

PostPosted: Thu Feb 11, 2010 4:59 am    Post subject: Reply with quote

Quote:
Revision 46 - February 11, 2010
  • Added A_FileEncoding, which returns the current default file encoding.
  • Added StrPut and extended StrGet with additional features.
Source: AutoHotkey_L
Back to top
View user's profile Send private message Visit poster's website
kalmen
Guest





PostPosted: Fri Feb 12, 2010 5:28 pm    Post subject: Reply with quote

Thanks Lexikos for your great AutoHotkey_L. Smile
I have a problem ControlGet, List is not working with Gui ListView in Unicode version. This only happens in Unicode Version..
Here is sample.

Code:
Gui, Add, ListView, xm ym w200 r5 Grid, ListView
LV_ModifyCol(1, 100)
Loop, 5
   LV_Add("", "Item_" . A_Index)
Gui, Show

/*
RowCount := LV_GetCount()
Loop, %RowCount%
{
   LV_GetText(Item, A_Index)
   List .= Item . "`n"
}
MsgBox, %List%
*/

Gui, +LastFound
ControlGet, List, List,, SysListView321
MsgBox, %List%
Return

GuiClose:
ExitApp
Back to top
infogulch



Joined: 27 Mar 2008
Posts: 378

PostPosted: Fri Feb 12, 2010 11:30 pm    Post subject: Reply with quote

Hi Lexikos, I was wondering if you had noticed Sean's AutoHotkey_COM he recently released based on your L45 revision. Any progress?
_________________

Scripts
- License
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 4471
Location: Qld, Australia

PostPosted: Sat Feb 13, 2010 2:48 am    Post subject: Reply with quote

kalmen, thanks for the bug report. I'll see what I can do.

infogulch, I had noticed that. Actually, I downloaded it before anyone replied, and it seems Sean had already updated it (the modified source files at least) to include StrPut (L46). There are some other things I need to sort out before properly reviewing and merging Sean's code.
Back to top
View user's profile Send private message Visit poster's website
Lexikos



Joined: 17 Oct 2006
Posts: 4471
Location: Qld, Australia

PostPosted: Sat Feb 13, 2010 6:14 am    Post subject: Reply with quote

kalmen, please try revision 47.
Back to top
View user's profile Send private message Visit poster's website
twhyman



Joined: 07 Dec 2005
Posts: 310

PostPosted: Sat Feb 13, 2010 9:49 am    Post subject: Reply with quote

Hi Lexikos,

Is there a plan to add support for network functions like FTP,SFTP,TCP or UDP?

Thanks,
Twhyman
_________________
(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 4471
Location: Qld, Australia

PostPosted: Sat Feb 13, 2010 10:29 am    Post subject: Reply with quote

No.
Back to top
View user's profile Send private message Visit poster's website
jethrow



Joined: 24 May 2009
Posts: 792
Location: Iowa, USA

PostPosted: Sat Feb 13, 2010 8:31 pm    Post subject: Reply with quote

Lexikos wrote:
... your implementation seems ideal - except that "for x in y" or equivalent may need to invoke ...
Are there plans to add a for-loop? The main reason I ask is because I was wondering if there is currently any way to access/loop all the non-integer keys of an object/array -- something like:
Code:
for k,v in obj
   keys .= k . "`n"
MsgBox, %keys%

Also (not to make this thread a wish-list), it would be nice to have a C-Style for-loop.
_________________
AHKL, COM_L,Webpage Controls,Donate to AHK


Last edited by jethrow on Sat Feb 13, 2010 11:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4116
Location: Belgrade

PostPosted: Sat Feb 13, 2010 10:09 pm    Post subject: Reply with quote

Yes.
_________________
Back to top
View user's profile Send private message
slight
Guest





PostPosted: Sun Feb 14, 2010 12:28 am    Post subject: libcurl issue with Unicode build Reply with quote

This is amazing.

However, the Unicode build of AutoHotkey_L doesn't seem to be compatible with libcurl through the libcurl wrapper. For example, olfen's test script pops up some Unicode gibberish instead of the cURL version, and nothing actually gets downloaded (except a 0-byte file). Is there a workaround, or am I forced to stick with ANSI?

Thanks for your time and I appreciate the work you put into this!
Back to top
Lexikos



Joined: 17 Oct 2006
Posts: 4471
Location: Qld, Australia

PostPosted: Sun Feb 14, 2010 2:01 am    Post subject: Reply with quote

jethrow wrote:
Are there plans to add a for-loop?
Yes, that's why I mentioned it.
Quote:
I was wondering if there is currently any way to access/loop all the non-integer keys of an object/array
No, that's why it's planned. Smile
slight wrote:
However, the Unicode build of AutoHotkey_L doesn't seem to be compatible with libcurl through the libcurl wrapper.
AutoHotkey_L's Unicode build is based on AutoHotkeyU. Please read AutoHotkeyU: Script compatibility. Then, if you're willing to attempt to fix the script, read [AHK_L] HTTPQuery not working to see some practical examples of issues scripts written for ANSI will encounter. Note: libcurl appears to support only ANSI/8-bit strings.

I don't have the time or energy to update every broken script.
Back to top
View user's profile Send private message Visit poster's website
HotKeyIt



Joined: 18 Jun 2008
Posts: 2197
Location: GERMANY

PostPosted: Mon Feb 15, 2010 9:15 am    Post subject: Reply with quote

Lexikos wrote:
[*]Allow obj.() as a means to call the default method of an object; equivalent to obj[""]().

Since above, I think it would make sense for this to be valid as well obj.[key] which would be equivalent to obj["",key] Question
_________________
AutoHotFile - ToolTip(n,text,title,options) Wink
Back to top
View user's profile Send private message
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 ... 25, 26, 27, 28, 29, 30  Next
Page 26 of 30

 
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