Jump to content

guysmilie

Active Members
  • Posts

    28
  • Joined

  • Last visited

guysmilie's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. "Another alternative would be to disable or change, if possible, the hotkeys that Win 7 uses." Does anyone know if that is possible, and if so, how its done? Thanks for any ideas or advice, Guy.
  2. Thanks very much for the replies, I really appreciate it! Yes I am using windows 7, so it appears that may be the problem. I will try to check out this _Ispressed thing you mention. I am not totally sure how that is supposed to work, would it take control of this key back from Windows 7 so I can use it? Anyway, thanks for all the ideas, Guy.
  3. Thanks for your reply. I did check the helpfile, and I saw the part I think you are referring to. However for some reason it works fine with Alt and Ctrl. I have not actually tried Shift. If anyone does know a way to use the WIN key in a hotkey combination, such as that described in my original post, your assistance would be greatly appreciated. Thanks in advance to any who can offer suggestions, Guy.
  4. I am trying to use the WIN key as part of a hotkey combination with the RIGHT, LEFT, UP, DOWN arrow keys. It works fine if I use the Ctrl (^) key, or the Alt key, but for some reason the WIN (#)? key won't work in the same way. I have tried various combinations such as: HotKeySet("#{RIGHT}", "RUN_FUNC") HotKeySet("#+{RIGHT}", "RUN_FUNC") HotKeySet("{LWIN}+{RIGHT}", "RUN_FUNC") HotKeySet("{LWIN}{RIGHT}", "RUN_FUNC") None of those seem to work, however using, HotKeySet("^{RIGHT}", "RUN_FUNC") -works fine for Ctrl + RIGHT arrow HotKeySet("!{RIGHT}", "RUN_FUNC") -works fine for Alt + RIGHT arrow I did a quick search in the forums, but did not find what I was looking for. Any help is really appreciated. Guy.
  5. Thank you for your reply, I did check the help file, but I must have missed it! Thanks again for the help. Guy.
  6. Does anyone know of an easy way to count the number of lines in a text file using AutoIT? Thanks to anyone who can offer advice. Guy.
  7. Thanks for the replies, I will take another look at Obsidium. I realize that any form of copy protection can be circumvented by determined individuals, I just want something simple that will prevent the average person from using for free indefinitely. Guy.
  8. Thanks for the reply Vlad, I will try to be sure not to start duplicate threads in the future. I tried one program called ShareGuard, but it seems to require the user to download and run a separate program to get the product ID and register. I looked into a program called Obsidium, I emailed the company but did not get a reply. That was many days ago, so that is not a very good sign. I tried something called EXE shield, which looked promising, but when I tried to use it with a compiled AutoIt script it would not work and gave a message saying that "AV researchers should contact some email address" I emailed the company and am still waiting for a reply to see if this program can work with AutoIt. I think it cost about $90, which is still kind of expensive for me, but it looked quite good and I would probably buy it, if it worked with AutoIt. I tried something called Armadillo, but it did not seem to have the ability of offer a free trial. I also checked out web sites of many other products that were in the $300-$1000 price range. These had way more features than I would ever use, and seem to be aimed at professional developers or whatever. In any case I cannot spend that much right now. I was really hoping that someone else may have already found a product that works well with AutoIt and allows you to offer a free trial, then issue an activation key to keep the product working after the trial expires. Thanks to anyone who can offer advice in this area. Guy.
  9. I am trying to use variables with HotKeySet. Say the code looks like this: $hotkey1 = ^ $hotkey2 = {PGDN} HotKeySet($hotkey1$hotkey2, "FUNCTIONNAME") When I try to run this I get an "error in expression" message for the HotKeySet line. It works if I use just one variable, but when I combine the two variables I get the error. I looked in the help file and searched "combining variables" in the forum, but did not find the answer. Thanks very much to anyone who can offer suggestions/advice. Guy.
  10. I was recently trying to do something similar, and encountered the same type of issue. Here is a solution that another user was kind enough to post for me. #include <GUIConstantsEx.au3> Opt("GUIOnEventMode", 1) $Form1_1 = GUICreate("My Form", 343, 195, 192, 124) GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClk") $Label1 = GUICtrlCreateLabel("Ready to Loop", 64, 16, 198, 20) GUICtrlSetFont(-1, 10, 400, 0, "Goudy Old Style") GUICtrlSetColor(-1, 0x808000) $Button1 = GUICtrlCreateButton( "Button1", 216, 104, 75, 25) $Button2 = GUICtrlCreateButton( "Button2", 216, 144, 75, 25) GUICtrlSetOnEvent($Button1,"Button1") GUICtrlSetOnEvent($button2,"Button2") GUICtrlSetState($button2, $GUI_DISABLE) GUISetState(@SW_SHOW) $button1Loop = False While 1 sleep(100) if $button1Loop Then Button1Loop() EndIf WEnd Func Button1() GUICtrlSetState($button2, $GUI_ENABLE) GUICtrlSetState($button1, $GUI_DISABLE) $button1Loop = True EndFunc Func Button1Loop() GUICtrlSetData($label1, "Looping: " &TimerInit()) EndFunc Func Button2() $button1Loop = False GUICtrlSetState($button1, $GUI_ENABLE) GUICtrlSetState($button2, $GUI_DISABLE) GUICtrlSetData($label1, "All Done") EndFunc Func CLOSEClk() Exit EndFunc Basically you have the function button1loop that starts when button1 is pressed. Pressing button2 will exit the loop. I found it worked for me, hopefully you will also find it useful. Guy.
  11. Please excuse me if I have been asking a lot of questions lately. I am new to this and trying to get a few projects working. I would just like to let it be known that I really appreciate any help/suggestions/guidance that people have provided here. I hope that if I ever get good enough with using AutoIt that I can some day help other new users with their newbie questions. I will try my best to find the answers I am looking for on my own. In this case I was just hoping someone who had experience in this area could say "program XYZ worked well for me" or "program ABC did not". I spent the past day and a half downloading and trying several copy protection programs, including some of those mentioned before, but did not find one with the features I want, that really seemed to work well with a compiled AutoIt script. Anyways sorry if you found my questions annoying, and thanks again to everyone who gave me help and suggestions, I really do appreciate it. Guy.
  12. I am looking for an easy to use solution that will allow me to license my compiled AutoIt scripts by issuing a license key, after a trial period has expired. I tried a few programs I found on Google, but either they did not seem to work with compiled AutoIt programs, or were very expensive. Has anyone found a program that will allow me to easily license AutoIt compiled scripts? Thanks in advance for any suggestions, Guy.
  13. How can I have one .au3 script run another .au3 script? I tried RUN and SHELLEXECUTE without success. Also what if I want to have a .au3 script launch a perl script with the .pl file extension, would this be possible? Thanks in advance to anyone who can help me, Guy.
  14. When trying to match the title and text of a window, is it possible to use hidden text in the window to perform the match? If so do I need to specify that the text is hidden in some way, or will the default text matching also recognize hidden text. Thanks for any assistance, Guy.
×
×
  • Create New...