
Sycamore
Members-
Posts
12 -
Joined
-
Last visited
Everything posted by Sycamore
-
I'm sending 4096x2048 .jpg files (along with other small sizes that work fine) to buttons and also to a relatively small splash screen in Cosmic SkyCycling, a script I worked up for Oblivion. The larger jpg files are just "not there" when the script displays them on screen in Vista(Utimate64bit) (you can open them normally outside the script and they look ok). The script displays them just fine in XP. I have tried a number of simple things such as compatibility mode and other settings in the properties screen of the exe, but none of my tweaks fixed the problem. Obviously, I can fix things if I resave the jpg files with a lower resolution (2048x1024 images are ok, for instance), and that's what I'm doing for now - we just released the software so I'd like to get the download repaired asap. However, it would be great to hear from anyone that might be aware of this issue. Thanks.
-
GUICtrlCreateButton("", $xstart, $ystart, 10, 10) If FileExists(blahblahblah.txt) Then GUICtrlSetBkColor(-1,0xff0000) ; this part sets the color just fine Else GUICtrlSetBkColor(-1,0x00ff00) EndIf GUICtrlSetOnEvent(-1,"ColorQuery") func colorquery() this is where I haven't got a clue - i've searched and searched, and it seems like nothing is available to tell me the color of a control. I set the color with one simple command, so I was hoping I could retrieve the color with one simple command.
-
$ES_NUMBER is to GUICtrlCreateInput as
Sycamore replied to Sycamore's topic in AutoIt General Help and Support
thanks. i see once again that the stack of what i do not yet know much about is much much larger than the stack of what i am able to quickly comprehend. translated: i am such a rookie. (kind of funny I should say that...I wrote my first program in in Fortran in 1973.) - i don't know much about DllCalls and/or "User32.dll" and what it can do. Calling programs on an IBM mainframe yes, on a PC operating system not so much... Much reading/understanding work to do... Right now, I'm still writing the upgrade for SkyCycling... -
GDI+ Image functions: DPI, Pixelformat etc.
Sycamore replied to rover's topic in AutoIt Example Scripts
Thank you, Rover !! I've added this stuff to my program so I could get the horizontal dpi (to make my code more dpi friendly) and it works GREAT. Now I can move on. I spent hours and hours trying to find a simple way to get that DPI. Finally, I stumbled on - or found somehow - your stuff... and it was the right stuff. -
$ES_NUMBER is to GUICtrlCreateInput as
Sycamore replied to Sycamore's topic in AutoIt General Help and Support
I had 4 combo boxes in my screen. I converted them to a 4 element array, then used a little loop to check them for numeric values. It works fine, and gives a little more flexibility - the original selections I had in there are still in the dropdown list, but a specific number of minutes can also be entered. CODE; check combo boxes for numeric values Local $k Local $workcombovalue For $k=1 To 4 Step 1 $workcombovalue = GUICtrlRead($Combo[$k]) If $workcombovalue <= 1 Or $workcombovalue > 1440 Then ControlFocus ($MyWindow, "", $Combo[$k]) MsgBox(4096, "Error", "Please enter a numeric value between 1 and 1440 minutes") Return 0 EndIf Next sample of combo 1: $Combo[1] = GUICtrlCreateCombo("", 219, 80, 57, 20, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL)) GUICtrlSetData(-1, "1|2|3|4|5|6|7|8|9|10|15|20|25|30|45|60|90|120|180|240") -
$ES_NUMBER is to GUICtrlCreateInput as
Sycamore replied to Sycamore's topic in AutoIt General Help and Support
Thanks for that - About the real reason I'm here today - any idea on a style I can use on the combo box to limit it to numeric? (I tried BitOr with $ES_NUMBER but that didn't seem to do the trick...) I've seen the function that checks it live while it's being typed, but I thought that was a little much for what I've got. I could write a little edit routine, not a problem, it's just that I want to move on as quickly as possible... -
I give up, can I get a hand? (I have to move on to more important Functions in this script/program...) Anybody know a quick fix (I'm trying to avoid more coding) to set a combo input box to only accept numeric characters? Hey, while I'm here, is there any maximum script size (not that I need to worry, I just don't want to run out of gas in the desert, so to speak...)?
-
"GUICtrlCreateAvi() is very basic, it can only play the most basic (or perhaps only raw?) codecs" AAHHH. Thank you AdmiralAlkex. You can see how, for a relative newcomer to autoit like myself (since 8/27/2008), I might have assumed I had a battelship command when actually it was more of a coast guard cutter. If your wise comments had only been in the help for the command, I would have put back into port for a retrofit. No matter, the pain was worth the gain.
-
Either there is a bug in AutoIt or there are some things I'm not sufficiently knowledgeable about. Perhaps something to do with codecs or .net - I don't know. I've read everything, searched everywhere, and as far as I can tell, nothing is amiss - yet the .avi file will not play using GUICtrlCreateAvi - except for the the clock.avi. Now I will say the two .avi files that didn't work were over 1 MB. I'm just too ignorant of the inner workings of this thing - plus the message lacks the detail I need to pin anything down - and I haven't been able to locate any clues in the help facility, the forums, google, or even between my eyes and my fingers. I love AutoIt. Why is she doing this to me?
-
.bik to .avi file conversion played find in windows xp, but... So far, I haven't been able to track this down. When I tried to create an Avi control for my gui in AutoIt, my script failed. Here is a sample of the code: GUICtrlCreateAvi("C:\Documents and Settings\ScriptWork\OblivionOutro.avi", -1, 272, -1, 128, 72, $ACS_AUTOPLAY) The error msg was: SkyCycle.exe - Bad Image The application or DLL C:\Documents and Settings\ScriptWork\OblivionOutro.avi is not a valid Windows image. Please check this against your installation diskette. The avi plays fine when I run it from autoit using a shellexecute - and it plays fine in windows media player too. I'm just wondering if you've heard of this before - I mean, you might have one of those 25 words or less miracle fixes. It's also doing it with a sample file from microsoft support. When I used the clock.avi that was in the windows folder with the GUICtrlCreateAvi, it worked. I've been trying to get this working for 6 hours now, and it's almost 9am. I think I need some help...and a cup of coffee.