Jump to content

Coffee

Active Members
  • Posts

    101
  • Joined

  • Last visited

Coffee's Achievements

Adventurer

Adventurer (3/7)

0

Reputation

  1. Just curious as it applies to this example as well. @OSVersion returns WIN_95 if run from script or from compiled script but returns WIN_98(the correct version) only if run from scite. OS - Win98 autoit build - autoit-v3.1.1.128-beta
  2. Why not just create a command line application? Check out $CmdLine and $CmdLineRaw under "Running Scripts" in the help file.
  3. Unfortunatly none of the pic commands work with Animated .gifs. However there are workarounds. Your msgbox will have to be made in a gui, and your .gif converted to .avi (in this example) .Ani cursors will animate but I have had little luck with converting animated .gif to .Ani (AniTuner seems to do nothing but crash for animated .gif's I have used. Instead I use Avi4Bmp along with IrfanView to get the height and width information for use in Avi4Bmp. 1. get height and width of your animated .gif from the Image>information menu in Irfanview or similar program. 2. start Avi4Bmp and select your animated .gif and choose "save image", then choose .bmp(default) 3.In Avi4Bmp choose "convert back" and set the height and width to the info you got in irfranview or other program. 4.Set the number of frames, I usually skip the last frame as it is a black blank frame, in this case I used 3 out of 4 possible frames. 5.set your fps (frames per second), in this example for this 3 frame animation I chose 5fps but it is a little on the fast side(season to taste) 6.choose "convert back to .Avi" and choose a file name. It will prompt you if you have cut any frames (in this case 3 out of 4) that this image contains less frames than image can contain, Press yes to proceed anyway. 7. choose "Full Frames (uncompressed)" -this is the default now use this .Avi in place of any .gif animation see attached zip for demo code. http://www.autoitscript.com/fileman/index.php?act=list&op=get&target=MsgDemo.zip http://www.autoitscript.com/fileman/users/Coffee/screenshot.jpg Edit: forgot to add extended @0x00000008 ($WS_EX_TOPMOST) MsgDemo.zip updated.
  4. This Method will call any phone number in the US/Canada and read the TextToSay to that phone
  5. What sort of image? Or do you need a msgbox w/ image? MsgBox(BitOR(262144,48),"Warning..Warning..", "Danger Will Robinson")
  6. haha finally credit is given where it is due. Too bad it gains the wrong kind of attention for the UDF authors. These things happen all the time. Browsed through a certain little "hacker" mag the other day at the bookstore while the wife checked out her crafting mags. Saw lots of examples of autoit code in there. Either Autoit is getting more popular, or the quality of hackers has gone down the tubes. (prolly both) Unless it is something to become newsworthy, I don't think we can attack every mal script we find. I am also happy as Autoit was created to be simple to understand, quick to learn, and productive without the time consumption. These examples only prove that that vision was a success.
  7. Just an idea for you if you don't want to have an extra button.. I also know you just might be trying to figure this out "just because" so I'm not ignoring your request. Perhaps the overlooked GUIGetCursorInfo() commands could be some help in getting your cursor info for you particularly with option [4] of the array, great for action to occur on mouseover, right click, left click etc, when combined with "if true AND $var[4] = 3 etc.. anyway this particular example is not what you "wanted" but a suggestion thrown your way #include <GuiConstants.au3> $mygui = GUICreate("example", 200, 200) $enter = GUICtrlCreateButton("enter", 10, 10, 40, 40) GuiSetState(@SW_SHOW,$mygui) While 1 $msg = GUIGetMsg() $checkID = GUIGetCursorInfo($mygui) Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $enter MsgBox(262144, "result", "you preformed a traditional left-click on this button") Case $checkID[3] = 1 And $checkID[4] = "3" msgbox(262144, "result", "you right clicked on this button") EndSelect WEnd ps..been years since I posted on here, haha I'm probably easily forgotten, so hello.
  8. Thank you jpm I was unaware of this nice togglebeta udf including it with a one line description of how to switch over would be just great and easy for removal too. Unless we will of course have more betas
  9. Can this installer for the beta possibly recoded? Atm if you intend to install the beta you MUST first install regular autoit v3 Prior to installing the beta..why? Once installing the beta and trying to use the new features, they will FAIL, because all pointers are to the default version v3 and not the new beta. You must manually move files from folder to folder such as AutoItSC.bin to make the beta the default engine on running the scripts you click or head into the programs menu to compile it manually from the beta folder. Suggest an option to make the beta your default on install, including a patch to convert beta to default install, or at least instructions in the help file to tell new members how to convert your make your install use the beta features.
  10. Yep I've found my share that crash horribly. Finding ones that work however more than make up for it. Can spend hours browsing and trying. For a pre-beta I'm more than satisfied thus far.
  11. There are a few problems here. Firstly when combining styles always use Bitor($style, $style) and not $sytle+$style You may store your values anywhere, be it in your script, .ini file, registry etc. However to set a value to a variable you must use its value and not it's name. This works: #include <GUIConstants.au3> $string = "0x0800+0x8000" $split = stringsplit($string, "+", 1) $gui = Guicreate("Mygui") $button1 = GUICtrlCreateButton("Push Style", 10, 100, 70, 70, BitOR($split[1], $split[2])) GUISetState() while 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $button1 MsgBox(0, "status", "yay! I look correct") EndSelect WEnd However this does not: #include <GUIConstants.au3> $string = "$BS_BOTTOM+$BS_FLAT" $split = stringsplit($string, "+", 1) $gui = Guicreate("Mygui") $button1 = GUICtrlCreateButton("Push Style", 10, 100, 70, 70, BitOR($split[1] , $split[2])) GUISetState() while 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $button1 MsgBox(0, "status", ":( I look fubar :(") EndSelect WEnd
  12. Right click on file an choose "compile with options" Change your icon to the icon you wish to display. http://www.autoitscript.com/autoit3/docs/intro/compiler.htm
  13. Run and study the example given under "HotKeySet" in the help file.
  14. Sorry JPM just remember you doing something on the reshacked version of compile with options, so was turning this to use as a possible improvement. Remembered john mentioning the 200ish char string and somehow putting your name to the added reshack tweaks. Brain taking bits and pieces of info and tacking it all together I guess. A sign to get some sunlight.
  15. If I understand it correctly as stated by John, the no decompile check in compile with options just dumps a large random string as a passphrase. Would like to put in a request for optional flag to dump this large passphrase into the .ini much as compiling with passphrase does. JPM? thank you.
×
×
  • Create New...