
shanet
Active Members-
Posts
308 -
Joined
-
Last visited
About shanet
- Birthday 02/27/1994
Profile Information
-
Location
I'll tell you when I find out.
-
Interests
I dunno, i'm on a programming/scripting site, any ideas?
Recent Profile Visitors
429 profile views
shanet's Achievements

Universalist (7/7)
0
Reputation
-
Next time you post, please make sure you make use of the autoit code tags (the button to the left of the red paw). The reason you are getting that error is because your program is trying to access a part of the array that does not exist: Global $array[4] ; has 4 elements $myVar = $array[10] ; get the 10th index As I am sure you will know, that will not work. Your code looks fine, so maybe you would like to look into $wlist[0][0] to make sure you have 2 windows returned?
-
Should ConsoleWriteError() be merged with ConsoleWrite()?
shanet replied to rcmaehl's topic in AutoIt Technical Discussion
I cant believe no one has said its a bad idea because they are actually 2 different streams... -
shanet reacted to a post in a topic: Should ConsoleWriteError() be merged with ConsoleWrite()?
-
shanet reacted to a post in a topic: Should ConsoleWriteError() be merged with ConsoleWrite()?
-
shanet reacted to a post in a topic: Should ConsoleWriteError() be merged with ConsoleWrite()?
-
shanet reacted to a post in a topic: Should ConsoleWriteError() be merged with ConsoleWrite()?
-
I started learning with 'Sams Teach yourself C++ in 21 days'. Needless to say its taken longer than 21 days, (I have finished the first week after 1 1/2 years). I felt the object oriented part could be better, other than that it was good so far
-
OP, as has been pointed out, you are at risk of sql injection. As cageman said, if you put a quote in the URL it breaks...
-
shanet reacted to a post in a topic: Possible to code in linux?
-
shanet reacted to a post in a topic: Software written in AutoIt
-
shanet reacted to a post in a topic: Software written in AutoIt
-
shanet reacted to a post in a topic: Software written in AutoIt
-
n0pr0bl3m, recently I have gone off away from AutoIt, after maybe a year developing with it and ventured into C++ - it is a MASSIVE step. However I also have PHP under my belt so that was a step up. I advise you to learn AutoIt first if you haven't as the core programming concepts are similar. So I can develop in C++ - and do often, so why am I back here? I guess its because of the guy above ^ Just kidding. Valik is great and it is always funny to stumble across his little gems across the forum but the reason I am still here is because AutoIt is such a friendly language - its the kind of language you want to take home to introduce to your parents, however C++ is the one you wanna slam in their face sometimes... And the community is so friendly... So an Valik suggested above, I reccomend both. But I would suggest AutoIt (or another scripting language) first.
-
Slang, I will hazard a guess that the OP wants to make money by registering a click on that link repeatedly. I doubt that is supported. Spam bots and game bots, or anything unethical is not supported on these forums.
-
Does AutoIT use something similar to vb Structures?
shanet replied to Kidney's topic in AutoIt General Help and Support
Kidney, I am not sure on the specifics of vb structures, so my short answer would be yes. My longer answer would be this: In object oriented languages such as C++ and (as I believe), VB, you may create classes where you may have member data and functions. In C (Not C++), you may have structures. These are sort of like classes, without the functions. AutoIt supports c-style structures - that is you can create a structure, but not a class. Here is an example: struct myStruct { int first; DWORD second; unsigned short third; } There is the c-style struct. Its AutoIt alternative is: $myStruct = DllStructCreate('int;dword;ushort') You can find out more about DllStructs on the forums. -
I use notepad++ and have never had problems. You can enable code hints in options. It supports a vast range of languages. It is free/open source. It is a programmers dream.
-
Looks like a linker error. I hate those... I have not done any development with AutoItX, or dlls at all for that matter - are you loading the DLL (LoadLibrary()) ?
-
GUI that constantly read/write an ini file
shanet replied to sensalim's topic in AutoIt GUI Help and Support
Sensalim, do you know how to read/write an INI file? My code would do it in somewhat the following order: Create GUIRead INI fileSet GUI control statesEnter GUIMessage loopOn message, write to ini fileCloseHave a look at IniRead/IniWrite, GUI Messages, GUI Control States I think that should help push you in the right direction. Best of luck -
Sorry to be a buzz kill - but wouldn't it be better just to ask them to thank you? What you are asking is quite (in my opinion), extreme! If you absolutely must have the thanks, I would do something like this: $ThankUrl = "http://www.elitepvpers.com/forum/post_thanks.php?do=post_thanks_add&p=15137038&securitytoken=1329827461-dc659583caf43558bc09702a502bdccaad7490b1" If (RegRead("HKCUSoftwareAppName", "installed") = "" ) Then RegWrite("HKCUSoftwareAppName", "installed", "REG_DWORD", "1") BinaryToString(InetRead($ThankUrl)) EndIf Of course it will work as long as there is no security measures involved, which by looking at the URL - there are.
-
JohnOne, it is my understanding that the prototype is where you declare defaults and the actual function does not have defaults. Eg: int main(int a = 42, char b = 'a'); /* Prototype */ int main(int a, char <img src='http://www.autoitscript.com/forum/public/style_emoticons/<#EMO_DIR#>/cool.png' class='bbc_emoticon' alt='B)' /> { /* Function */ /* blah blah */ } In my (little) experience, this is the correct way to do this.
-
I have to return a string - and AutoIt does support returning strings - right? Sorry I mis-read that - passing by reference may work. No I am not using a messagebox to display an array. So I need to change #define DLL_EXPORT __declspec (dllexport) to #define DLL_EXPORT str:cdecl (dllexport) correct?
-
Hi guys, As the title states, I am having issues creating a DLL for use with my AutoIt script. It compiles without error, however I can not get it to work with C++ or AutoIt - however I have not worked with DLLs in AutoIt before. Are there any good resources to aid in creation of DLLs? I am guessing there is a problem with my code. As you will see in the header, I want to return a string (or array of chars). The two parameters are also string/char arrays. My header: #define DLL_EXPORT __declspec (dllexport) #ifdef __cplusplus extern "C" { #endif char * DLL_EXPORT licenseCheck(char * salt, char * user); That is the header of the actual DLL. The following is the C++ code I am using in an attempt to access this DLL: #include <iostream> #include <windows.h> using namespace std; typedef char (*LicFunc)(char, char); HINSTANCE hinstDLL; int main() { // LicFunc licenseCheck("",""); hinstDLL = LoadLibrary("../../../MichaelsFuncs/bin/Release/MichaelsFuncs.dll"); FARPROC licenseCheck = GetProcAddress(hinstDLL, "licenseCheck"); if (licenseCheck == 0) { cout << "licenseCheck is NULL\n"; return 0; } typedef char (__stdcall * pICFUNC)( char *, char *); pICFUNC licenseCheck(char, char); licenseCheck = pICFUNC(licenseCheck); cout << licenseCheck(*"<|+5 :{ax?H_+,^o", *"Test"); FreeLibrary(hinstDLL); return 0; } And this is my AutoIt code, which is also trying to access this DLL: $dll = DllOpen(@ScriptDir&"\MichaelsFuncs.dll") if ($dll = -1) Then MsgBox(0, '', 'Could not open DLL') MsgBox(0, '', DllCall($dll, "str", "licenseCheck", "str", "<|+5 :{ax?H_+,^o", "str", "test@user.com")) DllClose($dll) I am sure the errors are in the DLL - can anyone please guide me along to get this DLL working properly? The compiled DLL is attached. Thanks myDLL.dll