
ryeguy
Active Members-
Posts
77 -
Joined
-
Last visited
ryeguy's Achievements

Wayfarer (2/7)
0
Reputation
-
Anyone else have any ideas?
-
With regards to the _Singleton UDF in the Misc file, is it foolproof? Meaning, is there any circumstance where the singleton lock would not be released when the program terminates? Or is that pretty much guaranteed since the DLL it uses would be closed with the program?
-
This is on XP, not vista. And you don't need the absolute location. If you omit it, it just saves it to the current folder.
-
I have a program deployed on a client's computer and I can't seem to use anything relating to wininet.dll. First, I was using _InetGetSource on my site. Ok that didn't work. I downgraded it to a one line test script that does InetGet("http://google.com","google.html") and even that doesn't work! He is running Win XP SP3 (so yes, the minimum of IE3 is installed). What could be the issue? I checked and wininet.dll is indeed in system32. I'm assuming if it were corrupted other stuff like IE itself would not work, right? What could be the problem here? He has no firewall, even all the way on the modem level.
-
I released a commercial product and have serial key checks littered in my application. I have the serial check in serialcheck.au3 and I just #include it where I want the check to occur. I do this because I read that it's harder to detect a serial check when it's an inline function and not a jump, but now that I think about this, is this even an issue in autoit since it's interpreted and not compiled? [Also: I do know that autoit is not the best choice for security and nothing I can do will stop piracy, but everything helps]
-
Thanks for the help guys, glad I'm not just going crazy. I tried ;seeing if this is maybe a list of default params #AutoIt3Wrapper_AU3Check_Dat=-w 2 and ;seeing if its a toggle #AutoIt3Wrapper_AU3Check_Dat=N #AutoIt3Wrapper_au3check_parameters=-w 2 No dice. Guess I'll just have to wait.
-
You're right, it is -w 1 not -w 2. That was my mistake, I was typing from memory. I tried what you showed above. It appears that while I can ADD parameters, it doesn't seem to work when I want to change it from its default. Is there a default config file somewhere? Here's what I have: #Region;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_icon=unlock.ico #AutoIt3Wrapper_Compression=4 #AutoIt3Wrapper_au3check_parameters=-w 2 #Tidy_Parameters=/kv 25 /sf #Obfuscator_Parameters=/striponly #EndRegion;**** Directives created by AutoIt3Wrapper_GUI ****
-
I'm kind of confused as to how to turn off a parameter in the au3 wrapper. In au3check, I don't want it to throw a warning if it sees the same file included twice. It says "-w 2" controls this option. I have tried: -w 2 (hoping its a toggle) -w 2 0 -w 2 off Nothing works. What is the syntax to shut this off?
-
Menu will not respond to events with tab control
ryeguy replied to ryeguy's topic in AutoIt GUI Help and Support
I really don't know why this works, but my previous code looked like this: make gui make tab ctrl make menu hook up events show gui Now, when I simply rearrange my code to this, it works: make gui make tab ctrl show gui make menu hook up events I don't know why, but it does. Whatever. -
This is a weird problem..it seems like it may be a bug but I'd just like to make sure before I report it. It could just be some stupid mistake. Anyway, in my app I have a GUI window with a menu and a tab control with 2 tabitems. If both the tab control and the menu exist at the same time, the menu will not send out any events at all when it is clicked. I have tried with both event mode and guigetmsg() mode. I know that code would help, but really, it is as simple of a problem as I make it sound. If I comment out the line: $tabs = GUICtrlCreateTab(4, 48, 260, 257) My menu works perfectly and properly fires events. If I uncomment it, then the menu stops working. The end. There is no other complexity to this, and that's why this problem is so strange to me. Am I missing something basic? Can you just not use these 2 controls together for some reason?
-
EDIT: Wow, I just realized the struct I created was char instead of byte. Problem solved. I have a DLL function that accepts a file as a binary char*. I can't seem to get it to show up correctly from the DLL's point of view.. Basically what this should do is read captcha.jpg as a binary and send it as a parameter, but what happens is the DLL receives it as a hex string. It literally outputs "0xFFEA028 ..." etc. Here is the DLL function: int WINAPI CCprotoPicture( int id, char *pict, int pict_size, char* text) Here is my code: Local $pictureFile = FileOpen("captcha.jpg", 16) Local $pictureBin = FileRead($pictureFile) Local $pictureSize = FileGetSize("captcha.jpg") Local $pictureStruct = DllStructCreate("char picture[" & $pictureSize & "]") Local $solutionStruct = DllStructCreate("char solution[255]") DllStructSetData($pictureStruct, "picture", $pictureBin) $r = DllCall($dll, "int", "CCprotoPicture", "int", $DLL_ID, "ptr", DllStructGetPtr($pictureStruct, "picture"), "int", $pictureSize, "ptr", DllStructGetPtr($solutionStruct, "solution")) Am I missing something? Is there some way to convert AutoIt binary into a format this DLL can understand?
-
Thank you. Simple and sweet.
-
The code is simply $Pic1 = GUICtrlCreatePic("graphics\mail.gif", 0, 0, 65, 65) Here is a screenshot. Notice the BG is white - that is what is marked as transparent on the GIF. The gif is attached.
-
I might be blind, but no, I really could not find anything. A majority of those threads are about making the gui window itself transparent - I don't want that. There were 3 solutions I found in those threads: WS_EX_LAYERED - This makes the window see through; I just want the background of a .gif pic control to be transparent (it displays as white) Larry's DLL - This uses a BMP as a transparency mask for the entire GUI window, so that wont work for me Creating a new GUI with just the GIF on it - I'm using a tabbed control so this would be more work than its worth Am I missing anything? I probably am but there was nothing I could see.
-
How can I use a GIF's transparency when it is displayed as a Pic control? I have some in my app and the background is displayed as white instead of being transparent.