Jump to content

Sparrowlord

Active Members
  • Posts

    150
  • Joined

  • Last visited

Sparrowlord's Achievements

Prodigy

Prodigy (4/7)

0

Reputation

  1. Figured there would be a sure-fire quick way to do this..
  2. That's not exactly what I'm trying to accomplish. I'm trying to create a script that will switch users, to take me back to the windows login screen, but not completely log me out.
  3. I might not of been searching hard enough, but I can't find anything with RunAs() to help me switch users.
  4. Hi, I'm trying to switch users in my script, but I can't figure out how. I'm using windows 7. I tried sending the left windows key and L and all that did was bring up the start menu and type L. How to switch user? Thanks.
  5. I'm not sure if I'm following along correctly. I'm trying to make dynamic variables from within my ini file. Is there no way to make a global variable from inside of the function and assign it's value? That way the loop sets all the global variables and their values without me having to predefine it
  6. Hi, I'm trying to use IniReadSection from inside of one of my functions and I'm wanting to take each ini key and make it a variable that I can access throughout the script. $var = IniReadSection("C:\Temp\myfile.ini", "section2") If @error Then MsgBox(4096, "", "Error occurred, probably no INI file.") Else For $i = 1 To $var[0][0] MsgBox(4096, "", "Key: " & $var[$i][0] & @CRLF & "Value: " & $var[$i][1]) Next EndIf Now, obviously "$var[$i][0]" is the key I'm after and I believe I can make it global to everything by doing: $var = IniReadSection("C:\Temp\myfile.ini", "section2") If @error Then MsgBox(4096, "", "Error occurred, probably no INI file.") Else For $i = 1 To $var[0][0] $var_name = $var[$i][0] $var_value = $var[$i][1] Global $var_name ;how to set the global $var_name value now? Next EndIf Am I on the right path here? If so how do I set the value then?
  7. Hi, I'm attempting to get a window handle ( or set the title of a window ) from a pid. I have multiple windows running from the same process all with the same window name. I'm wanting to name each window something different to make it easier to work with. I'm able to get the individual pids per process, but I can't figure out how to change the window title from the pid or get the window handle from the pid. Help?
  8. updated first post so everybody don't have to read the whole thread to figure out the problem
  9. After some more failed attempts I finally realized the problem. Using WinSetState only works on the 64 bit version of Windows Internet Explorer (Default _IECreate), however I have to use the 32-bit version of Windows Internet Explorer because I have to work with a flash application. Here's the code I'm trying to use on the 32-bit browser: #include <IE.au3> Opt("WinTitleMatchMode", 2) Run("C:\Program Files (x86)\Internet Explorer\iexplore.exe") WinWait("- Windows Internet Explorer") WinSetState("Windows Internet Explorer", "", @SW_MAXIMIZE) Attached is a screenshot of what happens to the browser window.
  10. please help
  11. Also I'm using windows 7 thanks
  12. Hi, I'm trying to use "WinSetState($title, "", @SW_MAXIMIZE)" in my script to make IE8 maximize, however this just creates a blank IE shell window.. and doesn't actually make the window I want bigger. Edit: After some more failed attempts I finally realized the problem. Using WinSetState only works on the 64 bit version of Windows Internet Explorer (Default _IECreate), however I have to use the 32-bit version of Windows Internet Explorer because I have to work with a flash application. Here's the code I'm trying to use on the 32-bit browser: #include <IE.au3> Opt("WinTitleMatchMode", 2) Run("C:\Program Files (x86)\Internet Explorer\iexplore.exe") WinWait("- Windows Internet Explorer") WinSetState("Windows Internet Explorer", "", @SW_MAXIMIZE) Attached is a screenshot of what happens to the browser window.
  13. I'm trying to use: Run("C:\Program Files (x86)\Internet Explorer\iexplore.exe") While 1 If WinExists("Blank Page - Windows Internet Explorer") Then $oIE = _IEAttach("Blank Page - Windows Internet Explorer", "WindowTitle") _IENavigate($oIE, "http://www.google.com") ExitLoop EndIf WEnd It finds the window.. just doesn't attach.. what am I doing wrong?
×
×
  • Create New...