Jump to content

SevereMessage

Members
  • Posts

    14
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

SevereMessage's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I feel like I already know the basics of autoit, and I want to advance, but I'm not sure where to move to next, any ideas/projects I should attempt?
  2. So, I made a checkbox GLOBAL $PassStart = IniRead("Config.ini","Config","Password","Default Value") $Input2 = GUICtrlCreateInput("", 40, 64, 249, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD)) $Checkbox2 = GUICtrlCreateCheckbox("Show Password", 40, 136, 153, 17) GUICtrlSetData($Input2,$PassStart) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Checkbox2 If GUICtrlRead($CheckBox2) = $GUI_CHECKED Then Else EndIf EndSwitch WEnd and I would like to make it so it shows the hidden password in plaintext, while still keeping the data recieved? I know a nooby way to do this, which would be to I guess make another InputLabel then load $PassStart, but I think that's not a good way to do this, and there must be an easier way?
  3. Eh, essentially it's supposed to hide the password from people around you, if you're in a public place and whatnot.
  4. Wow what the heck, I feel like a complete idiot, not sure what happened, but I restarted my autoit and it's functioning just as it should, consider this issue solved!
  5. Alright so, if you create a simple gui with a password input and set the ES_Style to Password, such as the default one being: $PasswordEdit = GUICtrlCreateInput("password", 8, 32, 233, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD))And when you try to read from it, and write to an INI with lets say: IniWrite("Config.ini","Config","Password",GUICtrlRead($PasswordEdit))and close the file off and once again reopen it with (attached with a variable for this sake) $PassStart = IniRead("Config.ini","Config","password","Default Value")it will return the value as 1, and I need it not to. Is there a work around for it? EDIT: Sorry for my poor explanation, I have a habit of assuming people are me and know what I'm trying to accomplish.
  6. So, is it possible to write to a directory with a inputbox that is set as a "password"? Everytime I try it returns as a 1, is there a workaround?
  7. Like make them variables I guess? I want to make it so whenever ruby for example is selected, and is clicked "SELL" it runs a function, (Different function for each gem) I'm guessing I would need to define it as a variable?
  8. Ooh right, thank you very much, added in _GUICtrlStatusBar_SetText($status, "You've selected: " & $Select2) in case and it works perfectly, next question how can I define Topaz, Ruby, etc? Like if GUiCtrlRead(Topaz) Then CheckAmount()
  9. It's the only part that matters right now, the other parts are way too long and unnecessary, what can I add to make it work and how can I define the strings?
  10. I selected topaz for example, but it still returns 0?
  11. Sorry, I ment it, right now its laid out like this: $gems = GUICreate("Gem Seller", 219, 157, 887, 250) $SellSelected = GUICtrlCreateButton("Sell Selected", 8, 40, 89, 25) $Sellall = GUICtrlCreateButton("Sell all", 68, 96, 73, 25) $Select = GUICtrlCreateCombo("Choose a Gem to sell!", 8, 8, 193, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL)) $gemtype = GUICtrlSetData(-1, "Ruby|Emerald|Sapphire|Topaz|") $status = _GUICtrlStatusBar_Create($gemtype) $input1 = GUICtrlRead($gemtype) _GUICtrlStatusBar_SetText($status, "You've selected: " & $input1) but it returns as 1, which I'm guessing is from the -1 Edit: or no, I followed the $select, but it displays "Choose a gem to sell" not the actual gems. How can I define what gem is what? I thought about maybe splitting the string?
  12. Trying to make sort of an incremental game for the lols, and here's my problem right now. Keep in mind I'm a complete newbie at autoit, but I have a pretty good understanding of it, so go easy on me. I have currently $gems = GUICreate("Gem Seller", 219, 157, 887, 250) $SellSelected = GUICtrlCreateButton("Sell Selected", 8, 40, 89, 25) $Sellall = GUICtrlCreateButton("Sell all", 68, 96, 73, 25) $Select = GUICtrlCreateCombo("Choose a Gem to sell!", 8, 8, 193, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL)) $gemtype = GUICtrlSetData(-1, "Ruby|Emerald|Sapphire|Topaz|") $status = _GUICtrlStatusBar_Create($gemtype) _GUICtrlStatusBar_SetText($status, "You've selected: ") I've added also a status bar How can I read the data that GUICtrlSetData is selected? I tried $selGUICtrlRead($gemtype) and it doesn't work.
×
×
  • Create New...