Jump to content

Wolffe

Active Members
  • Posts

    41
  • Joined

  • Last visited

Wolffe's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. So, this is the program that I have been tinkering with. It is just something that I was trying to quickly whip up to generate a character for D&D. I tried to do a search of the forum for anything similar but I didn't find anything. I have tried to set it up for various systems in that I have a variable number of die rolled, and number of stats needed. Further, my DM gives us a minimum stat. (nothing lower than 10 in his case, nice guy that he is ) It seems to be the minimum stat that is giving me issues. Everything else seems to work well. But when it tries to reroll the stat if it is below the minimum it gives me way too many stats. Anyway, any help would be appreciated. (It is probably something stupid that I missed. It usually is... ) CODE $dice = Inputbox ("Stats", "How many die?") $stat = InputBox ("Stats", "How many stats do you need?") $min = InputBox ("Stats", "What is your minimum stat?") $i = 0 $s = 0 While $s < $stat $k = (Random (1,6,1) * $dice) If $k < $min then $k = (Random (1,6,1) * $dice) FileWriteLine ("Stats2.txt", "Stat " & $k) Else FileWriteLine ("Stats2.txt", "Stat " & $k) $s = $s + 1 EndIf WEnd
  2. That doesn't unlock. It just locks. Winkey + L will lock the PC but not unlock it if it is already locked. The only way to unlock (that I know of at least) is CTRL + ALT + DEL
  3. Hi, I think that you can only edit your posts after you have x number of posts (not sure how many really, but I think that it is a relatively low number). and to make those repeat I would look into loops in the help file. There are a lot of good options there. It just depends upon which one you want to use. :-) Oh and for the delay you can check sleep. Edit: Forgot to answer fully.. :-S
  4. Search for loop in the help file.
  5. I have not found a program that saves files with the correct extension. I have always had to save it as myfile.au3 manually.
  6. I am not sure that I understand the purpose of joining and then immediately leaving random games. Maybe I am missing something here....
  7. I think that what he means is that it would be easier to essentially translate what you type after you have typed it. Instead of changing it while it is typing. But I think that would defeat the purpose of having this as a 'new keyboard' layout. And it would fall under of of an encryption style of program. I think. :-)
  8. I beleive, that you need to run the game. And then run this script. It also looks as though you will need to get back into the game window on your own. So you will need to run the game. minimize it and then run the script and go back to the game window. From there it looks like it does combat automatically, but that is about it.. I think.
  9. Check out BlockInput in the help files. I think that will do what you want. Of course it also shuts out the keyboard. But it does not sound like that will be a big deal in this case.
  10. This is probably not much help. But I had a similar problem with a couple of installers that I created. I wound up having to just use a sleep instead of Winwaitactive. You might try a WinActivate to ensure that the window is active first. But I know that in my case it still didn't find the window and I had to go with a sleep.
  11. You would probably get help much more quickly if you posted something that you had tried to make using the help files. Than if you just show up and ask for a script. Most people get offended if you just show up 'begging'. Having said that, I am no great coder with Autoit by any means. And it took me all of about 5 minutes to create a script that does this. Edit: Spelling
  12. Well, I added the command WinMinimizeAll() so that it looked like Func Screencapture() WinActivate ($IP & " - Remote Desktop") WinWaitActive($IP & " - Remote Desktop") _ScreenCap_CaptureWnd(@Hour & @Min & ".jpg", WinGetHandle($IP & " - Remote Desktop"), False) WinMinimizeAll() Sleep(3600000) EndFunc and nothin happened it would just sit in the remote window. I searched both the remote computer and the local one and neither has a jpg for the screenshot. So, it does not seem to be actually taking a screen shot. At least not that I can find
  13. Okay, fixed that. I accidentally added that in when I was trying to troubleshoot. But it still just opens the remote connection window and then sits there. This is what I have Func Screencapture() WinActivate ($IP & " - Remote Desktop") WinWaitActive($IP & " - Remote Desktop") _ScreenCap_CaptureWnd(@Hour & @Min & ".jpg", WinGetHandle($IP & " - Remote Desktop"), False) Sleep(3600000) EndFunc
  14. Okay so this is what I get. C:\Documents and Settings\####\Desktop\screentest.au3 (43) : ==> Incorrect number of parameters in function call.: _ScreenCap_CaptureWnd(@Hour & @Min & ".jpg"), WinGetHandle($IP & " - Remote Desktop"), False) ^ ERROR +>AutoIT3.exe ended.rc:0 I am not familiar enough with that function and can't find anything in the help files or here in the forum concerning it... :S
×
×
  • Create New...