Jump to content

Wanto to switch to C++


am632
 Share

Recommended Posts

... Posted Image ...

we I don't kiss the admins' arse, we I respect them

... I guess we all show our respect in different ways.

Ps: Your related to the Borg by any change?

Edited by iEvKI3gv9Wrkd41u

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Link to comment
Share on other sites

  • Replies 63
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

... I guess we all show our respect in different ways.

Ps: Your related to the Borg by any change?

The Borg?

[font="Comic Sans MS"]My code does not have bugs! It just develops random features.[/font]My Projects[list][*]Live Streaming (Not my project, but my edited version)[right]AutoIt Wrappers![/right][/list]Pure randomness[list][*]Small Minds.......................................................................................................[size="1"]Simple progress bar that changes direction at either sides.[/size][*]ChristmasIt AutoIt Christmas Theme..........................................................[size="1"]I WAS BOOOORED![/size][*]DriveToy..............................................................................................................[size="1"]Simple joke script. Trick your friends into thinking their computer drive is haywire![/size][/list]In Development[list][*]Your Background Task Organiser[*]AInstall Second Generation[/list]BEFORE POSTING ON THE FORUMS, TRY THIS:

%programfiles%/AutoIt3/autoit3.chm
Link to comment
Share on other sites

The Borg are a race in the Star Trek series that take the best parts of humans and augment them with robotic parts. They strive to be "perfect".

um... ok...

Star Trek is a bit before my time.

[font="Comic Sans MS"]My code does not have bugs! It just develops random features.[/font]My Projects[list][*]Live Streaming (Not my project, but my edited version)[right]AutoIt Wrappers![/right][/list]Pure randomness[list][*]Small Minds.......................................................................................................[size="1"]Simple progress bar that changes direction at either sides.[/size][*]ChristmasIt AutoIt Christmas Theme..........................................................[size="1"]I WAS BOOOORED![/size][*]DriveToy..............................................................................................................[size="1"]Simple joke script. Trick your friends into thinking their computer drive is haywire![/size][/list]In Development[list][*]Your Background Task Organiser[*]AInstall Second Generation[/list]BEFORE POSTING ON THE FORUMS, TRY THIS:

%programfiles%/AutoIt3/autoit3.chm
Link to comment
Share on other sites

  • 1 month later...

um... ok...

Star Trek is a bit before my time.

Aww, you didn't have to go and say that. Now I feel all OLD 'n stuff.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

  • 2 weeks later...

Star Trek saved my life. Literally. I was sleeping on the couch where my dad stayed up to watch Star Trek one night. I had a potentially fatal seizure that night and my dad was able to get emergency help.

Posted Image
Link to comment
Share on other sites

nevermind.

Edited by iEvKI3gv9Wrkd41u

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Link to comment
Share on other sites

Wow - just finished reading the thread. We need some new material for

@danielkza - totally agreed, windows GUIs are a pain in the ass, even getting our head round the MSDN sux.

Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

Link to comment
Share on other sites

I have found there is a lot to know when reading the functions. Some are simple enough others require more thought and should be explained better. I would like to see better examples - more then

"DllImport("user32.dll", CharSet=CharSet.Auto, SetLastError=true)]

public static extern int GetWindowThreadProcessId(HandleRef handle, out int processId);"

Other APIs (and i'm not getting into a pissing contest over which is better) show full examples.

Example are - ha, when I was trying to find out how the ClassNN from windows - ha that was funny! I spent some time looking for the "getClassNN" function, Valik set me straight though. That may be a bad example but I did have difficulty following it all because function prototypes alone are not that helpful. (I see that with custom Java libraries - blank java doc and it shits me! Why create Java doc if it is blank!).

Another time was when I was having issues with ChildWindowFromPoint - turns out I needed to use RealChildWindowFromPoint with some extra params. I'm not the one to post every issue I have, I like to work things out myself - admittedly this may have compounded my issues ... Thankfully zackrspv found some code martin posted which solved the issue. Looking at the site alone, I would not have been able to work it out, I needed the full example.

I guess its like any API (C++ STL, Java) - its all foreign language until you spend some quality time with it. That said, windows is not exactly simple so it does stands to reason it would not be easy.

My 2 cents - i'll stop bitching now :unsure:

Edit: I always find the mistakes after I posted, don't ask why.

Edited by bo8ster

Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

Link to comment
Share on other sites

I don't know of any MSDN page that would list that incorrectly declared function reference.

What do you mean? If you are referring to the "getClassNN" function there is none - I was looking for a function name along those lines. There was a function to get everything else, not the ClassNN - I didn't know that AutoIt made up ClassNN.

Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

Link to comment
Share on other sites

Taken from http://msdn.microsoft.com/en-us/library/ms633522%28v=vs.85%29.aspx - C# syntax.

Not commenting on the correctness of the code, just saying that alone not very helpful to understand the function.

Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

Link to comment
Share on other sites

Do you complain about AutoIt lacking suitable Windows API documentation for use with DllCall? It seems like your complaint about MSDN would be the same thing. This doesn't look like a .NET specific function but rather something .NET let's you access similar to how AutoIt let's you access the Windows API.

Link to comment
Share on other sites

Do you complain about AutoIt lacking suitable Windows API documentation for use with DllCall? It seems like your complaint about MSDN would be the same thing. This doesn't look like a .NET specific function but rather something .NET let's you access similar to how AutoIt let's you access the Windows API.

No, AutoIt has good doco regarding the MSDN DLL calls mainly because examples are included, mostly. Granted not all functions have examples however the ones i've been interested have or they have been simple enough to work it out.

Simplistic example - is GetDlgCtrlID.

MSDN has a description and syntax only. (http://msdn.microsoft.com/en-us/library/ms645478%28v=vs.85%29.aspx)

AutoIt has a description, syntax and a full example you can download and run.

Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

Link to comment
Share on other sites

I assume you miss the part where it provides a link to source showing an example. Most functions on MSDN are demonstrated but it is usually several functions in a single example.

Keep in mind that if the example isn't for your desired language, well, neither is the documentation.

Lastly, regarding AutoIt. I wasn't talking about documented functions, of course. I was talking about using DllCall directly, not functions where we provide a wrapper

Edited by Valik
Link to comment
Share on other sites

I assume you miss the part where it provides a link to source showing an example. Most functions on MSDN are demonstrated but it is usually several functions in a single example.

Keep in mind that if the example isn't for your desired language, well, neither is the documentation.

Lastly, regarding AutoIt. I wasn't talking about documented functions, of course. I was talking about using DllCall directly, not functions where we provide a wrapper

1. Yes, on that page I did miss the example section. I went to the example section (http://msdn.microsoft.com/en-us/library/ms644996%28v=VS.85%29.aspx#init_box) and as with other MSDN examples I have seen there are ellipsis in the code.

2. True

3. I'll make it simple.

Do you complain about AutoIt lacking suitable Windows API documentation for use with DllCall?

No. I don't believe this is AutoIT's responsibility either.

Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

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...