Jump to content

Search the Community

Showing results for tags 'toggle'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 5 results

  1. There seems to be many bad forum posts and confusion on the simple action of toggling pause and play. Here is two examples of playing and pausing shortcuts. I'm sure there may be multiple ways to do this. Or there maybe more efficient ways but this was the simple way I do it Example one: Two shortcuts that toggle Pause and Play HotKeySet("{insert}","_Pause");press insert to make $pause variable = 1 and resume actions HotKeySet("{esc}","_Play");press esc to make $pause variable = 0 $pause=1; sets varriable to 1 starting actiions in loop While 1; Loop every 500 mill seconds and check varriables Sleep(500); check variable every 500 seconds if $pause=1 Then; if $pause variable = 1 then do actions ;Do actions EndIf WEnd func _Play() $pause=0 EndFunc func _Pause() $pause=1 EndFunc Example Two: One shortcut that toggle Pause and Play HotKeySet("{insert}","_Pause");press insert to make $pause press insert again to resume $pause=1; sets varriable to 1 starting actiions in loop While 1; Loop every 500 mill seconds and check varriables Sleep(500); check variable every 500 seconds if $pause=1 Then; if $pause variable = 1 then do actions ;Do actions while $pause = 1 EndIf WEnd func _Pause() if $pause=0 then $pause=1 else $pause=0 endif EndFunc
  2. I need to replace a desktop applications functionality. I'll call it App "A". The application has defined 2 hot keys one that toggles between it and another window, App "B", and one that triggers keystrokes to App "B" to get data where App "A" can access it. Then tells app "A" to fire off processing of data.. Unfortunately when App "B" is a 64bit application this functionality no longer works. For now I've hobbled together a work a round solution by using 2 apps with what appears to be similar abilities. AutoIt and a desktop application that allows me to define the 2 hot keys. The SutoItX Dll is great for my processes within App "A" as it uses VBA for event driven tasks. The second app allows me to define the Hot keys and which windows they belong to. My fail is on how to use AutoIT to define the hot Keys and link to specific windows. So as I see this working: App "A" launches and fires off internal VBA code that in turn sets up HotKeys. If App "B" is not found code shuts down without enabling the hotkeys. A hot key of CTRL-F1 toggles, activates window, back and forth between App "A and "B" So the hotkey is captured only when either App "A" or "B" is currently the active focus. and swaps the active focus application window. A hot key of CTRL-F2 from App "B", Send Key strokes to App "B" to place App "B" windows' content into windows clip board then switch to App "A" and send a keystroke, CTRL-F3, to trigger processing the clip board through App "A"'s normal event handlers. App "A" already knows that CTRL-F3 means to run custom VBA code to process the clipboard. Any help would be appreciated here, thanks.
  3. Hello, I'm trying to be able to switch back and forth between multiple excel spreadsheets and I can't seem to get the WinActivate function to work, and bring the desired window the be the active window. Could I please get some assistance, I've tried a few things and nothing seems to work quite right. Below is a test case where I'm just trying to make the first excel sheet that was opened become the active window, and testing it by grabbing a cell value off that workbook. The message box produces the correct answer if both files are closed before running but the 2nd test file will appear to be the active window. If the code is run again without closing the excel files, nothing works (file does not appear to be active and message box will not give an answer). #include <Excel.au3> Opt("WinTitleMatchMode", 2) ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase ;Open Test1 Excel Workbook local $oExcel = _Excel_open() Local $ofile = @ScriptDir & "\test1.xlsx" Local $oWorkbook = _Excel_BookOpen($oExcel,$ofile) ;Open Test2 Excel Workbook local $mExcel = _Excel_open() Local $mfile = @ScriptDir & "\test2.xlsx" Local $mWorkbook = _Excel_BookOpen($mExcel,$mfile) ; This workbook is completely blank WinActivate($oWorkbook); should make Test1 the active window local $read1 = _Excel_RangeRead($oWorkbook,Default,"B2"); Cell B1 in Test1 workbook contains the word Test MsgBox(0,0,$read1);Should returns the word test
  4. I have two networks that I have to switch between often (really annoying). Does anyone know how to connect to a WiFi network using Autoit? I would like to avoid solutions with MouseClick(). So something like: HotKeySet("_ToggleNetwork", "~") While 1 Sleep(1000) WEnd Func _ToggleNetwork() If Network A is connected Then Connect to Network B If Network B is connected Then Connect to Network A EndFun
  5. Hi, I can toggle current fold & all folds via the SciTE menus ... Is there any way to selectively toggle JUST one of the following types of folds? Region Func Comment block e.g. if I wanted to collapse all Func folds but leave the other folds alone. Cheers
×
×
  • Create New...